Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewTaskLabels ¶
func NewTaskLabels() commonModel.Labels
Types ¶
type CommonTaskOptions ¶
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 ¶
func (*TaskCommand) ExpandCommandArguments ¶
func (command *TaskCommand) ExpandCommandArguments(parameters commonModel.Parameters) ([]string, error)
type TaskProvider ¶
type TaskProvider string
const ( Docker TaskProvider = model.DockerProvider Kubernetes TaskProvider = model.KubernetesProvider Cloud TaskProvider = model.CloudProvider )
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 (*TaskV1) LoadCommand ¶ added in v0.11.0
func (task *TaskV1) LoadCommand(name string) (TaskCommand, error)
func (*TaskV1) MainContainerName ¶ added in v0.12.1
Click to show internal directories.
Click to hide internal directories.