Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Dynamic ¶
type Dynamic struct {
// contains filtered or unexported fields
}
Dynamic knows how to convert an expression into a step resource
func NewDynamic ¶
func (*Dynamic) Fetch ¶
func (sr *Dynamic) Fetch(ctx context.Context, view *expression.InterpolationContext) (*runner.FunctionDescriptor, error)
type File ¶
type File struct {
// contains filtered or unexported fields
}
File knows how to load a step from the file system using an absolute path
func (*File) Fetch ¶
func (sr *File) Fetch(ctx context.Context, view *expression.InterpolationContext) (*runner.FunctionDescriptor, error)
type Fixed ¶
type Fixed struct {
// contains filtered or unexported fields
}
Fixed is a StepResource that returns a pre-supplied FunctionDescriptor.
func NewFixed ¶
func NewFixed(funcDesc *runner.FunctionDescriptor) *Fixed
func (*Fixed) Fetch ¶
func (sr *Fixed) Fetch(_ context.Context, _ *expression.InterpolationContext) (*runner.FunctionDescriptor, error)
type Function ¶
type Function struct {
// contains filtered or unexported fields
}
Function knows how to load a step from the known registered step functions
func NewFunction ¶
func NewFunction(functionName string, findStepFunction runner.StepFuncFinder) *Function
func (*Function) Fetch ¶
func (r *Function) Fetch(ctx context.Context, _ *expression.InterpolationContext) (*runner.FunctionDescriptor, error)
type Git ¶
type Git struct {
// contains filtered or unexported fields
}
Git knows how to load a step from a Git repository
func (*Git) Fetch ¶
func (sr *Git) Fetch(ctx context.Context, view *expression.InterpolationContext) (*runner.FunctionDescriptor, error)
type OCI ¶
type OCI struct {
// contains filtered or unexported fields
}
OCI knows how to load a step resource from an OCI repository
func (*OCI) Fetch ¶
func (r *OCI) Fetch(ctx context.Context, view *expression.InterpolationContext) (*runner.FunctionDescriptor, error)
type Parser ¶
type Parser struct {
// contains filtered or unexported fields
}
Parser converts a step reference into the StepResource capable of loading it.
func NewParser ¶
func NewParser(gitFetcher *git.GitFetcher, stepFuncFinder runner.StepFuncFinder, ociClient *oci.Client) *Parser
func (*Parser) Parse ¶
func (p *Parser) Parse(workDir string, stepRef *proto.Step_Reference) (runner.StepResource, error)
Click to show internal directories.
Click to hide internal directories.