config

package
v0.0.0-...-560fb73 Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2025 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Agent

type Agent struct {
	MBus string `json:"mbus"`
}

type CpiConfig

type CpiConfig struct {
	Cloud struct {
		Properties Properties `json:"properties"`
	} `json:"cloud"`
}

func NewConfigFromPath

func NewConfigFromPath(filesystem fs.FS, path string) (CpiConfig, error)

func (CpiConfig) OpenStackConfig

func (c CpiConfig) OpenStackConfig() OpenstackConfig

func (CpiConfig) Properties

func (c CpiConfig) Properties() Properties

func (CpiConfig) Validate

func (cpiConfig CpiConfig) Validate() error

type OpenstackConfig

type OpenstackConfig struct {
	AuthURL                      string   `json:"auth_url"`
	Username                     string   `json:"username"`
	APIKey                       string   `json:"api_key"`
	ApplicationCredentialID      string   `json:"application_credential_id"`
	ApplicationCredentialSecret  string   `json:"application_credential_secret"`
	Region                       string   `json:"region"`
	EndpointType                 string   `json:"endpoint_type"`
	DefaultKeyName               string   `json:"default_key_name"`
	DefaultSecurityGroups        []string `json:"default_security_groups"`
	DefaultVolumeType            string   `json:"default_volume_type"`
	WaitResourcePollInterval     int      `json:"wait_resource_poll_interval"`
	BootFromVolume               bool     `json:"boot_from_volume"`
	ConfigDrive                  string   `json:"config_drive"`
	UseDHCP                      bool     `json:"use_dhcp"`
	IgnoreServerAvailabilityZone bool     `json:"ignore_server_availability_zone"`
	HumanReadableVMNames         bool     `json:"human_readable_vm_names"`
	UseNovaNetworking            bool     `json:"use_nova_networking"`
	ConnectionOptions            string   `json:"connection_options"`
	DomainName                   string   `json:"domain"`
	ProjectName                  string   `json:"project"`
	Tenant                       string   `json:"tenant"`
	StateTimeOut                 int      `json:"state_timeout"`
	StemcellPubliclyVisible      bool     `json:"stemcell_public_visibility"`
	VM                           struct {
		Stemcell struct {
			APIVersion int `json:"api_version"`
		} `json:"stemcell"`
	} `json:"vm"`
}

func (OpenstackConfig) AuthOptions

func (o OpenstackConfig) AuthOptions() gophercloud.AuthOptions

func (OpenstackConfig) Validate

func (o OpenstackConfig) Validate() error

type Properties

type Properties struct {
	Openstack   OpenstackConfig `json:"openstack"`
	Agent       Agent           `json:"agent"`
	RetryConfig RetryConfigMap  `json:"retry_config,omitempty"`
}

func (Properties) Validate

func (p Properties) Validate() error

type RetryConfig

type RetryConfig struct {
	MaxAttempts   int `json:"max_attempts"`
	SleepDuration int `json:"sleep_duration"`
}

type RetryConfigMap

type RetryConfigMap map[string]RetryConfig

func (RetryConfigMap) Default

func (r RetryConfigMap) Default() RetryConfig

Jump to

Keyboard shortcuts

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