config

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Sep 11, 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)

func Write added in v0.4.5

func Write(path string, config interface{}) error

Types

type Config

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

func Read added in v0.4.5

func Read(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