clientv2

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: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

func NewClient

func NewClient(kubeconfig string) (*Client, error)

func (*Client) K8S

func (c *Client) K8S() *K8sClient

type K8sClient

type K8sClient struct {
	Factory cmdutil.Factory
}

func (*K8sClient) DynamicClient

func (c *K8sClient) DynamicClient() (dynamic.Interface, error)

func (*K8sClient) Get

func (c *K8sClient) Get(resourceType string, namespace string, name string) (runtime.Object, error)

func (*K8sClient) IsReachable

func (c *K8sClient) IsReachable() error

func (*K8sClient) List

func (c *K8sClient) List(group string, version string, kind string, namespace string) ([]runtime.Object, error)

func (*K8sClient) RESTMapper

func (c *K8sClient) RESTMapper() (meta.RESTMapper, error)

func (*K8sClient) ToDiscoveryClient

func (c *K8sClient) ToDiscoveryClient() (discovery.CachedDiscoveryInterface, error)

func (*K8sClient) VerifyCreate

func (c *K8sClient) VerifyCreate(obj runtime.Object) error

Jump to

Keyboard shortcuts

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