kubeclient

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Feb 10, 2024 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 ClientPool

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

func NewPool

func NewPool() *ClientPool

func (*ClientPool) Add

func (p *ClientPool) Add(
	ctx context.Context,
	context string,
	user string,
	cluster string,
	namespace string,
	config *rest.Config,
) error

func (*ClientPool) Context

func (p *ClientPool) Context(name string) (*Context, error)

func (*ClientPool) Contexts

func (p *ClientPool) Contexts() (cs []*Context)

func (*ClientPool) CurrentContext

func (p *ClientPool) CurrentContext() *Context

func (*ClientPool) SetCurrent

func (p *ClientPool) SetCurrent(name string) error

type Context

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

func (*Context) Cluster

func (c *Context) Cluster() string

func (*Context) ClusterUID

func (c *Context) ClusterUID() string

func (*Context) DiscoveryClient

func (c *Context) DiscoveryClient() (discovery.DiscoveryInterface, error)

func (*Context) DynamicClient

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

func (*Context) Name

func (c *Context) Name() string

func (*Context) Namespace

func (c *Context) Namespace() string

func (*Context) User

func (c *Context) User() string

Jump to

Keyboard shortcuts

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