batch

package
v0.0.0-...-ae3d3cc Latest Latest
Warning

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

Go to latest
Published: Mar 2, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CronJob

type CronJob struct {
	*common.SimpleResource[*vv1.CronJob]
	WaitForConverged bool
}

func NewCronJob

func NewCronJob(name string, cronJob *vv1.CronJob) *CronJob

func (*CronJob) Converged

func (c *CronJob) Converged(ctx context.Context, cli client.Client, namespace string) (bool, error)

type Job

type Job struct {
	*common.SimpleResource[*v1.Job]
	WaitForConverged bool
}

func NewJob

func NewJob(job *v1.Job) *Job

func (*Job) Converged

func (c *Job) Converged(ctx context.Context, cli client.Client, namespace string) (bool, error)

func (*Job) Create

func (c *Job) Create() (client.Object, error)

func (*Job) Update

func (c *Job) Update(ctx context.Context, fromApiServer runtime.Object) error

Jump to

Keyboard shortcuts

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