Documentation ¶
Index ¶
- func CombineYamlBytes(input [][]byte) []byte
- func GenerateClientConfigBytes(c *config.TalhelperConfig, input *generate.Input) ([]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 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, version string, ...) (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) (*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 ¶ added in v1.17.0
CombineYamlBytes prepends and returns `---\n` before `input`
func GenerateNetworkConfigBytes ¶ added in v1.17.0
func GenerateNetworkConfigBytes(ifCfg *config.IngressFirewall) ([]byte, error)
func GenerateNodeConfig ¶ added in v1.11.0
func GenerateNodeConfigBytes ¶
func GenerateNodeDefaultActionConfig ¶ added in v1.17.0
func GenerateNodeDefaultActionConfig(ifCfg *config.IngressFirewall) *network.DefaultActionConfigV1Alpha1
func GenerateNodeRuleConfig ¶ added in v1.17.0
func GenerateNodeRuleConfig(ifCfg *config.IngressFirewall) ([]*network.RuleConfigV1Alpha1, error)
func GetISOURL ¶ added in v1.15.0
func GetISOURL(cfg *schematic.Schematic, factory *config.ImageFactory, spec *config.MachineSpec, version string, offlineMode bool) (string, error)
func GetInstallerURL ¶ added in v1.15.0
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 ¶
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 ¶ added in v1.6.4
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 ¶ added in v1.2.2
ValidateConfigFromFile returns an error if file path is not a valid Talos configuration for the specified `mode`.
Types ¶
This section is empty.