v1

package
v0.29.1 Latest Latest
Warning

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

Go to latest
Published: Jan 4, 2024 License: Apache-2.0 Imports: 26 Imported by: 8

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ApplyWorkload

func ApplyWorkload(obj runtime.Object, w *v1.Workload) error

func NewObject

func NewObject(kindOrResource string, name, ns string) (runtime.Object, error)

func NewObjectForGVK

func NewObjectForGVK(gvk schema.GroupVersionKind, name, ns string) (runtime.Object, error)

Types

type Client

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

Client is used to interact with features provided by the storage.k8s.io group.

func New

New creates a new Client for the given RESTClient.

func NewForConfig

func NewForConfig(c *rest.Config) (*Client, error)

NewForConfig creates a new Client for the given config.

func NewForConfigOrDie

func NewForConfigOrDie(c *rest.Config) *Client

NewForConfigOrDie creates a new Client for the given config and panics if there is an error in the config.

func (*Client) Workloads

func (c *Client) Workloads(namespace string) WorkloadInterface

type Interface

type Interface interface {
	WorkloadsGetter
}

type WorkloadInterface

WorkloadInterface has methods to work with Workload resources.

type WorkloadTransformerFunc

type WorkloadTransformerFunc func(*v1.Workload) *v1.Workload

type WorkloadsGetter

type WorkloadsGetter interface {
	Workloads(namespace string) WorkloadInterface
}

WorkloadsGetter has a method to return a WorkloadInterface. A group's client should implement this interface.

Jump to

Keyboard shortcuts

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