config

package
v0.5.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 6, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

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 infrastructurev1beta1.Registration `yaml:"registration" mapstructure:"registration"`
	// Agent config
	Agent infrastructurev1beta1.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 infrastructurev1beta1.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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL