instance

package
v0.0.0-...-9ec8fc4 Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2026 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Info

type Info struct {
	// Address is the network address of the instance as specified by the associated ConfigMap entry.
	// Must be an IPv4 address or a DNS name that resolves to one.
	Address string
	// IPv4Address is the IPv4 address associated with the instance's given Address. May be the same value.
	IPv4Address string
	// Username is the name of a user that can be ssh'd into.
	Username string
	// NewHostname being set means that the instance's hostname should be changed. An empty value is a no-op.
	NewHostname string
	// SetNodeIP indicates if the instance should have the node-ip arg set when bootstrapping.
	SetNodeIP bool
	// Node is an optional pointer to the Node object associated with the instance, if it has one.
	Node *core.Node
}

Info represents a instance that is meant to be joined to the cluster

func NewInfo

func NewInfo(address, username, newHostname string, setNodeIP bool, node *core.Node) (*Info, error)

NewInfo returns a new Info. newHostname being set means that the instance's hostname should be changed. An empty value is a no-op.

func (*Info) UpToDate

func (i *Info) UpToDate() bool

UpToDate returns true if the instance was configured by the current WMCO version

func (*Info) UpgradeRequired

func (i *Info) UpgradeRequired() bool

UpgradeRequired returns true if the instance needs to go through the upgrade process

Jump to

Keyboard shortcuts

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