clientset

package
v0.12.0 Latest Latest
Warning

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

Go to latest
Published: Sep 19, 2022 License: Apache-2.0 Imports: 9 Imported by: 0

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.

func WithClient

func WithClient(client dynamic.Interface) Option

WithClient adds Tekton related clients to the Dynamic client.

Jump to

Keyboard shortcuts

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