model

package
v0.12.6 Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2023 License: GPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewTaskLabels

func NewTaskLabels() commonModel.Labels

Types

type CommonTaskOptions

type CommonTaskOptions struct {
	EventBus *event.EventBus
}

func NewCommonTaskOpts

func NewCommonTaskOpts() *CommonTaskOptions

type RunOptions

type RunOptions struct {
	Template   *TaskV1
	Labels     commonModel.Labels
	CommonInfo commonModel.CommonInfo
	StreamOpts *commonModel.StreamOptions
	Arguments  []string
	LogDir     string
}

func (*RunOptions) GenerateLogFileName added in v0.12.0

func (opts *RunOptions) GenerateLogFileName(provider TaskProvider, containerName string) string

type TaskClientOptions

type TaskClientOptions struct {
	Provider   TaskProvider
	DockerOpts *commonModel.DockerOptions
	KubeOpts   *commonModel.KubeOptions
}

type TaskCommand

type TaskCommand struct {
	Name      string
	Arguments []string
}

func (*TaskCommand) ExpandCommandArguments

func (command *TaskCommand) ExpandCommandArguments(parameters commonModel.Parameters) ([]string, error)

type TaskProvider

type TaskProvider string

func (TaskProvider) String

func (p TaskProvider) String() string

type TaskV1

type TaskV1 struct {
	Kind     string
	Name     string
	Tags     []string
	Image    commonModel.Image
	Commands []TaskCommand
}

func (*TaskV1) CommandMap

func (task *TaskV1) CommandMap() map[string]TaskCommand

func (*TaskV1) GenerateName

func (task *TaskV1) GenerateName() string

func (*TaskV1) LoadCommand added in v0.11.0

func (task *TaskV1) LoadCommand(name string) (TaskCommand, error)

func (*TaskV1) MainContainerName added in v0.12.1

func (task *TaskV1) MainContainerName() string

func (*TaskV1) Pretty

func (task *TaskV1) Pretty() string

Jump to

Keyboard shortcuts

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