Documentation ¶
Overview ¶
Package types implements type functionality.
Index ¶
- func ContainerCmder(containerNameOrID string) *containerCmder
- type Node
- func (n *Node) Delete(ctx context.Context) error
- func (n *Node) IP(ctx context.Context) (ipv4 string, ipv6 string, err error)
- func (n *Node) IsRunning() bool
- func (n *Node) Kill(ctx context.Context, signal string) error
- func (n *Node) Role() (string, error)
- func (n *Node) String() string
- func (n *Node) WithStatus(status string) *Node
- func (n *Node) WriteFile(ctx context.Context, dest, content string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ContainerCmder ¶
func ContainerCmder(containerNameOrID string) *containerCmder
Types ¶
type Node ¶
type Node struct { Name string ClusterRole string InternalIP string Image string Commander *containerCmder // contains filtered or unexported fields }
Node can be thought of as a logical component of Kubernetes. A node is either a control plane node, a worker node, or a load balancer node.
func (*Node) WithStatus ¶
WithStatus sets the status of the container and returns the node.
Click to show internal directories.
Click to hide internal directories.