Documentation
¶
Index ¶
- type ClientPool
- func (p *ClientPool) Add(ctx context.Context, context string, user string, cluster string, ...) error
- func (p *ClientPool) Context(name string) (*Context, error)
- func (p *ClientPool) Contexts() (cs []*Context)
- func (p *ClientPool) CurrentContext() *Context
- func (p *ClientPool) SetCurrent(name string) error
- type Context
- func (c *Context) Cluster() string
- func (c *Context) ClusterUID() string
- func (c *Context) DiscoveryClient() (discovery.DiscoveryInterface, error)
- func (c *Context) DynamicClient() (dynamic.Interface, error)
- func (c *Context) Name() string
- func (c *Context) Namespace() string
- func (c *Context) User() string
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) 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) ClusterUID ¶
func (*Context) DiscoveryClient ¶
func (c *Context) DiscoveryClient() (discovery.DiscoveryInterface, error)
Click to show internal directories.
Click to hide internal directories.