testing

package
v0.8.1 Latest Latest
Warning

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

Go to latest
Published: Sep 5, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type XGBoostJobWrapper

type XGBoostJobWrapper struct{ kftraining.XGBoostJob }

XGBoostJobWrapper wraps a Job.

func MakeXGBoostJob

func MakeXGBoostJob(name, ns string) *XGBoostJobWrapper

MakeXGBoostJob creates a wrapper for a suspended job with a single container and parallelism=1.

func (*XGBoostJobWrapper) Active

Active updates the replicaStatus for Active of job.

func (*XGBoostJobWrapper) Args

func (j *XGBoostJobWrapper) Args(args []string) *XGBoostJobWrapper

Args updates args of the job.

func (*XGBoostJobWrapper) Image

func (j *XGBoostJobWrapper) Image(image string) *XGBoostJobWrapper

Image updates images of the job.

func (*XGBoostJobWrapper) NodeSelector

func (j *XGBoostJobWrapper) NodeSelector(k, v string) *XGBoostJobWrapper

NodeSelector updates the nodeSelector of job.

func (*XGBoostJobWrapper) Obj

Obj returns the inner Job.

func (*XGBoostJobWrapper) Parallelism

func (j *XGBoostJobWrapper) Parallelism(p int32) *XGBoostJobWrapper

Parallelism updates job parallelism.

func (*XGBoostJobWrapper) PriorityClass

func (j *XGBoostJobWrapper) PriorityClass(pc string) *XGBoostJobWrapper

PriorityClass updates job priorityclass.

func (*XGBoostJobWrapper) Queue

func (j *XGBoostJobWrapper) Queue(queue string) *XGBoostJobWrapper

Queue updates the queue name of the job.

func (*XGBoostJobWrapper) Request

Request updates a resource request to the default container.

func (*XGBoostJobWrapper) Suspend

func (j *XGBoostJobWrapper) Suspend(s bool) *XGBoostJobWrapper

Suspend updates the suspend status of the job.

func (*XGBoostJobWrapper) UID

UID updates the uid of the job.

Jump to

Keyboard shortcuts

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