Documentation
¶
Index ¶
- Variables
- func CheckIfDirectoryExists(path string) error
- func Lens() *lensBuilder
- func NewErrImageDoesNotExist(imageName string, err error) error
- func NewErrIsNotDirectoryOrDoesNotExist(path string) error
- func NewError(cause error, format string, args ...interface{}) error
- type InputParam
- type OutputParam
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrNotClusterServiceVersion is the error returned with a source isn't a CSV. ErrNotClusterServiceVersion = errors.New("Not a ClusterServiceVersion") // ErrNotFound is the error returned when a file is not found ErrNotFound = errors.New("path not found") // ErrPathExpectedDifferentType is the error returned when the path expected a different type. ErrPathExpectedDifferentType = errors.New("path expected different type") ErrNoOperatorManifests = errors.New("Missing ClusterServiceVersion in operator manifests") ErrTooManyCSVs = errors.New("Operator bundle may contain only 1 CSV file, but contains more") ErrImageIsARequiredProperty = errors.New("'image' is a required property") )
Functions ¶
func CheckIfDirectoryExists ¶
func NewErrImageDoesNotExist ¶
Types ¶
type InputParam ¶
type InputParam struct {
// contains filtered or unexported fields
}
InputParam is a parameter used for input. If the name is a "-" it will use the commands stdin.
func NewInputParam ¶
func NewInputParam(isDir bool) InputParam
NewInputParam creates a new InputParam.
func (InputParam) Close ¶
func (o InputParam) Close() error
Close will close the param's input source if applicable.
func (InputParam) FromFile ¶
func (o InputParam) FromFile() error
FromFile initializes the param from a filepath using o.Name
type OutputParam ¶
type OutputParam struct {
// contains filtered or unexported fields
}
OutputParam is a parameter used for output. If the name is a "-" it will use the commands stdout.
func (OutputParam) Close ¶
func (o OutputParam) Close() error
Close will close the param's input source if applicable.
func (OutputParam) FromFile ¶
func (o OutputParam) FromFile() error
FromFile initializes the param from a filepath using o.Name
Click to show internal directories.
Click to hide internal directories.