task

package
v1.1.6 Latest Latest
Warning

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

Go to latest
Published: Feb 17, 2021 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// filename use with s3cmd
	MinIOSecretKey = ".s3cfg"
	// Prefix use for name of resource
	MinIOPrefixSecret = "minio"
)

TODO those are duplicates entries for breaking cycle import find a way to remove it

Variables

This section is empty.

Functions

This section is empty.

Types

type BuildTask

type BuildTask struct {
	Meta
	BuildDocker bool
}

BuildTask task struct fo CI

func (*BuildTask) Create

func (b *BuildTask) Create(ctx context.Context, r client.Client, log logr.Logger) error

type CleanTask

type CleanTask struct {
	Meta
}

CleanTask task struct for CI

func (*CleanTask) Create

func (u *CleanTask) Create(ctx context.Context, r client.Client, log logr.Logger) error

type DeployTask

type DeployTask struct {
	Meta
}

DeployTask task struct for CI

func (*DeployTask) Create

func (d *DeployTask) Create(ctx context.Context, r client.Client, log logr.Logger) error

type IntTestTask

type IntTestTask struct {
	Meta
}

IntTestTask task struct for CI

func (*IntTestTask) Create

func (u *IntTestTask) Create(ctx context.Context, r client.Client, log logr.Logger) error

type Meta

type Meta struct {
	Steps  []tkn.Step
	Play   *ci.Play
	Scheme *runtime.Scheme
}

Meta is the base struct for all struct with create method

type SonarTask

type SonarTask struct {
	Meta
}

SonarTask task struct for CI

func (*SonarTask) Create

func (s *SonarTask) Create(ctx context.Context, r client.Client, log logr.Logger) error

type Step

type Step struct {
	Index    int
	PlaySpec ci.PlaySpec
	Client   client.Client
	TaskType ci.TaskType
}

Step structure for GetStep and FilteredStep

func (*Step) FilteredSteps

func (s *Step) FilteredSteps(logger logr.Logger, steps ci.Steps, isTest bool) ci.Steps

FilteredSteps return a ci.Steps filtered by annotation

func (*Step) GetGenericSteps added in v0.1.1

func (s *Step) GetGenericSteps(logger logr.Logger, steps ci.Steps) ci.Steps

GetGenericStep returns the steps bind with the task type

func (*Step) GetSteps

func (s *Step) GetSteps(ctx context.Context, logger logr.Logger) ([]tkn.Step, error)

GetSteps return the list of step according the task

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
}

func (*Task) Add

func (t *Task) Add(taskFunc func(context.Context, client.Client, logr.Logger) error) error

func (*Task) Build

func (t *Task) Build(ctx context.Context, logger logr.Logger) error

Build create the build Tekton Task resource

func (*Task) Clean

func (t *Task) Clean(ctx context.Context, logger logr.Logger) error

Clean create the clean Tekton Task resource

func (*Task) Deploy

func (t *Task) Deploy(ctx context.Context, logger logr.Logger) error

Deploy create the Deploy Tekton Task resource

func (*Task) IntTest

func (t *Task) IntTest(ctx context.Context, logger logr.Logger) error

IntTest create the intTest Tekton Task resource

func (*Task) Parse

func (t *Task) Parse(ctx context.Context, logger logr.Logger) error

func (*Task) Sonar

func (t *Task) Sonar(ctx context.Context, logger logr.Logger) error

Sonar create the sonar Tekton Task resource

func (*Task) UnitTest

func (t *Task) UnitTest(ctx context.Context, logger logr.Logger) error

UnitTest create the unitTest Tekton Task resource

type UnitTestTask

type UnitTestTask struct {
	Meta
}

UnitTestTask task struct for CI

func (*UnitTestTask) Create

func (u *UnitTestTask) Create(ctx context.Context, r client.Client, log logr.Logger) error

Jump to

Keyboard shortcuts

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