Documentation
¶
Index ¶
- func FilterDevfileObject(attributes apiAttributes.Attributes, options DevfileOptions) (bool, error)
- func GetComponentType(component v1.Component) (v1.ComponentType, error)
- func GetDefaultSource(ps v1.GitLikeProjectSource) (remoteName string, remoteURL string, revision string, err error)
- func GetExecCommandLine(dc v1.Command) string
- func GetExecComponent(dc v1.Command) string
- func GetExecWorkingDir(dc v1.Command) string
- func GetGroup(dc v1.Command) *v1.CommandGroup
- func IsContainer(component v1.Component) bool
- func IsVolume(component v1.Component) bool
- type DevfileOptions
- type FieldAlreadyExistError
- type FieldNotFoundError
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FilterDevfileObject ¶
func FilterDevfileObject(attributes apiAttributes.Attributes, options DevfileOptions) (bool, error)
FilterDevfileObject filters devfile attributes with the given options
func GetComponentType ¶
func GetComponentType(component v1.Component) (v1.ComponentType, error)
GetComponentType returns the component type of a given component
func GetDefaultSource ¶
func GetDefaultSource(ps v1.GitLikeProjectSource) (remoteName string, remoteURL string, revision string, err error)
GetDefaultSource get information about primary source returns 3 strings: remote name, remote URL, reference(revision)
func GetExecCommandLine ¶
GetExecCommandLine returns the command line of the exec command
func GetExecComponent ¶
GetExecComponent returns the component of the exec command
func GetExecWorkingDir ¶
GetExecWorkingDir returns the working dir of the exec command
func GetGroup ¶
func GetGroup(dc v1.Command) *v1.CommandGroup
GetGroup returns the group the command belongs to
func IsContainer ¶
IsContainer checks if the component is a container
Types ¶
type DevfileOptions ¶
type DevfileOptions struct { // Filter is a map that lets you filter devfile object against their attributes. Interface can be string, float, boolean or a map Filter map[string]interface{} }
DevfileOptions provides options for Devfile operations
type FieldAlreadyExistError ¶
type FieldAlreadyExistError struct { // field which already exist Field string // field name Name string }
FieldAlreadyExistError error returned if tried to add already exisitng field
func (*FieldAlreadyExistError) Error ¶
func (e *FieldAlreadyExistError) Error() string
type FieldNotFoundError ¶
type FieldNotFoundError struct { // field which doesn't exist Field string // field name Name string }
FieldNotFoundError error returned if the field with the name is not found
func (*FieldNotFoundError) Error ¶
func (e *FieldNotFoundError) Error() string