Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewSpecParser ¶
func NewSpecParser(fetcher ComponentFetcher, componentParser ComponentParser) (*specParser, error)
NewSpecParser returns a new workflow spec parser.
Types ¶
type Component ¶
type Component struct {
// contains filtered or unexported fields
}
Component decouples from the v1 type to handle concrete, local or remote components.
func (*Component) HasLocalReference ¶
HasLocalReference returns whether the component has a local reference or not.
func (*Component) HasRemoteReference ¶
HasRemoteReference returns whether the component has a remote reference or not.
func (*Component) IsInitialised ¶
IsInitialised returns whether the component has been initialised (not nil) or not.
func (*Component) UnmarshalYAML ¶
UnmarshalYAML overrides default yaml unmarshalling to cover for remotes being specified in paths or remotely.
type ComponentFetcher ¶
type ComponentFetcher interface {
FetchPackage(ctx context.Context, ref reference.Reference) (*registry.FetchPackageResponse, error)
}
ComponentFetcher can be implemented to fetch packages.
type ComponentParser ¶
ComponentParser defines how to parse a component.yaml.
type ComponentRef ¶
type ComponentRef struct {
Component Component `yaml:"component"`
}
ComponentRef decouples from the v1 type to handle concrete, local or remote components.