kind

package
v1.12.12 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 23, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const NetworkName = "kind"

Variables

This section is empty.

Functions

func IsKindProvided

func IsKindProvided(providerID string) (string, bool)

func ListClusters

func ListClusters() ([]string, error)

func NetworkConnect

func NetworkConnect(networkID string, nodes []Node) error

func NetworkDisconnect

func NetworkDisconnect(networkID string, nodes []Node) error

Types

type Node

type Node struct {
	types.Container
}

func ListNodes

func ListNodes(cluster, role string) ([]Node, error)

func (*Node) Exec

func (n *Node) Exec(cmd ...string) (stdout, stderr []byte, err error)
func (n *Node) ListLinks() ([]iproute.Link, error)

func (*Node) ListRoutes

func (n *Node) ListRoutes(nonLinkLocalUnicast bool) ([]iproute.Route, error)

func (*Node) Name

func (n *Node) Name() string

func (*Node) NetworkConnect

func (n *Node) NetworkConnect(networkID string) error

func (*Node) NetworkDisconnect

func (n *Node) NetworkDisconnect(networkID string) error

func (*Node) WaitLinkToDisappear

func (n *Node) WaitLinkToDisappear(linkName string, interval time.Duration, deadline time.Time) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL