Documentation ¶
Index ¶
- func CombineYamlBytes(input [][]byte) []byte
- func GenerateClientConfigBytes(c *config.TalhelperConfig, input *generate.Input) ([]byte, error)
- func GenerateExtensionServicesConfigBytes(esCfgs []*config.ExtensionService) ([]byte, error)
- func GenerateNetworkConfigBytes(ifCfg *config.IngressFirewall) ([]byte, error)
- func GenerateNodeConfig(node *config.Node, input *generate.Input, iFactory *config.ImageFactory, ...) (taloscfg.Provider, error)
- func GenerateNodeConfigBytes(node *config.Node, input *generate.Input, iFactory *config.ImageFactory, ...) ([]byte, error)
- func GenerateNodeDefaultActionConfig(ifCfg *config.IngressFirewall) *network.DefaultActionConfigV1Alpha1
- func GenerateNodeExtensionServiceConfig(esCfgs []*config.ExtensionService) ([]*extensions.ServiceConfigV1Alpha1, error)
- func GenerateNodeRuleConfig(ifCfg *config.IngressFirewall) ([]*network.RuleConfigV1Alpha1, error)
- func GetISOURL(cfg *schematic.Schematic, factory *config.ImageFactory, ...) (string, error)
- func GetInstallerURL(cfg *schematic.Schematic, factory *config.ImageFactory, ...) (string, error)
- func IsControlPlane(c config.Provider) bool
- func LoadTalosConfig(cfgFile []byte) (config.Provider, error)
- func LoadTalosConfigFromFile(cfgFile string) (config.Provider, error)
- func NewClusterInput(c *config.TalhelperConfig, secretFile string, mode string) (*generate.Input, error)
- func NewSecretBundle(clock secrets.Clock, vc config.VersionContract) (*secrets.Bundle, error)
- func NewSecretBundleFromCfg(clock secrets.Clock, cfg config.Provider) *secrets.Bundle
- func ReEncodeTalosConfig(f []byte) ([]byte, error)
- func ValidateConfigFromBytes(cfgFile []byte, mode string) error
- func ValidateConfigFromFile(path, mode string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CombineYamlBytes ¶
CombineYamlBytes prepends and returns `---\n` before `input`
func GenerateExtensionServicesConfigBytes ¶
func GenerateExtensionServicesConfigBytes(esCfgs []*config.ExtensionService) ([]byte, error)
func GenerateNetworkConfigBytes ¶
func GenerateNetworkConfigBytes(ifCfg *config.IngressFirewall) ([]byte, error)
func GenerateNodeConfig ¶
func GenerateNodeConfigBytes ¶
func GenerateNodeDefaultActionConfig ¶
func GenerateNodeDefaultActionConfig(ifCfg *config.IngressFirewall) *network.DefaultActionConfigV1Alpha1
func GenerateNodeExtensionServiceConfig ¶
func GenerateNodeExtensionServiceConfig(esCfgs []*config.ExtensionService) ([]*extensions.ServiceConfigV1Alpha1, error)
func GenerateNodeRuleConfig ¶
func GenerateNodeRuleConfig(ifCfg *config.IngressFirewall) ([]*network.RuleConfigV1Alpha1, error)
func GetISOURL ¶
func GetISOURL(cfg *schematic.Schematic, factory *config.ImageFactory, spec *config.MachineSpec, version string, offlineMode bool) (string, error)
func GetInstallerURL ¶
func GetInstallerURL(cfg *schematic.Schematic, factory *config.ImageFactory, spec *config.MachineSpec, version string, offlineMode bool) (string, error)
func IsControlPlane ¶
IsControlPlane returns true if `c` is a controlplane.
func LoadTalosConfig ¶
LoadTalosConfig generates Talos `config.Provider` from bytes. It also returns an error, if any.
func LoadTalosConfigFromFile ¶
LoadTalosConfigFromFile generates Talos `config.Provider` from a file path. It also returns an error, if any.
func NewClusterInput ¶
func NewClusterInput(c *config.TalhelperConfig, secretFile string, mode string) (*generate.Input, error)
NewClusterInput takes `Talhelper` config and path to encrypted `secretFile` and returns Talos `generate.Input`. It also returns an error, if any.
func NewSecretBundle ¶
NewSecretsBundle creates secrets bundle generating all secrets or reading from the input options if provided
func NewSecretBundleFromCfg ¶
NewSecretsBundleFromConfig creates secrets bundle using existing config.
func ReEncodeTalosConfig ¶
ReEncodeTalosConfig takes `yaml` encoded bytes and re-encodes it back to 2 indentation `yaml` bytes. It also returns an error, if any.
func ValidateConfigFromBytes ¶
ValidateConfigFromBytes returns an error if `cfgFile` is not a valid Talos configuration for the specified `mode`.
func ValidateConfigFromFile ¶
ValidateConfigFromFile returns an error if file path is not a valid Talos configuration for the specified `mode`.
Types ¶
This section is empty.