config

package
v0.4.3 Latest Latest
Warning

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

Go to latest
Published: Jan 28, 2020 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddRegistryCmd added in v0.4.1

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

func Config

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

func DeleteRegistryCmd added in v0.4.1

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

func GetGlobalConfigPath

func GetGlobalConfigPath(opts *options.Options) (string, error)

func GetValetConfigDir

func GetValetConfigDir() (string, error)

func ListRegistriesCmd added in v0.4.1

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

func RegistryCmd added in v0.4.1

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

func SetCmd

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

func StoreGlobalConfig

func StoreGlobalConfig(opts *options.Options, 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(opts *options.Options) (*ValetGlobalConfig, error)

type ValetRegistry added in v0.4.0

type ValetRegistry struct {
	DirectoryRegistry *render.DirectoryRegistry `yaml:"directory"`
}

func (*ValetRegistry) GetType added in v0.4.1

func (v *ValetRegistry) GetType() string

Jump to

Keyboard shortcuts

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