bldr

package
v0.0.0-...-a5ce0cf Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 18, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

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

type FixedResultStep

type FixedResultStep struct {
	// contains filtered or unexported fields
}

func (*FixedResultStep) Describe

func (s *FixedResultStep) Describe() string

func (*FixedResultStep) Run

type GitStepResourceBuilder

type GitStepResourceBuilder struct {
	// contains filtered or unexported fields
}

func GitStepResource

func GitStepResource() *GitStepResourceBuilder

func (*GitStepResourceBuilder) Build

func (*GitStepResourceBuilder) WithURL

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 (*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 (*ProtoSpecDefinitionBuilder) WithDefinition

func (bldr *ProtoSpecDefinitionBuilder) WithDefinition(definition *proto.Definition) *ProtoSpecDefinitionBuilder

func (*ProtoSpecDefinitionBuilder) WithSpec

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL