components

package
v2.16.3 Latest Latest
Warning

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

Go to latest
Published: Apr 11, 2024 License: AGPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_internal_versions_components_components_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type Component

type Component struct {
	Url         string `protobuf:"bytes,1,opt,name=url,proto3" json:"url,omitempty"`
	Hash        string `protobuf:"bytes,2,opt,name=hash,proto3" json:"hash,omitempty"`
	InstallPath string `protobuf:"bytes,3,opt,name=install_path,json=installPath,proto3" json:"install_path,omitempty"`
	Extract     bool   `protobuf:"varint,4,opt,name=extract,proto3" json:"extract,omitempty"`
	// contains filtered or unexported fields
}

func (*Component) Descriptor deprecated added in v2.14.0

func (*Component) Descriptor() ([]byte, []int)

Deprecated: Use Component.ProtoReflect.Descriptor instead.

func (*Component) GetExtract added in v2.14.0

func (x *Component) GetExtract() bool

func (*Component) GetHash added in v2.14.0

func (x *Component) GetHash() string

func (*Component) GetInstallPath added in v2.14.0

func (x *Component) GetInstallPath() string

func (*Component) GetUrl added in v2.14.0

func (x *Component) GetUrl() string

func (*Component) ProtoMessage added in v2.14.0

func (*Component) ProtoMessage()

func (*Component) ProtoReflect added in v2.14.0

func (x *Component) ProtoReflect() protoreflect.Message

func (*Component) Reset added in v2.14.0

func (x *Component) Reset()

func (*Component) String added in v2.14.0

func (x *Component) String() string

type Components

type Components []*Component

Components is a list of Kubernetes 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) GetUpgradableComponents added in v2.14.0

func (c Components) GetUpgradableComponents() Components

GetUpgradableComponents returns only those Components that should be passed to the upgrade-agent.

func (*Components) UnmarshalJSON added in v2.14.0

func (c *Components) UnmarshalJSON(b []byte) error

UnmarshalJSON implements a custom JSON unmarshaler to ensure backwards compatibility with older components lists which had a different format for all keys.

Jump to

Keyboard shortcuts

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