config

package
v0.2.11 Latest Latest
Warning

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

Go to latest
Published: May 22, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ShowCLITitle

func ShowCLITitle()

Types

type CLIGlobalArgs

type CLIGlobalArgs struct {
	WorkingDir                     string
	MountDir                       string
	TargetDir                      string
	TaskName                       string
	ScanEnvVarKeys                 []string
	EnvKeyValuePairsToSet          map[string]interface{}
	EnvKeyValuePairsToSetString    map[string]string
	ScanAWSKeys                    bool
	ScanTerraformVars              bool
	ScanEnvVarsWithPrefix          []string
	DotEnvFile                     string
	ScanAllEnvVars                 bool
	CustomCommands                 []string
	InitDaggerWithWorkDirByDefault bool
	RunInVendor                    bool
}

func GetCLIGlobalArgs

func GetCLIGlobalArgs() (CLIGlobalArgs, error)

type Cfg

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

func (*Cfg) GetBoolFromViper added in v0.2.11

func (c *Cfg) GetBoolFromViper(key string) (CfgValue, error)

func (*Cfg) GetFromAny

func (c *Cfg) GetFromAny(key string) (CfgValue, error)

func (*Cfg) GetFromEnvVars

func (c *Cfg) GetFromEnvVars(key string) (CfgValue, error)

func (*Cfg) GetFromViper

func (c *Cfg) GetFromViper(key string) (CfgValue, error)

func (*Cfg) GetFromViperOrDefault added in v0.2.2

func (c *Cfg) GetFromViperOrDefault(key string, defaultValue interface{}) (CfgValue, error)

func (*Cfg) GetStringFromViper added in v0.2.11

func (c *Cfg) GetStringFromViper(key string) (CfgValue, error)

func (*Cfg) GetStringInterfaceMapFromViper added in v0.2.9

func (c *Cfg) GetStringInterfaceMapFromViper(key string) (CfgValue, error)

func (*Cfg) GetStringMapFromViper added in v0.2.11

func (c *Cfg) GetStringMapFromViper(key string) (CfgValue, error)

func (*Cfg) GetStringSliceFromViper added in v0.2.9

func (c *Cfg) GetStringSliceFromViper(key string) (CfgValue, error)

func (*Cfg) IsRunningInVendorAutomation

func (c *Cfg) IsRunningInVendorAutomation() bool

func (*Cfg) ValidateCfgKey added in v0.2.2

func (c *Cfg) ValidateCfgKey(key string) (string, error)

type CfgRetriever

type CfgRetriever interface {
	GetFromViper(key string) (CfgValue, error)
	GetFromViperOrDefault(key string, defaultValue interface{}) (CfgValue, error)
	GetFromEnvVars(key string) (CfgValue, error)
	GetFromAny(key string) (CfgValue, error)
	IsRunningInVendorAutomation() bool
	ValidateCfgKey(key string) (string, error)
	GetStringSliceFromViper(key string) (CfgValue, error)
	GetStringInterfaceMapFromViper(key string) (CfgValue, error)
	GetStringMapFromViper(key string) (CfgValue, error)
	GetBoolFromViper(key string) (CfgValue, error)
	GetStringFromViper(key string) (CfgValue, error)
}

type CfgValue

type CfgValue struct {
	Key   string
	Value interface{}
}

type DefaultDirs

type DefaultDirs struct {
	CurrentDir           string
	BinaryDir            string
	GitRepositoryRootDir string
	HomeDir              string
	BuildDirInContainer  string
}

func GetDefaultDirs

func GetDefaultDirs() *DefaultDirs

type PipelineDirs added in v0.2.6

type PipelineDirs struct {
	Dir  string
	Path string
}

type PipelineOptions

type PipelineOptions struct {
	WorkDir               string
	WorkDirPath           string
	MountDir              string
	MountDirPath          string
	TargetDir             string
	TargetDirPath         string
	TaskName              string
	EnvVarsDotEnvFilePath string
	EnvVarsToScanAndSet   []string
	EnvVarsToScanByPrefix []string
	EnvKeyValuePairsToSet map[string]string
	EnvVarsFromDotEnvFile map[string]string
	EnvVarsAWSKeysToScan  map[string]string
	// Automatic discovery of environment variables, for well-known use cases.
	IsAWSEnvVarKeysToScanEnabled   bool
	IsTerraformVarsScanEnabled     bool
	IsAllEnvVarsToScanEnabled      bool
	IsEnvVarsToScanFromDotEnvFile  bool
	IsEnvVarsToScanByPrefix        bool
	InitDaggerWithWorkDirByDefault bool
}

Jump to

Keyboard shortcuts

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