actions

package
v0.0.0-...-a0b04c9 Latest Latest
Warning

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

Go to latest
Published: Oct 2, 2023 License: LGPL-2.1 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BatchV1

type BatchV1 struct {
	Job     *Job
	CronJob *CronJob
}

BatchV1 struct for access to batchv1 api

func NewBatchV1

func NewBatchV1(client batchInterface.BatchV1Interface) *BatchV1

NewBatchV1 return a batch v1 api

type CronJob

type CronJob struct {
	CurrentNamespace string
	// contains filtered or unexported fields
}

CronJob strct for cronJobs action

func NewCronJobAction

func NewCronJobAction(client appsInterface.BatchV1Interface) *CronJob

NewCronJobAction get a cronJob action

func (*CronJob) Create

func (c *CronJob) Create(cronJob *batchv1.CronJob) error

Create Create a cronJob in the client

func (*CronJob) Delete

func (c *CronJob) Delete(cronJobName string) error

Delete Delete a cronJob in the client

func (*CronJob) Get

func (c *CronJob) Get(cronJobName string) (*batchv1.CronJob, error)

Get Get a cronJob from the client

func (*CronJob) List

func (c *CronJob) List() (*batchv1.CronJobList, error)

List List all cronJobs in a namespace

func (*CronJob) Namespace

func (c *CronJob) Namespace(namespace string) *CronJob

Namespace set namespace

func (*CronJob) Update

func (c *CronJob) Update(cronJob *batchv1.CronJob) error

Update Update a cronJob in the client

type Job

type Job struct {
	CurrentNamespace string
	// contains filtered or unexported fields
}

Job strct for jobs action

func NewJobAction

func NewJobAction(client appsInterface.BatchV1Interface) *Job

NewJobAction get a job action

func (*Job) Create

func (d *Job) Create(job *batchv1.Job) error

Create Create a job in the client

func (*Job) Delete

func (d *Job) Delete(jobName string) error

Delete Delete a job in the client

func (*Job) Get

func (d *Job) Get(jobName string) (*batchv1.Job, error)

Get Get a job from the client

func (*Job) List

func (d *Job) List() (*batchv1.JobList, error)

List List all jobs in a namespace

func (*Job) Namespace

func (d *Job) Namespace(namespace string) *Job

Namespace set namespace

func (*Job) Update

func (d *Job) Update(job *batchv1.Job) error

Update Update a job in the client

Jump to

Keyboard shortcuts

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