role

package
v2.15.1 Latest Latest
Warning

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

Go to latest
Published: Feb 15, 2024 License: AGPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Role

type Role uint

Role is a peer's role.

const (
	// Unknown is the default value for Role and should have no meaning.
	Unknown Role = iota
	// ControlPlane declares this node as a Kubernetes control plane node.
	ControlPlane
	// Worker declares this node as a Kubernetes worker node.
	Worker
)

func FromString added in v2.2.0

func FromString(s string) Role

FromString returns the Role for the given string.

func (Role) MarshalJSON

func (r Role) MarshalJSON() ([]byte, error)

MarshalJSON marshals the Role to JSON string.

func (Role) String

func (i Role) String() string

func (Role) TFString added in v2.9.0

func (r Role) TFString() string

TFString returns the role as a string for Terraform.

func (*Role) UnmarshalJSON

func (r *Role) UnmarshalJSON(b []byte) error

UnmarshalJSON unmarshals the Role from JSON string.

Jump to

Keyboard shortcuts

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