nodes

package
v0.22.0 Latest Latest
Warning

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

Go to latest
Published: Feb 14, 2024 License: Apache-2.0 Imports: 2 Imported by: 39

Documentation

Overview

Package nodes provides a kind specific definition of a cluster node

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Node

type Node interface {
	// The node should implement exec.Cmder for running commands against the node
	// see: sigs.k8s.io/kind/pkg/exec
	exec.Cmder
	// String should return the node name
	String() string // see also: fmt.Stringer
	// Role should return the node's role
	Role() (string, error) // see also: pkg/cluster/constants
	// TODO(bentheelder): should return node addresses more generally
	// Possibly remove this method in favor of obtaining this detail with
	// exec or from the provider
	IP() (ipv4 string, ipv6 string, err error)
	// SerialLogs collects the "node" container logs
	SerialLogs(writer io.Writer) error
}

Node represents a kind cluster node

Jump to

Keyboard shortcuts

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