config

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: May 7, 2022 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ConfigFilename = ".cloudagent.conf.yaml"
)

Variables

View Source
var (
	ConfigPath = fmt.Sprintf("%s/%s", os.Getenv("HOME"), ConfigFilename)
)

Functions

func JSONSchema

func JSONSchema() ([]byte, error)

Types

type Config

type Config struct {
	PersistentSpec   string            `yaml:"persistentSpec"`
	GardenerProjects []GardenerProject `yaml:"gardenerProjects"`
	GCPProjects      []GCPProject      `yaml:"gcpProjects"`
}

func GetConfig

func GetConfig(path string) (*Config, error)

type GCPProject

type GCPProject struct {
}

type GardenerProject

type GardenerProject struct {
	Namespace      string `yaml:"namespace"`
	KubeconfigPath string `yaml:"kubeconfigPath"`
}

Jump to

Keyboard shortcuts

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