Documentation ¶
Index ¶
- func DownloadSELinuxRPMsSigningKey(gpgKeysDir string) error
- func ParseKubernetesConfig(configFile string) (map[string]any, error)
- func SELinuxPackage(version string) (string, error)
- func SELinuxRepository(version string) (image.AddRepo, error)
- func ServersCount(nodes []image.Node) int
- type ArtefactDownloader
- type Cluster
- type ScriptDownloader
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SELinuxPackage ¶
func ServersCount ¶
Types ¶
type ArtefactDownloader ¶
type ArtefactDownloader struct {
Cache cache
}
func (ArtefactDownloader) DownloadK3sArtefacts ¶
func (d ArtefactDownloader) DownloadK3sArtefacts(arch image.Arch, version, installPath, imagesPath string) error
func (ArtefactDownloader) DownloadRKE2Artefacts ¶
type Cluster ¶
type Cluster struct { // InitialiserName is the hostname of the initialiser node. // Defaults to the first configured server if not explicitly selected. InitialiserName string // InitialiserConfig contains the server configuration for the node initialising a multi node cluster. InitialiserConfig map[string]any // ServerConfig contains the server configurations for a single node cluster // or the additional server nodes in a multi node cluster. ServerConfig map[string]any // AgentConfig contains the agent configurations in multi node clusters. AgentConfig map[string]any }
func NewCluster ¶
func NewCluster(kubernetes *image.Kubernetes, configPath string) (*Cluster, error)
type ScriptDownloader ¶
type ScriptDownloader struct{}
func (ScriptDownloader) DownloadInstallScript ¶
func (d ScriptDownloader) DownloadInstallScript(distribution, destinationPath string) (string, error)
Click to show internal directories.
Click to hide internal directories.