model

package
v0.10.0 Latest Latest
Warning

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

Go to latest
Published: Sep 23, 2023 License: GPL-3.0 Imports: 7 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
	Arguments   []string
	Labels      commonModel.Labels
	NetworkInfo commonModel.NetworkInfo
	StreamOpts  *commonModel.StreamOptions
}

type TaskClientOptions

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

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
const (
	Docker TaskProvider = "docker"
)

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) DefaultCommand

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

func (*TaskV1) GenerateName

func (task *TaskV1) GenerateName() 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