Documentation
¶
Index ¶
- Constants
- Variables
- func EmptyGetenv(_ string) string
- func GetBasicAuthOption(getenv configutils.GetenvFunc, userEnvName string, passEnvName string) []download.RequestOption
- func MapGetDefault(m map[string]string, key string, defaultValue string) string
- type Config
- type RemoteConfig
- type ValidationMode
Constants ¶
View Source
const ( InstallModeDirect = "direct" ListModeHTML = "html" ModeAPI = "api" )
Variables ¶
View Source
var ( ErrInstallMode = errors.New("unknown install mode") ErrListMode = errors.New("unknown list mode") )
Functions ¶
func EmptyGetenv ¶
func GetBasicAuthOption ¶
func GetBasicAuthOption(getenv configutils.GetenvFunc, userEnvName string, passEnvName string) []download.RequestOption
Types ¶
type Config ¶
type Config struct {
Arch string
Atmos RemoteConfig
Displayer loghelper.Displayer
DisplayVerbose bool
ForceQuiet bool
ForceRemote bool
Getenv configutils.GetenvFunc
GithubActions bool
GithubToken string
LockPath string
RemoteConfPath string
RootPath string
SkipInstall bool
Tf RemoteConfig
TfKeyPathOrURL string
Tg RemoteConfig
Tm RemoteConfig
Tofu RemoteConfig
TofuKeyPathOrURL string
UserPath string
Validation ValidationMode
WorkPath string
// contains filtered or unexported fields
}
func DefaultConfig ¶
func InitConfigFromEnv ¶
func (*Config) InitDisplayer ¶
func (*Config) InitInstall ¶
func (*Config) InitRemoteConf ¶
func (*Config) InitValidation ¶ added in v4.8.0
type RemoteConfig ¶
type RemoteConfig struct {
Data map[string]string // values from conf file
RemoteURL string // value from flag
RemoteURLEnv string // value from env
// contains filtered or unexported fields
}
func (RemoteConfig) GetInstallMode ¶
func (r RemoteConfig) GetInstallMode() string
func (RemoteConfig) GetListMode ¶
func (r RemoteConfig) GetListMode() string
func (RemoteConfig) GetListURL ¶
func (r RemoteConfig) GetListURL() string
func (RemoteConfig) GetRemoteURL ¶
func (r RemoteConfig) GetRemoteURL() string
func (RemoteConfig) GetRewriteRule ¶
func (r RemoteConfig) GetRewriteRule() download.URLTransformer
type ValidationMode ¶ added in v4.8.0
type ValidationMode uint8
const ( SignValidation ValidationMode = iota ShaValidation NoValidation )
func ParseValidationMode ¶ added in v4.8.0
func ParseValidationMode(mode string) ValidationMode
Click to show internal directories.
Click to hide internal directories.