config

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2023 License: Apache-2.0 Imports: 6 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
	CustomCommands                 []string
	InitDaggerWithWorkDirByDefault bool
	RunInVendor                    bool
}

func GetCLIGlobalArgs

func GetCLIGlobalArgs() CLIGlobalArgs

type Cfg

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

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) IsRunningInVendorAutomation added in v0.7.0

func (c *Cfg) IsRunningInVendorAutomation() bool

type CfgRetriever

type CfgRetriever interface {
	GetFromViper(key string) (CfgValue, error)
	GetFromEnvVars(key string) (CfgValue, error)
	GetFromAny(key string) (CfgValue, error)
	IsRunningInVendorAutomation() bool
}

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 PipelineOptions

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

Jump to

Keyboard shortcuts

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