components

package
v2.5.2 Latest Latest
Warning

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

Go to latest
Published: Feb 16, 2023 License: AGPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Component

type Component struct {
	URL         string
	Hash        string
	InstallPath string
	Extract     bool
}

Component is a Kubernetes component.

type Components

type Components []Component

Components is a list of Kubernetes components.

func NewComponentsFromInitProto

func NewComponentsFromInitProto(protoComponents []*initproto.KubernetesComponent) Components

NewComponentsFromInitProto converts a protobuf KubernetesVersion to Components.

func NewComponentsFromJoinProto

func NewComponentsFromJoinProto(protoComponents []*joinproto.KubernetesComponent) Components

NewComponentsFromJoinProto converts a protobuf KubernetesVersion to Components.

func (Components) GetHash

func (c Components) GetHash() string

GetHash returns the hash over all component hashes.

func (Components) GetKubeadmComponent

func (c Components) GetKubeadmComponent() (Component, error)

GetKubeadmComponent returns the kubeadm component.

func (Components) ToInitProto

func (c Components) ToInitProto() []*initproto.KubernetesComponent

ToInitProto converts Components to a protobuf KubernetesVersion.

func (Components) ToJoinProto

func (c Components) ToJoinProto() []*joinproto.KubernetesComponent

ToJoinProto converts Components to a protobuf KubernetesVersion.

Jump to

Keyboard shortcuts

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