Documentation ¶
Index ¶
Constants ¶
View Source
const ( DefaultConstraint = "DEFAULT_CONSTRAINT" DefaultVersion = "DEFAULT_" + Version Version = "VERSION" GithubOutputEnvName = githubPrefix + "OUTPUT" AtmosPrefix = "ATMOS_" AtmosRemotePassEnvName = AtmosPrefix + remotePassEnvName AtmosRemoteURLEnvName = AtmosPrefix + remoteURLEnvName AtmosRemoteUserEnvName = AtmosPrefix + remoteUserEnvName TenvDetachedProxyEnvName = tenvPrefix + "DETACHED_PROXY" TfenvPrefix = "TFENV_" TfRemotePassEnvName = TfenvPrefix + remotePassEnvName TfRemoteURLEnvName = TfenvPrefix + remoteURLEnvName TfRemoteUserEnvName = TfenvPrefix + remoteUserEnvName TgPrefix = "TG_" TgRemotePassEnvName = TgPrefix + remotePassEnvName TgRemoteURLEnvName = TgPrefix + remoteURLEnvName TgRemoteUserEnvName = TgPrefix + remoteUserEnvName TofuenvPrefix = "TOFUENV_" TofuRemotePassEnvName = TofuenvPrefix + remotePassEnvName TofuRemoteURLEnvName = TofuenvPrefix + remoteURLEnvName TofuRemoteUserEnvName = TofuenvPrefix + remoteUserEnvName TofuURLTemplateEnvName = TofuenvPrefix + "URL_TEMPLATE" )
View Source
const ( InstallModeDirect = "direct" ListModeHTML = "html" ModeAPI = "api" DefaultTofuGithubURL = defaultGithubURL + "opentofu/opentofu" + slashReleases )
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 RemoteConfPath string RootPath string SkipInstall bool SkipSignature bool Tf RemoteConfig TfKeyPath string Tg RemoteConfig Tofu RemoteConfig TofuKeyPath string UserPath string WorkPath string // contains filtered or unexported fields }
func DefaultConfig ¶
func InitConfigFromEnv ¶
func (*Config) InitDisplayer ¶
func (*Config) InitInstall ¶
func (*Config) InitRemoteConf ¶
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
Click to show internal directories.
Click to hide internal directories.