client

package
v0.0.0-...-1a511a4 Latest Latest
Warning

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

Go to latest
Published: Mar 14, 2024 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewResourceVerber

func NewResourceVerber(client, extensionsClient, appsClient,
	batchClient, betaBatchClient, autoscalingClient, storageClient RESTClient) clientapi.ResourceVerber

NewResourceVerber creates a new resource verber that uses the given client for performing operations.

Types

type DynamicClient

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

func NewDynamicClient

func NewDynamicClient(config *rest.Config) (*DynamicClient, error)

func (*DynamicClient) Update

func (c *DynamicClient) Update(ctx context.Context, namespace string, obj runtime.Object) (*unstructured.Unstructured, error)

type GenericConfig

type GenericConfig struct {
	CacheDir string
	// contains filtered or unexported fields
}

func NewGenericConfig

func NewGenericConfig(kubeConfig string) (*GenericConfig, error)

func (*GenericConfig) ToDiscoveryClient

func (f *GenericConfig) ToDiscoveryClient() (discovery.CachedDiscoveryInterface, error)

func (*GenericConfig) ToRESTConfig

func (f *GenericConfig) ToRESTConfig() (*rest.Config, error)

func (*GenericConfig) ToRESTMapper

func (f *GenericConfig) ToRESTMapper() (meta.RESTMapper, error)

ToRESTMapper returns a mapper.

func (*GenericConfig) ToRawKubeConfigLoader

func (f *GenericConfig) ToRawKubeConfigLoader() clientcmd.ClientConfig

type RESTClient

type RESTClient interface {
	Delete() *restclient.Request
	Put() *restclient.Request
	Get() *restclient.Request
}

RESTClient is an interface for REST operations used in this file.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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