Documentation ¶
Index ¶
Constants ¶
View Source
const ( TenvName = "tenv" TerraformName = "terraform" TerragruntName = "terragrunt" TofuName = "tofu" GithubActionsEnvName = "GITHUB_ACTIONS" TfDefaultConstraintEnvName = tfenvTerraformPrefix + defaultConstraint TfDefaultVersionEnvName = tfenvTerraformPrefix + defaultVersion TfRemoteURLEnvName = tfenvPrefix + remoteURLEnvName TfVersionEnvName = tfenvTerraformPrefix + version TgDefaultConstraintEnvName = tgPrefix + defaultConstraint TgDefaultVersionEnvName = tgPrefix + defaultVersion TgRemoteURLEnvName = tgPrefix + remoteURLEnvName TgVersionEnvName = tgPrefix + version TofuDefaultConstraintEnvName = tofuenvTofuPrefix + defaultConstraint TofuDefaultVersionEnvName = tofuenvTofuPrefix + defaultVersion TofuRemoteURLEnvName = tofuenvPrefix + remoteURLEnvName TofuVersionEnvName = tofuenvTofuPrefix + version )
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 ¶
Types ¶
type Config ¶
type Config struct { Arch string Displayer loghelper.Displayer DisplayVerbose bool ForceQuiet bool ForceRemote bool GithubToken string NoInstall bool RemoteConfPath string RootPath string Tf RemoteConfig TfKeyPath string Tg RemoteConfig Tofu RemoteConfig TofuKeyPath string UserPath string // contains filtered or unexported fields }
func InitConfigFromEnv ¶
func (*Config) InitDisplayer ¶ added in v1.1.1
func (*Config) InitRemoteConf ¶ added in v1.0.8
type RemoteConfig ¶ added in v1.0.8
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 ¶ added in v1.0.8
func (r RemoteConfig) GetInstallMode() string
func (RemoteConfig) GetListMode ¶ added in v1.0.8
func (r RemoteConfig) GetListMode() string
func (RemoteConfig) GetListURL ¶ added in v1.0.8
func (r RemoteConfig) GetListURL() string
func (RemoteConfig) GetRemoteURL ¶ added in v1.0.8
func (r RemoteConfig) GetRemoteURL() string
func (RemoteConfig) GetRewriteRule ¶ added in v1.0.8
func (r RemoteConfig) GetRewriteRule() []string
Click to show internal directories.
Click to hide internal directories.