Documentation
¶
Index ¶
- func MetadataResolve(prs []*tektonv1.PipelineRun) ([]*tektonv1.PipelineRun, error)
- func Resolve(ctx context.Context, cs *params.Run, logger *zap.SugaredLogger, ...) ([]*tektonv1.PipelineRun, error)
- func SplitDocuments(data string) []string
- type AnnotationValidationRule
- type FetchedResources
- type FetchedResourcesForRun
- type NamedItem
- type Opts
- type TektonTypes
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MetadataResolve ¶ added in v0.21.1
func MetadataResolve(prs []*tektonv1.PipelineRun) ([]*tektonv1.PipelineRun, error)
func Resolve ¶
func Resolve(ctx context.Context, cs *params.Run, logger *zap.SugaredLogger, providerintf provider.Interface, types TektonTypes, event *info.Event, ropt *Opts) ([]*tektonv1.PipelineRun, error)
Resolve gets a large string which is a yaml multi documents containing Pipeline/PipelineRuns/Tasks and resolve them inline as a single PipelineRun generateName can be set as True to set the name as a generateName + "-" for unique pipelinerun.
func SplitDocuments ¶ added in v0.54.0
SplitDocuments splits raw YAML data into its documents, the same way ReadTektonTypes does.
Types ¶
type AnnotationValidationRule ¶ added in v0.53.0
Contains a validation rule for an annotation key, with a function to validate the value of the annotation.
type FetchedResources ¶ added in v0.28.0
type FetchedResources struct {
Tasks map[string]*tektonv1.Task
Pipelines map[string]*tektonv1.Pipeline
}
Contains Fetched Resources for Event, with key equals to annotation value.
type FetchedResourcesForRun ¶ added in v0.28.0
type FetchedResourcesForRun struct {
Tasks map[string]*tektonv1.Task
Pipeline *tektonv1.Pipeline
PipelineURL string
}
Contains Fetched Resources for Run, with key equals to resource name from metadata.name field.
type TektonTypes ¶ added in v0.21.0
type TektonTypes struct {
PipelineRuns []*tektonv1.PipelineRun
Pipelines []*tektonv1.Pipeline
TaskRuns []*tektonv1.TaskRun
Tasks []*tektonv1.Task
ValidationErrors []*pacerrors.PacYamlValidations
}
Contains Resources Fetched from tektondir.
func NewTektonTypes ¶ added in v0.26.0
func NewTektonTypes() TektonTypes
func ReadTektonTypes ¶ added in v0.21.0
func ReadTektonTypes(ctx context.Context, log *zap.SugaredLogger, data string) (TektonTypes, error)