Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewSpecParser ¶
func NewSpecParser( fetcher ComponentFetcher, componentParser ComponentParser, imageResolver ComponentImageResolver, ) (*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.
type ComponentFetcher ¶
type ComponentFetcher interface {
FetchPackage(ctx context.Context, ref reference.Reference) (*registry.FetchPackageResponse, error)
}
ComponentFetcher can be implemented to fetch packages.
type ComponentImageResolver ¶ added in v0.0.2
type ComponentImageResolver interface {
Remote() (images.Resolver, error)
Local(context.Context, string) (images.Resolver, error)
}
func NewDockerImageResolver ¶ added in v0.0.2
func NewDockerImageResolver( buildComponentImages bool, dockerClient *dockerclient.Client, credsStore credentials.Store, opts ...dockerimages.BuilderOptionFn, ) (ComponentImageResolver, error)
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.
type ParserConfig ¶ added in v0.0.2
type ParserConfig struct {
SpecPath string
OverridesPath string
ResolutionOpts []images.ResolutionOptionFn
}
Click to show internal directories.
Click to hide internal directories.