cluster-api: sigs.k8s.io/cluster-api/test/infrastructure/docker/docker/types Index | Files

package types

import "sigs.k8s.io/cluster-api/test/infrastructure/docker/docker/types"

Index

Package Files

node.go

func ContainerCmder Uses

func ContainerCmder(containerNameOrID string) *containerCmder

type Node Uses

type Node struct {
    Name        string
    ClusterRole string
    InternalIP  string
    Image       string
    Commander   *containerCmder
}

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 NewNode Uses

func NewNode(name, image, role string) *Node

NewNode returns a Node with defaults.

func (*Node) Delete Uses

func (n *Node) Delete(ctx context.Context) error

Delete removes the container.

func (*Node) IP Uses

func (n *Node) IP(ctx context.Context) (ipv4 string, ipv6 string, err error)

IP gets the docker ipv4 and ipv6 of the node.

func (*Node) Kill Uses

func (n *Node) Kill(ctx context.Context, signal string) error

Kill sends the named signal to the container.

func (*Node) Role Uses

func (n *Node) Role() (string, error)

Role returns the role of the node.

func (*Node) String Uses

func (n *Node) String() string

String returns the name of the node.

func (*Node) WriteFile Uses

func (n *Node) WriteFile(ctx context.Context, dest, content string) error

WriteFile puts a file inside a running container.

Package types imports 8 packages (graph) and is imported by 1 packages. Updated 2020-10-29. Refresh now. Tools for package owners.