job

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Aug 15, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Overview

Package deployment manipulates the k8s api of deployment object

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Job

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

Deployment is the object to manipulate k8s api of deployment

func New

func New(options ...Option) *Job

New news a Deployment

func (*Job) Create

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

Create creates a k8s job object

func (*Job) Delete

func (j *Job) Delete(namespace, name string) error

Delete deletes a k8s job

func (*Job) Get

func (j *Job) Get(namespace, name string) (*batchv1.Job, error)

Get gets a k8s job object

func (*Job) List

func (j *Job) List(namespace string, labelSelector map[string]string) (batchv1.JobList, error)

List lists job under specific namespace

type Option

type Option func(*Job)

Option configures a Deployment

func WithCompleteParams

func WithCompleteParams(addr string, client *httpclient.HTTPClient) Option

WithCompleteParams provides an Option

Jump to

Keyboard shortcuts

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