Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrMissingMainFunc defines the error type when the // main function does not exist in the provided template. ErrMissingMainFunc = errors.New("unable to find main function in template") // ErrInvalidMainFunc defines the error type when the // main function is invalid within the provided template. ErrInvalidMainFunc = errors.New("invalid main function (main must be a function) in template") // ErrInvalidPipelineReturn defines the error type when the // return type is not a pipeline within the provided template. ErrInvalidPipelineReturn = errors.New("invalid pipeline return in template") )
View Source
var ( // ErrUnableToConvertStarlark defines the error type when the // toStarlark cannot convert the provided value. ErrUnableToConvertStarlark = errors.New("unable to convert to starlark type") // ErrUnableToConvertJSON defines the error type when the // writeJSON cannot convert the provided value. ErrUnableToConvertJSON = errors.New("unable to convert to json") )
Functions ¶
func RenderBuild ¶ added in v0.9.0
RenderBuild renders the templated build.
func RenderStep ¶ added in v0.9.0
func RenderStep(tmpl string, s *types.Step) (types.StepSlice, types.SecretSlice, types.ServiceSlice, error)
RenderStep combines the template with the step in the yaml pipeline.
nolint: funlen,lll // ignore function length due to comments
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.