Documentation ¶
Index ¶
- Variables
- type Component
- func (*Component) Descriptor() ([]byte, []int)deprecated
- func (x *Component) GetExtract() bool
- func (x *Component) GetHash() string
- func (x *Component) GetInstallPath() string
- func (x *Component) GetUrl() string
- func (*Component) ProtoMessage()
- func (x *Component) ProtoReflect() protoreflect.Message
- func (x *Component) Reset()
- func (x *Component) String() string
- type Components
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) GetExtract ¶ added in v2.14.0
func (*Component) GetInstallPath ¶ added in v2.14.0
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
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.
Click to show internal directories.
Click to hide internal directories.