k8sjob

package
v2.11.1 Latest Latest
Warning

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

Go to latest
Published: Apr 2, 2024 License: Apache-2.0 Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ExecEnv

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

func NewExecEnv

func NewExecEnv(ctx context.Context, cfg kubectl.Config, labeller *label.DefaultLabeller, namespace string, envMap map[string]string, acs []latest.Action) *ExecEnv

func (ExecEnv) Cleanup

func (e ExecEnv) Cleanup(ctx context.Context, out io.Writer) error

func (ExecEnv) PrepareActions

func (e ExecEnv) PrepareActions(ctx context.Context, out io.Writer, allbuilds, localImgs []graph.Artifact, acsNames []string) ([]actions.Action, error)

func (ExecEnv) Stop

func (e ExecEnv) Stop()

func (ExecEnv) TrackContainerAndJobFromBuild

func (e ExecEnv) TrackContainerAndJobFromBuild(art graph.Artifact, container tracker.Job, job *batchv1.Job)

type Task

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

func NewTask

func NewTask(c latest.VerifyContainer, kubectl *kubectl.CLI, namespace string, artifact graph.Artifact, jobManifest batchv1.Job, execEnv *ExecEnv) Task

func (Task) Cleanup

func (t Task) Cleanup(ctx context.Context, out io.Writer) error

func (Task) Exec

func (t Task) Exec(ctx context.Context, out io.Writer) error

func (Task) Name

func (t Task) Name() string

Jump to

Keyboard shortcuts

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