config

package
v0.2.4 Latest Latest
Warning

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

Go to latest
Published: Jun 15, 2020 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WalkMatch

func WalkMatch(root, pattern string) ([]string, error)

Types

type Config

type Config struct {
	Secret []Secret `yaml:"secret,omitempty" json:"secret,omitempty"`
	Path   string   `yaml:"-" json:"-"`
}

func ReadConfig

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

func ReadConfigFiles

func ReadConfigFiles(path string) ([]*Config, error)

type Secret

type Secret struct {
	VaultMount  string                 `yaml:"vault_mount,omitempty"`
	VaultKey    string                 `yaml:"vault_key,omitempty"`
	VaultKVPath string                 `yaml:"vault_kv_path,omitempty" json:"vault_kv_path,omitempty"`
	Data        map[string]interface{} `yaml:"data" json:"data,omitempty"`
}

Jump to

Keyboard shortcuts

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