Documentation ¶
Overview ¶
Package context contains the internal cluster context shared by various packages that implement the user face pkg/cluster.Context
Index ¶
- type Context
- func (c *Context) CollectLogs(dir string) error
- func (c *Context) GetAPIServerEndpoint() (string, error)
- func (c *Context) GetAPIServerInternalEndpoint() (string, error)
- func (c *Context) ListInternalNodes() ([]nodes.Node, error)
- func (c *Context) ListNodes() ([]nodes.Node, error)
- func (c *Context) Name() string
- func (c *Context) Provider() provider.Provider
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Context ¶
type Context struct {
// contains filtered or unexported fields
}
Context is the private shared context underlying pkg/cluster.Context
NOTE: this is the internal one, it should contain reasonably trivial methods that are safe to share between various user facing methods pkg/cluster.Context is a superset of this, packages like create and delete consume this
func NewContext ¶
NewContext returns a new internal cluster management context if name is "" the default name will be used
func NewProviderContext ¶ added in v0.7.0
NewProviderContext returns a new context with given provider and name
func (*Context) CollectLogs ¶ added in v0.8.0
CollectLogs will populate dir with cluster logs and other debug files
func (*Context) GetAPIServerEndpoint ¶ added in v0.7.0
GetAPIServerEndpoint returns the cluster's API Server endpoint
func (*Context) GetAPIServerInternalEndpoint ¶ added in v0.8.0
GetAPIServerInternalEndpoint returns the cluster's internal API Server endpoint
func (*Context) ListInternalNodes ¶ added in v0.4.0
ListInternalNodes returns the list of container IDs for the "nodes" in the cluster that are not external