components

package
v0.1.7 Latest Latest
Warning

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

Go to latest
Published: Feb 20, 2025 License: AGPL-3.0 Imports: 9 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

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

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

Deprecated: Use Component.ProtoReflect.Descriptor instead.

func (*Component) GetExtract

func (x *Component) GetExtract() bool

func (*Component) GetHash

func (x *Component) GetHash() string

func (*Component) GetInstallPath

func (x *Component) GetInstallPath() string

func (*Component) GetUrl

func (x *Component) GetUrl() string

func (*Component) ProtoMessage

func (*Component) ProtoMessage()

func (*Component) ProtoReflect

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

func (*Component) Reset

func (x *Component) Reset()

func (*Component) String

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

func (c Components) GetUpgradableComponents() Components

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

func (*Components) UnmarshalJSON

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