task

package
v0.6.0 Latest Latest
Warning

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

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

Documentation

Overview

Copyright 2020 WILDCARD SA.

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. Created on 01/03/2021

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 E2ETestTask added in v0.2.0

type E2ETestTask struct {
	Meta
}

E2ETestTask task struct for CI

func (*E2ETestTask) Create added in v0.2.0

func (e *E2ETestTask) 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) E2ETest added in v0.2.0

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

E2ETest create an e2e test 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