config

package
Version: v0.0.0-...-8a8b58e Latest Latest
Warning

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

Go to latest
Published: Dec 6, 2018 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	// contains filtered or unexported fields
}

func NewConfig

func NewConfig(bootstrap storage.StateBootstrap, merger merger, ui *ui.UI, fs fs) Config

func (Config) Bootstrap

func (c Config) Bootstrap(globalFlags GlobalFlags, remainingArgs []string, argsLen int) (configuration.Configuration, error)

type GlobalFlags

type GlobalFlags struct {
	Help      bool   `short:"h" long:"help"`
	Debug     bool   `short:"d" long:"debug"        env:"KL_DEBUG"`
	Version   bool   `short:"v" long:"version"`
	NoConfirm bool   `short:"n" long:"no-confirm"`
	StateDir  string `short:"s" long:"state-dir"    env:"KL_STATE_DIRECTORY"`
	EnvID     string `          long:"name"`
	IAAS      string `          long:"iaas"         env:"KL_IAAS"`

	AzureEnvironment    string `long:"azure-environment"      env:"KL_AZURE_ENVIRONMENT"`
	AzureRegion         string `long:"azure-region"           env:"KL_AZURE_REGION"`
	AzureSubscriptionID string `long:"azure-subscription-id"  env:"KL_AZURE_SUBSCRIPTION_ID"`
	AzureTenantID       string `long:"azure-tenant-id"        env:"KL_AZURE_TENANT_ID"`
	AzureClientID       string `long:"azure-client-id"        env:"KL_AZURE_CLIENT_ID"`
	AzureClientSecret   string `long:"azure-client-secret"    env:"KL_AZURE_CLIENT_SECRET"`
}

func ParseArgs

func ParseArgs(args []string) (GlobalFlags, []string, error)

type Merger

type Merger struct {
	// contains filtered or unexported fields
}

func NewMerger

func NewMerger(fs fs) Merger

func (Merger) MergeGlobalFlagsToState

func (m Merger) MergeGlobalFlagsToState(globalFlags GlobalFlags, state storage.State) (storage.State, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL