Documentation ¶
Index ¶
- Variables
- type AppContext
- type CLI
- type CLIAws
- type CLIAzm
- type Controller
- type ControllerBind
- type Dependency
- type OS
- type OSLinux
- func (it *OSLinux) Download(url, tempFilePath string) error
- func (it *OSLinux) Extract(tempFilePath, destPath string) error
- func (it *OSLinux) GetInstallationPath() string
- func (it *OSLinux) GetTempDir() string
- func (it *OSLinux) MakeExecutable(filePath string) error
- func (it *OSLinux) Move(tempFilePath, destPath string) error
- func (it *OSLinux) Remove(tempFilePath string) error
- type Settings
Constants ¶
This section is empty.
Variables ¶
View Source
var Container = wire.NewSet( NewSettings, NewCLI, )
Functions ¶
This section is empty.
Types ¶
type AppContext ¶
type AppContext interface {
GetControllers() []Controller
}
type CLIAws ¶
type CLIAws struct {
// contains filtered or unexported fields
}
func (*CLIAws) CanChangeAccount ¶
func (*CLIAws) GetCommandChangeAccount ¶
type CLIAzm ¶
type CLIAzm struct {
// contains filtered or unexported fields
}
func (*CLIAzm) CanChangeAccount ¶
func (*CLIAzm) GetCommandChangeAccount ¶
type Controller ¶
type Controller interface { GetBind() ControllerBind Execute(command *cobra.Command, arguments []string) }
type ControllerBind ¶
type Dependency ¶
type OSLinux ¶
type OSLinux struct{}
func (*OSLinux) GetInstallationPath ¶
func (*OSLinux) GetTempDir ¶
func (*OSLinux) MakeExecutable ¶
type Settings ¶
type Settings struct { TerraCloud string `envconfig:"TERRA_CLOUD" required:"false" validate:"oneof=aws azure"` TerraTerraformWorkspace string `envconfig:"TERRA_WORKSPACE" required:"false"` TerraAwsRoleArn string `envconfig:"TERRA_AWS_ROLE_ARN" required:"false"` TerraAzureSubscriptionID string `envconfig:"TERRA_AZURE_SUBSCRIPTION_ID" required:"false"` }
func NewSettings ¶
func NewSettings() *Settings
Click to show internal directories.
Click to hide internal directories.