config

package
v0.0.0-...-270bf58 Latest Latest
Warning

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

Go to latest
Published: May 2, 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 ClusterTransport

type ClusterTransport struct {
	KubeConfig           string `yaml:"kubeConfig"`
	Token                string `yaml:"token"`
	Endpoint             string `yaml:"endpoint"`
	CertificateAuthority string `yaml:"insecureTls"`
	InsecureTls          bool   `yaml:"certificateAuthority"`
}

type Config

type Config struct {
	Namespace        string           `yaml:"namespace"`
	ClusterTransport ClusterTransport `yaml:"clusterTransport"`
	Disks            DisksConf        `yaml:"disks"`
	VM               VmConf           `yaml:"vm"`
	Ipam             IpamConf         `yaml:"ipam"`
	HelperImages     HelperImages     `yaml:"helperimages"`
}

func GetConfig

func GetConfig() (*Config, error)

type DisksConf

type DisksConf struct {
	UploadHelperImage string `yaml:"uploadHelperImage"`
	CvmiTestDataDir   string `yaml:"cvmiTestDataDir"`
	VmiTestDataDir    string `yaml:"vmiTestDataDir"`
	VmdTestDataDir    string `yaml:"vmdTestDataDir"`
}

type HelperImages

type HelperImages struct {
	CurlImage string `yaml:"curlImage"`
}

type IpamConf

type IpamConf struct {
	TestDataDir string `yaml:"testDataDir"`
}

type VmConf

type VmConf struct {
	TestDataDir string `yaml:"testDataDir"`
}

Jump to

Keyboard shortcuts

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