Documentation ¶
Index ¶
- type FileSystemStepResourceBuilder
- type FixedResultStep
- type GitStepResourceBuilder
- type GlobalContextBuilder
- type InterpolationCtxBuilder
- type ProtoDefinitionBuilder
- type ProtoSpecBuilder
- type ProtoSpecDefinitionBuilder
- type StepBuilder
- type StepResultBuilder
- func (bldr *StepResultBuilder) Build() *proto.StepResult
- func (bldr *StepResultBuilder) WithFailedStatus() *StepResultBuilder
- func (bldr *StepResultBuilder) WithOutput(name string, value *structpb.Value) *StepResultBuilder
- func (bldr *StepResultBuilder) WithSpecDef(specDef *proto.SpecDefinition) *StepResultBuilder
- func (bldr *StepResultBuilder) WithSuccessStatus() *StepResultBuilder
- type StepsContextBuilder
- func (bldr *StepsContextBuilder) Build() *runner.StepsContext
- func (bldr *StepsContextBuilder) WithEnv(key, value string) *StepsContextBuilder
- func (bldr *StepsContextBuilder) WithGlobalContext(globalCtx *runner.GlobalContext) *StepsContextBuilder
- func (bldr *StepsContextBuilder) WithInput(name string, value *structpb.Value) *StepsContextBuilder
- func (bldr *StepsContextBuilder) WithStepResults(stepResults map[string]*proto.StepResult) *StepsContextBuilder
- func (bldr *StepsContextBuilder) WithTempOutputFile(tempDir string) *StepsContextBuilder
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FileSystemStepResourceBuilder ¶
type FileSystemStepResourceBuilder struct { }
func FileSystemStepResource ¶
func FileSystemStepResource() *FileSystemStepResourceBuilder
func (*FileSystemStepResourceBuilder) Build ¶
func (bldr *FileSystemStepResourceBuilder) Build() *runner.FileSystemStepResource
type FixedResultStep ¶
type FixedResultStep struct {
// contains filtered or unexported fields
}
func (*FixedResultStep) Describe ¶
func (s *FixedResultStep) Describe() string
func (*FixedResultStep) Run ¶
func (s *FixedResultStep) Run(_ context.Context, _ *runner.StepsContext, _ *proto.SpecDefinition) (*proto.StepResult, error)
type GitStepResourceBuilder ¶
type GitStepResourceBuilder struct {
// contains filtered or unexported fields
}
func GitStepResource ¶
func GitStepResource() *GitStepResourceBuilder
func (*GitStepResourceBuilder) Build ¶
func (bldr *GitStepResourceBuilder) Build() *runner.GitStepResource
func (*GitStepResourceBuilder) WithURL ¶
func (bldr *GitStepResourceBuilder) WithURL(url string) *GitStepResourceBuilder
type GlobalContextBuilder ¶
type GlobalContextBuilder struct {
// contains filtered or unexported fields
}
func GlobalContext ¶
func GlobalContext() *GlobalContextBuilder
func (*GlobalContextBuilder) Build ¶
func (bldr *GlobalContextBuilder) Build() *runner.GlobalContext
func (*GlobalContextBuilder) WithJob ¶
func (bldr *GlobalContextBuilder) WithJob(name, value string) *GlobalContextBuilder
func (*GlobalContextBuilder) WithTempExportFile ¶
func (bldr *GlobalContextBuilder) WithTempExportFile(tempDir string) *GlobalContextBuilder
type InterpolationCtxBuilder ¶
type InterpolationCtxBuilder struct {
// contains filtered or unexported fields
}
func InterpolationCtx ¶
func InterpolationCtx() *InterpolationCtxBuilder
func (*InterpolationCtxBuilder) Build ¶
func (bldr *InterpolationCtxBuilder) Build() *expression.InterpolationContext
func (*InterpolationCtxBuilder) WithEnvVar ¶
func (bldr *InterpolationCtxBuilder) WithEnvVar(name, value string) *InterpolationCtxBuilder
type ProtoDefinitionBuilder ¶
type ProtoDefinitionBuilder struct {
// contains filtered or unexported fields
}
func ProtoDef ¶
func ProtoDef() *ProtoDefinitionBuilder
func (*ProtoDefinitionBuilder) Build ¶
func (bldr *ProtoDefinitionBuilder) Build() *proto.Definition
func (*ProtoDefinitionBuilder) WithEnvVar ¶
func (bldr *ProtoDefinitionBuilder) WithEnvVar(name, value string) *ProtoDefinitionBuilder
func (*ProtoDefinitionBuilder) WithExecType ¶
func (bldr *ProtoDefinitionBuilder) WithExecType(workDir string, command []string) *ProtoDefinitionBuilder
type ProtoSpecBuilder ¶
type ProtoSpecBuilder struct {
// contains filtered or unexported fields
}
func ProtoSpec ¶
func ProtoSpec() *ProtoSpecBuilder
func (*ProtoSpecBuilder) Build ¶
func (bldr *ProtoSpecBuilder) Build() *proto.Spec
func (*ProtoSpecBuilder) WithOutputMethod ¶
func (bldr *ProtoSpecBuilder) WithOutputMethod(outputMethod proto.OutputMethod) *ProtoSpecBuilder
func (*ProtoSpecBuilder) WithOutputSpec ¶
func (bldr *ProtoSpecBuilder) WithOutputSpec(outputSpec map[string]*proto.Spec_Content_Output) *ProtoSpecBuilder
type ProtoSpecDefinitionBuilder ¶
type ProtoSpecDefinitionBuilder struct {
// contains filtered or unexported fields
}
func ProtoSpecDef ¶
func ProtoSpecDef() *ProtoSpecDefinitionBuilder
func (*ProtoSpecDefinitionBuilder) Build ¶
func (bldr *ProtoSpecDefinitionBuilder) Build() *proto.SpecDefinition
func (*ProtoSpecDefinitionBuilder) WithDefinition ¶
func (bldr *ProtoSpecDefinitionBuilder) WithDefinition(definition *proto.Definition) *ProtoSpecDefinitionBuilder
func (*ProtoSpecDefinitionBuilder) WithSpec ¶
func (bldr *ProtoSpecDefinitionBuilder) WithSpec(spec *proto.Spec) *ProtoSpecDefinitionBuilder
type StepBuilder ¶
type StepBuilder struct {
// contains filtered or unexported fields
}
func Step ¶
func Step() *StepBuilder
func (*StepBuilder) Build ¶
func (bldr *StepBuilder) Build() *FixedResultStep
func (*StepBuilder) WithRunReturnsErr ¶
func (bldr *StepBuilder) WithRunReturnsErr(err error) *StepBuilder
func (*StepBuilder) WithRunReturnsStepResult ¶
func (bldr *StepBuilder) WithRunReturnsStepResult(stepResult *proto.StepResult) *StepBuilder
type StepResultBuilder ¶
type StepResultBuilder struct {
// contains filtered or unexported fields
}
func StepResult ¶
func StepResult() *StepResultBuilder
func (*StepResultBuilder) Build ¶
func (bldr *StepResultBuilder) Build() *proto.StepResult
func (*StepResultBuilder) WithFailedStatus ¶
func (bldr *StepResultBuilder) WithFailedStatus() *StepResultBuilder
func (*StepResultBuilder) WithOutput ¶
func (bldr *StepResultBuilder) WithOutput(name string, value *structpb.Value) *StepResultBuilder
func (*StepResultBuilder) WithSpecDef ¶
func (bldr *StepResultBuilder) WithSpecDef(specDef *proto.SpecDefinition) *StepResultBuilder
func (*StepResultBuilder) WithSuccessStatus ¶
func (bldr *StepResultBuilder) WithSuccessStatus() *StepResultBuilder
type StepsContextBuilder ¶
type StepsContextBuilder struct {
// contains filtered or unexported fields
}
func StepsContext ¶
func StepsContext() *StepsContextBuilder
func (*StepsContextBuilder) Build ¶
func (bldr *StepsContextBuilder) Build() *runner.StepsContext
func (*StepsContextBuilder) WithEnv ¶
func (bldr *StepsContextBuilder) WithEnv(key, value string) *StepsContextBuilder
func (*StepsContextBuilder) WithGlobalContext ¶
func (bldr *StepsContextBuilder) WithGlobalContext(globalCtx *runner.GlobalContext) *StepsContextBuilder
func (*StepsContextBuilder) WithInput ¶
func (bldr *StepsContextBuilder) WithInput(name string, value *structpb.Value) *StepsContextBuilder
func (*StepsContextBuilder) WithStepResults ¶
func (bldr *StepsContextBuilder) WithStepResults(stepResults map[string]*proto.StepResult) *StepsContextBuilder
func (*StepsContextBuilder) WithTempOutputFile ¶
func (bldr *StepsContextBuilder) WithTempOutputFile(tempDir string) *StepsContextBuilder
Click to show internal directories.
Click to hide internal directories.