Documentation ¶
Index ¶
- type Manager
- func (m *Manager) AutomaticControlplaneUpdate(fromVersionRaw, clusterType string) (*Version, error)
- func (m *Manager) AutomaticNodeUpdate(fromVersionRaw, clusterType, controlPlaneVersion string) (*Version, error)
- func (m *Manager) GetDefault() (*Version, error)
- func (m *Manager) GetPossibleUpdates(fromVersionRaw, clusterType string) ([]*Version, error)
- func (m *Manager) GetVersion(s, t string) (*Version, error)
- func (m *Manager) GetVersions(clusterType string) ([]*Version, error)
- type Update
- type Version
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Manager ¶
type Manager struct {
// contains filtered or unexported fields
}
Manager is a object to handle versions & updates from a predefined config
func NewFromFiles ¶
NewFromFiles returns a instance of manager with the versions & updates loaded from the given paths
func (*Manager) AutomaticControlplaneUpdate ¶
AutomaticControlplaneUpdate returns a version if an automatic update can be found for the version passed in
func (*Manager) AutomaticNodeUpdate ¶
func (m *Manager) AutomaticNodeUpdate(fromVersionRaw, clusterType, controlPlaneVersion string) (*Version, error)
AutomaticNodeUpdate returns an automatic node update or nil
func (*Manager) GetDefault ¶
GetDefault returns the default version
func (*Manager) GetPossibleUpdates ¶
GetPossibleUpdates returns possible updates for the version passed in
func (*Manager) GetVersion ¶
GetVersion returns the Versions for s
type Update ¶
type Update struct { From string `json:"from"` To string `json:"to"` Automatic bool `json:"automatic,omitempty"` AutomaticNodeUpdate bool `json:"automaticNodeUpdate,omitempty"` Type string `json:"type,omitempty"` }
Update represents an update option for a cluster
func LoadUpdates ¶
LoadUpdates loads the update definition file and returns the defined MasterUpdate
Click to show internal directories.
Click to hide internal directories.