clientset

package
v0.2.1-preview Latest Latest
Warning

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

Go to latest
Published: Jan 23, 2020 License: Apache-2.0 Imports: 7 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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