Documentation ¶
Index ¶
- func BuildAndGetPredefinedEnv(play *ci.Play) (envVars []corev1.EnvVar)
- func BuildCommonPredefinedEnv(play *ci.Play) (envVars []corev1.EnvVar)
- func BuildConfigPredefinedEnv() (envVars []corev1.EnvVar)
- func BuildTaskPredefinedEnv(tasks []map[ci.TaskType]ci.Task) (envVars []corev1.EnvVar)
- type BuildTask
- type CleanTask
- type DeployTask
- type E2ETestTask
- type GenericTask
- type IntTestTask
- type Meta
- type Step
- func (s *Step) FilteredSteps(logger logr.Logger, steps ci.Steps, isTest bool) ci.Steps
- func (s *Step) GetGenericSteps(logger logr.Logger, steps ci.Steps) ci.Steps
- func (s *Step) GetParams(params []ci.ParamSpec) (r []tkn.ParamSpec)
- func (s *Step) GetSteps(ctx context.Context, logger logr.Logger) (steps []tkn.Step, params []ci.ParamSpec, sidecars []tkn.Sidecar, err error)
- type Task
- func (t *Task) Add(taskFunc func(context.Context, client.Client, logr.Logger) error) error
- func (t *Task) Build(ctx context.Context, logger logr.Logger) error
- func (t *Task) Clean(ctx context.Context, logger logr.Logger) error
- func (t *Task) Deploy(ctx context.Context, logger logr.Logger) error
- func (t *Task) E2ETest(ctx context.Context, logger logr.Logger) error
- func (t *Task) Generic(ctx context.Context, taskType ci.TaskType, logger logr.Logger) error
- func (t *Task) IntTest(ctx context.Context, logger logr.Logger) error
- func (t *Task) Parse(ctx context.Context, logger logr.Logger) error
- func (t *Task) UnitTest(ctx context.Context, logger logr.Logger) error
- type UnitTestTask
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BuildAndGetPredefinedEnv ¶ added in v0.10.0
BuildAndGetPredefinedEnv build the variables environment for all steps
func BuildCommonPredefinedEnv ¶ added in v0.10.0
BuildCommonPredefinedEnv return the basics commons environment variable
func BuildConfigPredefinedEnv ¶ added in v0.10.0
BuildConfigPredefinedEnv return then envVar from config values
Types ¶
type GenericTask ¶ added in v0.10.0
GenericTask task struct for CI
type Step ¶
Step structure for GetStep and FilteredStep
func (*Step) FilteredSteps ¶
FilteredSteps return a ci.Steps filtered by annotation
func (*Step) GetGenericSteps ¶ added in v0.1.1
GetGenericSteps returns the steps bind with the task type
type Task ¶
type Task struct { // Index is the position of the task in the list Index int Creates []func(context.Context, client.Client, logr.Logger) error Client client.Client Play *ci.Play Scheme *runtime.Scheme Params map[string][]ci.ParamSpec }
Click to show internal directories.
Click to hide internal directories.