config

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: May 20, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AppConfig

type AppConfig struct {
	Log            Log             `yaml:"log"`
	CloudProviders []CloudProvider `yaml:"cloud-providers"`
}

func ReadConfig

func ReadConfig(configFile string) (*AppConfig, error)

type CloudProvider

type CloudProvider struct {
	Provider  string `yaml:"provider"`
	SecretId  string `yaml:"secret-id"`
	SecretKey string `yaml:"secret-key"`
}

type Log

type Log struct {
	EnableFile bool   `yaml:"enable-file"`
	FileDir    string `yaml:"file-dir"`
	Level      string `yaml:"level"`
}

Jump to

Keyboard shortcuts

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