clientset

package
v0.25.0 Latest Latest
Warning

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

Go to latest
Published: Aug 28, 2023 License: Apache-2.0 Imports: 8 Imported by: 8

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Clientset

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

Clientset maps GroupVersionResources to underlying dynamic clients. If the GVR does not exist, operations will return an error.

func New

func New(opts ...Option) *Clientset

New creates a new Clientset with the provided options.

func (*Clientset) Add

func (r *Clientset) Add(resource schema.GroupVersionResource, client dynamic.Interface)

Add adds a new mapping for the given resource.

func (*Clientset) Resource

Resource returns the dynamic Resource for the given GVR. If not configured, an error resource is returned.

type Option

type Option func(*Clientset)

Option defines optional configuration for the Clientset. Most commonly used to initialize extensions.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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