Documentation ¶
Index ¶
- type Client
- func (c *Client) ApplyDeployment(depl *apps.Deployment) (bool, error)
- func (c *Client) ApplyNamespace(ns *core.Namespace) (bool, error)
- func (c *Client) ApplySecret(sec *core.Secret) (bool, error)
- func (c *Client) Available() bool
- func (c *Client) DeleteNode(name string, node NodeWithKubeadm, drain bool) (err error)
- func (c *Client) Drain(node *core.Node) (err error)
- func (c *Client) GetNode(id string) (node *core.Node, err error)
- func (c *Client) ListNodes(filterID ...string) (nodes []core.Node, err error)
- func (c *Client) Refresh(kubeconfig *string) (err error)
- func (c *Client) Uncordon(node *core.Node) (err error)
- func (c *Client) UpdateNode(node *core.Node) (err error)
- type File
- type IDFunc
- type KubernetesVersion
- type NodeWithKubeadm
- type NotAvailableError
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 (*Client) ApplyDeployment ¶
func (c *Client) ApplyDeployment(depl *apps.Deployment) (bool, error)
func (*Client) DeleteNode ¶
func (c *Client) DeleteNode(name string, node NodeWithKubeadm, drain bool) (err error)
type KubernetesVersion ¶
type KubernetesVersion int
const ( Unknown KubernetesVersion = iota V1x15x0 V1x15x1 V1x15x2 V1x15x3 V1x15x4 V1x16x0 )
func ParseString ¶
func ParseString(version string) KubernetesVersion
func (KubernetesVersion) DefineSoftware ¶
func (k KubernetesVersion) DefineSoftware() *operator.Software
func (KubernetesVersion) ExtractMinor ¶
func (k KubernetesVersion) ExtractMinor() (int, error)
func (KubernetesVersion) ExtractPatch ¶
func (k KubernetesVersion) ExtractPatch() (int, error)
func (KubernetesVersion) NextHighestMinor ¶
func (k KubernetesVersion) NextHighestMinor() KubernetesVersion
func (KubernetesVersion) String ¶
func (k KubernetesVersion) String() string
type NodeWithKubeadm ¶
type NotAvailableError ¶
type NotAvailableError struct{}
func (*NotAvailableError) Error ¶
func (n *NotAvailableError) Error() string
Click to show internal directories.
Click to hide internal directories.