Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
// Registration config
Registration infrastructurev1.Registration `yaml:"registration" mapstructure:"registration"`
// Agent config
Agent infrastructurev1.Agent `yaml:"agent" mapstructure:"agent"`
}
Config represents the CAPI Elemental agent configuration.
func DefaultConfig ¶
func DefaultConfig() Config
func FromAPI ¶
func FromAPI(conf api.RegistrationResponse) Config
FromAPI can be used to convert the Elemental API Registration resource to an agent config file. This function can be used by the client to update the local config to match the remote configuration.
func FromInfrastructure ¶
func FromInfrastructure(conf infrastructurev1.Config) Config
FromInfrastructure can be used to convert the ElementalRegistration CAPI infrastructure resource to an agent config file. This function can be used by the operator to generate an initial agent config.
Click to show internal directories.
Click to hide internal directories.