task

package
v1.17.8 Latest Latest
Warning

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

Go to latest
Published: Jun 6, 2022 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultName     = "default"
	DefaultPath     = "/workspace"
	DefaultRevision = "master"
	KubeConfigFile  = "kubeconfig"
)
View Source
const (
	METADATA_ENVIRONMENT_SUBPATH = "environment"
)

Variables

This section is empty.

Functions

func CreateKubeconfigFile

func CreateKubeconfigFile(directory string, resource *model.ClusterDetails) error

func GetData

func GetData(spec map[string]interface{}, path, output string) ([]byte, error)

Types

type TaskInterface

type TaskInterface struct {
	// contains filtered or unexported fields
}

func NewTaskInterface

func NewTaskInterface(opts taskutil.DefaultPlanOptions) *TaskInterface

func (*TaskInterface) CloneRepository

func (ti *TaskInterface) CloneRepository(revision, directory string) error

func (*TaskInterface) GetAzureARMEnvironmentVariables added in v1.17.2

func (ti *TaskInterface) GetAzureARMEnvironmentVariables() (map[string]string, error)

func (*TaskInterface) GetAzureSpec added in v1.17.2

func (ti *TaskInterface) GetAzureSpec() (*model.AzureSpec, error)

func (*TaskInterface) ProcessAWS

func (ti *TaskInterface) ProcessAWS(directory string) error

func (*TaskInterface) ProcessClusters

func (ti *TaskInterface) ProcessClusters(directory string) error

func (*TaskInterface) ProcessCredentials

func (ti *TaskInterface) ProcessCredentials(directory string) error

func (*TaskInterface) ProcessGCP added in v1.16.0

func (ti *TaskInterface) ProcessGCP(directory string) error

func (*TaskInterface) ReadData

func (ti *TaskInterface) ReadData(path string) ([]byte, error)

func (*TaskInterface) ReadEnvironmentVariable added in v1.17.1

func (ti *TaskInterface) ReadEnvironmentVariable(name string) ([]byte, error)

func (*TaskInterface) ReadEnvironmentVariables added in v1.17.1

func (ti *TaskInterface) ReadEnvironmentVariables() ([]byte, error)

func (*TaskInterface) WriteFile

func (ti *TaskInterface) WriteFile(file, path, output string) error

Jump to

Keyboard shortcuts

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