role

package
v0.1.4 Latest Latest
Warning

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

Go to latest
Published: Oct 10, 2024 License: AGPL-3.0 Imports: 3 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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

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

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