Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DockerTask ¶
type DockerTask struct {
// contains filtered or unexported fields
}
func NewDockerTask ¶
func NewDockerTask(ctx context.Context, options NewDockerTaskOptions) (*DockerTask, error)
NewDockerTask creates a new task based on the given code and ready for execution.
func (*DockerTask) Run ¶
func (t *DockerTask) Run(ctx context.Context) (*ExecOutput, error)
Run runs a task.
type ExecInput ¶
type ExecInput struct {
RunInstructions ExecInputRunInstructions `json:"runInstructions"`
Files []*ExecInputFile `json:"files"`
Stdin *string `json:"stdin"`
}
type ExecInputFile ¶
type ExecOutput ¶
type ExecOutput struct {
Stdout string `json:"stdout"`
Stderr string `json:"stderr"`
Error string `json:"error"`
Duration int64 `json:"duration"`
}
ExecOutput is the glot output style.
type ExecRuntime ¶
type ExecRuntime interface {
Run(ctx context.Context) (*ExecOutput, error)
}
type KubernetesTask ¶
type KubernetesTask struct {
// contains filtered or unexported fields
}
func NewKubernetesTask ¶
func NewKubernetesTask(_ context.Context, options NewKubernetesTaskOptions) (*KubernetesTask, error)
func (*KubernetesTask) Run ¶
func (t *KubernetesTask) Run(ctx context.Context) (*ExecOutput, error)
type NewDockerTaskOptions ¶
Click to show internal directories.
Click to hide internal directories.