config

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Nov 14, 2019 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Config

func Config(opts *options.Options, optionsFunc ...cliutils.OptionsFunc) *cobra.Command

func GetGlobalConfigPath

func GetGlobalConfigPath() (string, error)

func GetValetConfigDir

func GetValetConfigDir() (string, error)

func SetCmd

func SetCmd(opts *options.Options, optionsFunc ...cliutils.OptionsFunc) *cobra.Command

func StoreGlobalConfig

func StoreGlobalConfig(ctx context.Context, config *ValetGlobalConfig) error

Types

type ValetGlobalConfig

type ValetGlobalConfig struct {
	Env        map[string]string        `yaml:"env"`
	Registries map[string]ValetRegistry `yaml:"registries"`
}

func LoadGlobalConfig

func LoadGlobalConfig(ctx context.Context) (*ValetGlobalConfig, error)

type ValetRegistry added in v0.4.0

type ValetRegistry struct {
	LocalRegistry *render.LocalRegistry `yaml:"local"`
}

Jump to

Keyboard shortcuts

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