airshipctl/pkg/container/errors.go
Dmitry Ukov b37b6f3703 [AIR-137] Add logic to isogen subcommand
* 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
2019-11-01 12:27:35 +00:00

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)
}