v1

package
v1.3.2 Latest Latest
Warning

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

Go to latest
Published: Aug 23, 2022 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewResourceLoadError

func NewResourceLoadError(resource string, err error) error

NewResourceLoadError creates a `ResourceLoadError`.

Types

type BatchV1

type BatchV1 struct {
	v1.BatchV1Interface
	// contains filtered or unexported fields
}

BatchV1 is used to interact with features provided by the batch group.

func NewBatchV1

func NewBatchV1(client kubernetes.Interface, options *options.Client) *BatchV1

NewBatchV1 creates `BatchV1`.

func (*BatchV1) CronJob

func (batchv1 *BatchV1) CronJob(resource string) *result.Result

CronJob returns a single resource.

func (*BatchV1) CronJobList

func (batchv1 *BatchV1) CronJobList() ([]string, error)

CronJobList returns a list of cronjobs.

func (*BatchV1) Job

func (batchv1 *BatchV1) Job(resource string) *result.Result

Job returns a single resource with the given name.

func (*BatchV1) JobList

func (batchv1 *BatchV1) JobList() ([]string, error)

JobList returns a list of jobs.

type ResourceLoadError

type ResourceLoadError struct {
	Err      error
	Resource string
}

ResourceLoadError wraps API errors when a resource is not found.

func (*ResourceLoadError) Error

func (e *ResourceLoadError) Error() string

Error returns the message on the internal error (if there is one).

func (*ResourceLoadError) Unwrap

func (e *ResourceLoadError) Unwrap() error

Unwrap returns the internal error.

Jump to

Keyboard shortcuts

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