b37b6f3703
* Add add default values for isogen subcommand keys * Introduce container interface * Implement docker driver * Add stdin support to container interface * Implement volume mount for container Change-Id: Ide0ecd474b1ccce358bdc9c85ef0006f230490b5
33 lines
737 B
Go
33 lines
737 B
Go
package container
|
|
|
|
import (
|
|
"fmt"
|
|
)
|
|
|
|
// ErrEmptyImageList returned if no image defined in filter found
|
|
type ErrEmptyImageList struct {
|
|
}
|
|
|
|
func (e ErrEmptyImageList) Error() string {
|
|
return "Image List Error. No images filetered"
|
|
}
|
|
|
|
// ErrRunContainerCommand returned if container command
|
|
// exited with non-zero code
|
|
type ErrRunContainerCommand struct {
|
|
Cmd string
|
|
}
|
|
|
|
func (e ErrRunContainerCommand) Error() string {
|
|
return fmt.Sprintf("Command error. run '%s' for details", e.Cmd)
|
|
}
|
|
|
|
// ErrContainerDrvNotSupported returned if desired CRI is not supported
|
|
type ErrContainerDrvNotSupported struct {
|
|
Driver string
|
|
}
|
|
|
|
func (e ErrContainerDrvNotSupported) Error() string {
|
|
return fmt.Sprintf("Driver %s is not supported", e.Driver)
|
|
}
|