resources

package
v0.0.0-...-1a23c2c Latest Latest
Warning

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

Go to latest
Published: Nov 6, 2021 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Job

type Job struct {
	Client     *client.Client
	Identifier string
	Attributes struct {
		Task        universal.Task
		Parallelism uint16
		Addresses   []net.IP
		Status      map[string]int
		Events      []universal.Event
	}
	Dependencies struct{}
	Resource     *kubernetes_batch.Job
}

func NewJob

func NewJob(client *client.Client, identifier string, task universal.Task) *Job

func (*Job) Create

func (j *Job) Create(ctx context.Context) error

func (*Job) Delete

func (j *Job) Delete(ctx context.Context) error

func (*Job) Logs

func (j *Job) Logs(ctx context.Context) ([]string, error)

func (*Job) Read

func (j *Job) Read(ctx context.Context) error

Jump to

Keyboard shortcuts

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