config

package
v0.12.0 Latest Latest
Warning

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

Go to latest
Published: Jan 5, 2022 License: Apache-2.0, BSD-2-Clause, BSD-3-Clause, + 8 more Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AiaConfig

type AiaConfig struct {
	Tags        map[string]string `yaml:"tags"`
	Bandwidth   int64             `yaml:"bandwidth"`
	AnycastZone string            `yaml:"anycastZone"`
	AddressType string            `yaml:"addressType"`
}

type Config

type Config struct {
	ControllerManager ctrl.Manager
	ControllerConfig  ControllerConfig
}

type ControllerConfig

type ControllerConfig struct {
	AiaConfigFilePath                      string
	ConfigFileConf                         *YamlValueConfig
	MaxAiaIpControllerConcurrentReconciles int
	EnableReverseReconcile                 bool
}

ControllerConfig contains the controller configuration.

type CredentialConfig

type CredentialConfig struct {
	ClusterID string `yaml:"clusterID"`
	AppID     string `yaml:"appID"`
	SecretID  string `yaml:"secretID"`
	SecretKey string `yaml:"secretKey"`
}

CredentialConfig para will be override if env set

type InternalControllerConfig

type InternalControllerConfig struct {
	ResourceLockName string `yaml:"resourceLockName"`
}

type NodeConfig

type NodeConfig struct {
	Labels map[string]string `yaml:"labels"`
}

type RegionConfig

type RegionConfig struct {
	ShortName string `yaml:"shortName"`
	LongName  string `yaml:"longName"`
}

type YamlValueConfig

type YamlValueConfig struct {
	Controller InternalControllerConfig `yaml:"controller"`
	Region     RegionConfig             `yaml:"region"`
	Credential CredentialConfig         `yaml:"credential"`
	Aia        AiaConfig                `yaml:"aia"`
	Node       NodeConfig               `yaml:"node"`
}

func (*YamlValueConfig) Validate

func (y *YamlValueConfig) Validate() error

Jump to

Keyboard shortcuts

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