Documentation
¶
Index ¶
- Variables
- type BootstrapperVersioner
- type Cluster
- func (c *Cluster) LocalClusterConfigFile() string
- func (c *Cluster) LocalClusterDir() string
- func (c *Cluster) LocalClusterKeyFiles() (string, string)
- func (c *Cluster) LocalKubeConfig() string
- func (c *Cluster) ParseExtraOptions(options interface{}) error
- func (c *Cluster) UpdateExtraOptions(options string)
- type K3sBootstrapperVersion
- type KubeadmBootstrapperVersion
- type LocalConfigManager
- func (l *LocalConfigManager) DeleteBootstrapperVersions(latestVersion BootstrapperVersioner) error
- func (l *LocalConfigManager) DeleteCluster(cluster *Cluster) error
- func (l *LocalConfigManager) GetBootstrapperVersions(latestVersion BootstrapperVersioner) ([]BootstrapperVersioner, error)
- func (l *LocalConfigManager) GetCluster(name string) (*Cluster, error)
- func (l *LocalConfigManager) ListClusters() ([]*Cluster, error)
- func (l *LocalConfigManager) SaveBootstrapperVersions(latestVersion BootstrapperVersioner, versions []BootstrapperVersioner) error
- func (l *LocalConfigManager) SaveCluster(cluster *Cluster) error
- type Manager
- type Node
- type RKEBootstrapperVersion
Constants ¶
This section is empty.
Variables ¶
Functions ¶
This section is empty.
Types ¶
type BootstrapperVersioner ¶ added in v0.2.0
type BootstrapperVersioner interface { Type() string LocalVersionFile() string Version() string Display() string }
func NewBootstrapperVersion ¶ added in v0.2.0
func NewBootstrapperVersion(bootstrapperType string, version string) BootstrapperVersioner
type Cluster ¶
type Cluster struct { Name string `json:"name"` Bootstrapper string `json:"bootstrapper"` Pubkey string `json:"pubkey"` Prikey string `json:"prikey"` Version string `json:"version"` Image string `json:"image"` KernelImage string `json:"kernel_image,omitempty"` KernelArgs string `json:"kernel_args,omitempty"` ExtraOptions map[string]interface{} `json:"extra_options"` Deployed bool `json:"deployed"` // the only status property Master Node `json:"master"` Worker Node `json:"worker"` }
func NewCluster ¶
func NewCluster() *Cluster
func NewDefaultCluster ¶ added in v0.3.0
func NewDefaultCluster() *Cluster
func (*Cluster) LocalClusterConfigFile ¶
func (*Cluster) LocalClusterDir ¶
func (*Cluster) LocalClusterKeyFiles ¶
func (*Cluster) LocalKubeConfig ¶
func (*Cluster) ParseExtraOptions ¶
func (*Cluster) UpdateExtraOptions ¶ added in v0.3.0
type K3sBootstrapperVersion ¶ added in v0.2.0
type K3sBootstrapperVersion struct { BootstrapperVersion string `json:"version"` BootstrapperType string `json:"type"` }
func NewK3sBootstrapperVersion ¶ added in v0.2.0
func NewK3sBootstrapperVersion(bootstrapperVersion string) *K3sBootstrapperVersion
func (*K3sBootstrapperVersion) Display ¶ added in v0.3.3
func (k *K3sBootstrapperVersion) Display() string
func (*K3sBootstrapperVersion) LocalVersionFile ¶ added in v0.2.0
func (k *K3sBootstrapperVersion) LocalVersionFile() string
func (*K3sBootstrapperVersion) Type ¶ added in v0.2.0
func (k *K3sBootstrapperVersion) Type() string
func (*K3sBootstrapperVersion) Version ¶ added in v0.2.0
func (k *K3sBootstrapperVersion) Version() string
type KubeadmBootstrapperVersion ¶ added in v0.2.0
type KubeadmBootstrapperVersion struct { BootstrapperVersion string `json:"version"` BootstrapperType string `json:"type"` CrictlVersion string `json:"crictl_version"` KubeReleaseVersion string `json:"kube_release_version"` }
func NewKubeadmBootstrapperVersion ¶ added in v0.2.0
func NewKubeadmBootstrapperVersion(bootstrapperVersion string, crictlVersion string, kubeReleaseVersion string) *KubeadmBootstrapperVersion
func (*KubeadmBootstrapperVersion) Display ¶ added in v0.3.3
func (k *KubeadmBootstrapperVersion) Display() string
func (*KubeadmBootstrapperVersion) LocalVersionFile ¶ added in v0.2.0
func (k *KubeadmBootstrapperVersion) LocalVersionFile() string
func (*KubeadmBootstrapperVersion) Type ¶ added in v0.2.0
func (k *KubeadmBootstrapperVersion) Type() string
func (*KubeadmBootstrapperVersion) Version ¶ added in v0.2.0
func (k *KubeadmBootstrapperVersion) Version() string
type LocalConfigManager ¶
type LocalConfigManager struct { }
func NewLocalConfigManager ¶
func NewLocalConfigManager() *LocalConfigManager
func (*LocalConfigManager) DeleteBootstrapperVersions ¶ added in v0.2.0
func (l *LocalConfigManager) DeleteBootstrapperVersions(latestVersion BootstrapperVersioner) error
func (*LocalConfigManager) DeleteCluster ¶
func (l *LocalConfigManager) DeleteCluster(cluster *Cluster) error
func (*LocalConfigManager) GetBootstrapperVersions ¶ added in v0.2.0
func (l *LocalConfigManager) GetBootstrapperVersions(latestVersion BootstrapperVersioner) ([]BootstrapperVersioner, error)
func (*LocalConfigManager) GetCluster ¶
func (l *LocalConfigManager) GetCluster(name string) (*Cluster, error)
func (*LocalConfigManager) ListClusters ¶
func (l *LocalConfigManager) ListClusters() ([]*Cluster, error)
func (*LocalConfigManager) SaveBootstrapperVersions ¶ added in v0.2.0
func (l *LocalConfigManager) SaveBootstrapperVersions(latestVersion BootstrapperVersioner, versions []BootstrapperVersioner) error
func (*LocalConfigManager) SaveCluster ¶
func (l *LocalConfigManager) SaveCluster(cluster *Cluster) error
type Manager ¶
type Manager interface { SaveCluster(cluster *Cluster) error DeleteCluster(cluster *Cluster) error GetCluster(name string) (*Cluster, error) ListClusters() ([]*Cluster, error) SaveBootstrapperVersions(latestVersion BootstrapperVersioner, versions []BootstrapperVersioner) error GetBootstrapperVersions(latestVersion BootstrapperVersioner) ([]BootstrapperVersioner, error) DeleteBootstrapperVersions(latestVersion BootstrapperVersioner) error }
type RKEBootstrapperVersion ¶ added in v0.3.3
type RKEBootstrapperVersion struct { BootstrapperVersion string `json:"version"` BootstrapperType string `json:"type"` KubernetesVersions []string `json:"kubernetes_versions"` }
func NewRKEBootstrapperVersion ¶ added in v0.3.3
func NewRKEBootstrapperVersion(bootstrapperVersion string, kubernetesVersions []string) *RKEBootstrapperVersion
func (*RKEBootstrapperVersion) Display ¶ added in v0.3.3
func (s *RKEBootstrapperVersion) Display() string
func (*RKEBootstrapperVersion) LocalVersionFile ¶ added in v0.3.3
func (s *RKEBootstrapperVersion) LocalVersionFile() string
func (*RKEBootstrapperVersion) Type ¶ added in v0.3.3
func (s *RKEBootstrapperVersion) Type() string
func (*RKEBootstrapperVersion) Version ¶ added in v0.3.3
func (s *RKEBootstrapperVersion) Version() string
Click to show internal directories.
Click to hide internal directories.