Documentation ¶
Overview ¶
Package command contains the logic for processing all the commands and subcommands. It uses the Tharsis SDK to interface with Tharsis API's remote Terraform backend.
Index ¶
- func NewApplyCommandFactory(meta *Metadata) func() (cli.Command, error)
- func NewConfigureCommandFactory(meta *Metadata) func() (cli.Command, error)
- func NewConfigureListCommandFactory(meta *Metadata) func() (cli.Command, error)
- func NewDestroyCommandFactory(meta *Metadata) func() (cli.Command, error)
- func NewGroupCommandFactory(meta *Metadata) func() (cli.Command, error)
- func NewGroupCreateCommandFactory(meta *Metadata) func() (cli.Command, error)
- func NewGroupDeleteCommandFactory(meta *Metadata) func() (cli.Command, error)
- func NewGroupGetCommandFactory(meta *Metadata) func() (cli.Command, error)
- func NewGroupListCommandFactory(meta *Metadata) func() (cli.Command, error)
- func NewGroupMigrateCommandFactory(meta *Metadata) func() (cli.Command, error)
- func NewGroupSetEnvironmentVarsCommandFactory(meta *Metadata) func() (cli.Command, error)
- func NewGroupSetTerraformVarsCommandFactory(meta *Metadata) func() (cli.Command, error)
- func NewGroupUpdateCommandFactory(meta *Metadata) func() (cli.Command, error)
- func NewLoginCommandFactory(meta *Metadata) func() (cli.Command, error)
- func NewModuleCommandFactory(meta *Metadata) func() (cli.Command, error)
- func NewModuleCreateAttestationCommandFactory(meta *Metadata) func() (cli.Command, error)
- func NewModuleCreateCommandFactory(meta *Metadata) func() (cli.Command, error)
- func NewModuleDeleteAttestationCommandFactory(meta *Metadata) func() (cli.Command, error)
- func NewModuleDeleteCommandFactory(meta *Metadata) func() (cli.Command, error)
- func NewModuleDeleteVersionCommandFactory(meta *Metadata) func() (cli.Command, error)
- func NewModuleGetCommandFactory(meta *Metadata) func() (cli.Command, error)
- func NewModuleGetVersionCommandFactory(meta *Metadata) func() (cli.Command, error)
- func NewModuleListAttestationsCommandFactory(meta *Metadata) func() (cli.Command, error)
- func NewModuleListCommandFactory(meta *Metadata) func() (cli.Command, error)
- func NewModuleListVersionsCommandFactory(meta *Metadata) func() (cli.Command, error)
- func NewModuleUpdateAttestationCommandFactory(meta *Metadata) func() (cli.Command, error)
- func NewModuleUpdateCommandFactory(meta *Metadata) func() (cli.Command, error)
- func NewModuleUploadVersionCommandFactory(meta *Metadata) func() (cli.Command, error)
- func NewPlanCommandFactory(meta *Metadata) func() (cli.Command, error)
- func NewRunCancelCommandFactory(meta *Metadata) func() (cli.Command, error)
- func NewRunCommandFactory(meta *Metadata) func() (cli.Command, error)
- func NewRunnerAgentAssignServiceAccountCommandFactory(meta *Metadata) func() (cli.Command, error)
- func NewRunnerAgentCommandFactory(meta *Metadata) func() (cli.Command, error)
- func NewRunnerAgentCreateCommandFactory(meta *Metadata) func() (cli.Command, error)
- func NewRunnerAgentDeleteCommandFactory(meta *Metadata) func() (cli.Command, error)
- func NewRunnerAgentGetCommandFactory(meta *Metadata) func() (cli.Command, error)
- func NewRunnerAgentUnassignServiceAccountCommandFactory(meta *Metadata) func() (cli.Command, error)
- func NewRunnerAgentUpdateCommandFactory(meta *Metadata) func() (cli.Command, error)
- func NewSSOCommandFactory(meta *Metadata) func() (cli.Command, error)
- func NewServiceAccountCommandFactory(meta *Metadata) func() (cli.Command, error)
- func NewServiceAccountCreateTokenCommandFactory(meta *Metadata) func() (cli.Command, error)
- func NewTerraformProviderCommandFactory(meta *Metadata) func() (cli.Command, error)
- func NewTerraformProviderCreateCommandFactory(meta *Metadata) func() (cli.Command, error)
- func NewTerraformProviderUploadVersionCommandFactory(meta *Metadata) func() (cli.Command, error)
- func NewWorkspaceAssignManagedIdentityCommandFactory(meta *Metadata) func() (cli.Command, error)
- func NewWorkspaceCommandFactory(meta *Metadata) func() (cli.Command, error)
- func NewWorkspaceCreateCommandFactory(meta *Metadata) func() (cli.Command, error)
- func NewWorkspaceDeleteCommandFactory(meta *Metadata) func() (cli.Command, error)
- func NewWorkspaceGetAssignedManagedIdentitiesCommandFactory(meta *Metadata) func() (cli.Command, error)
- func NewWorkspaceGetCommandFactory(meta *Metadata) func() (cli.Command, error)
- func NewWorkspaceListCommandFactory(meta *Metadata) func() (cli.Command, error)
- func NewWorkspaceOutputsCommandFactory(meta *Metadata) func() (cli.Command, error)
- func NewWorkspaceSetEnvironmentVarsCommandFactory(meta *Metadata) func() (cli.Command, error)
- func NewWorkspaceSetTerraformVarsCommandFactory(meta *Metadata) func() (cli.Command, error)
- func NewWorkspaceUnassignManagedIdentityCommandFactory(meta *Metadata) func() (cli.Command, error)
- func NewWorkspaceUpdateCommandFactory(meta *Metadata) func() (cli.Command, error)
- type Metadata
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewApplyCommandFactory ¶
NewApplyCommandFactory returns a applyCommand struct.
func NewConfigureCommandFactory ¶
NewConfigureCommandFactory returns a configureCommand struct.
func NewConfigureListCommandFactory ¶
NewConfigureListCommandFactory returns a configureListCommand struct.
func NewDestroyCommandFactory ¶
NewDestroyCommandFactory returns a destroyCommand struct.
func NewGroupCommandFactory ¶
NewGroupCommandFactory returns a groupCommand struct.
func NewGroupCreateCommandFactory ¶
NewGroupCreateCommandFactory returns a groupCreateCommand struct.
func NewGroupDeleteCommandFactory ¶
NewGroupDeleteCommandFactory returns a groupCommandDelete struct.
func NewGroupGetCommandFactory ¶
NewGroupGetCommandFactory returns a groupGetCommand struct.
func NewGroupListCommandFactory ¶
NewGroupListCommandFactory returns a groupListCommand struct.
func NewGroupMigrateCommandFactory ¶ added in v0.11.0
NewGroupMigrateCommandFactory returns a groupMigrateCommand struct.
func NewGroupSetEnvironmentVarsCommandFactory ¶
NewGroupSetEnvironmentVarsCommandFactory returns a groupSetEnvironmentVarsCommand struct.
func NewGroupSetTerraformVarsCommandFactory ¶
NewGroupSetTerraformVarsCommandFactory returns a groupSetTerraformVarsCommand struct.
func NewGroupUpdateCommandFactory ¶
NewGroupUpdateCommandFactory returns a groupUpdateCommand struct.
func NewLoginCommandFactory ¶
NewLoginCommandFactory returns a loginCommand struct.
func NewModuleCommandFactory ¶ added in v0.5.0
NewModuleCommandFactory returns a moduleCommand struct.
func NewModuleCreateAttestationCommandFactory ¶ added in v0.8.0
NewModuleCreateAttestationCommandFactory returns a moduleCreateAttestationCommand struct.
func NewModuleCreateCommandFactory ¶ added in v0.5.0
NewModuleCreateCommandFactory returns a moduleCreateCommand struct.
func NewModuleDeleteAttestationCommandFactory ¶ added in v0.8.0
NewModuleDeleteAttestationCommandFactory returns a moduleDeleteAttestationCommand struct.
func NewModuleDeleteCommandFactory ¶ added in v0.8.0
NewModuleDeleteCommandFactory returns a moduleDeleteCommand struct.
func NewModuleDeleteVersionCommandFactory ¶ added in v0.8.0
NewModuleDeleteVersionCommandFactory returns a moduleDeleteVersionCommand struct.
func NewModuleGetCommandFactory ¶ added in v0.8.0
NewModuleGetCommandFactory returns a moduleGetCommand struct.
func NewModuleGetVersionCommandFactory ¶ added in v0.8.0
NewModuleGetVersionCommandFactory returns a moduleGetVersionCommand struct.
func NewModuleListAttestationsCommandFactory ¶ added in v0.8.0
NewModuleListAttestationsCommandFactory returns a moduleListAttestationsCommand struct.
func NewModuleListCommandFactory ¶ added in v0.8.0
NewModuleListCommandFactory returns a moduleListCommand struct.
func NewModuleListVersionsCommandFactory ¶ added in v0.8.0
NewModuleListVersionsCommandFactory returns a moduleListVersionsCommand struct.
func NewModuleUpdateAttestationCommandFactory ¶ added in v0.8.0
NewModuleUpdateAttestationCommandFactory returns a moduleUpdateAttestationCommand struct.
func NewModuleUpdateCommandFactory ¶ added in v0.8.0
NewModuleUpdateCommandFactory returns a moduleUpdateCommand struct.
func NewModuleUploadVersionCommandFactory ¶ added in v0.5.0
NewModuleUploadVersionCommandFactory returns a moduleUploadVersionCommand struct.
func NewPlanCommandFactory ¶
NewPlanCommandFactory returns a planCommand struct.
func NewRunCancelCommandFactory ¶
NewRunCancelCommandFactory returns a runCancelCommand struct.
func NewRunCommandFactory ¶
NewRunCommandFactory returns a runCommand struct.
func NewRunnerAgentAssignServiceAccountCommandFactory ¶ added in v0.12.0
NewRunnerAgentAssignServiceAccountCommandFactory returns a runnerAgentAssignServiceAccountCommand struct.
func NewRunnerAgentCommandFactory ¶ added in v0.12.0
NewRunnerAgentCommandFactory returns a runnerAgentCommand struct.
func NewRunnerAgentCreateCommandFactory ¶ added in v0.12.0
NewRunnerAgentCreateCommandFactory returns a runnerAgentCreateCommand struct.
func NewRunnerAgentDeleteCommandFactory ¶ added in v0.12.0
NewRunnerAgentDeleteCommandFactory returns a runnerAgentDeleteCommand struct.
func NewRunnerAgentGetCommandFactory ¶ added in v0.12.0
NewRunnerAgentGetCommandFactory returns a runnerAgentGetCommand struct.
func NewRunnerAgentUnassignServiceAccountCommandFactory ¶ added in v0.12.0
NewRunnerAgentUnassignServiceAccountCommandFactory returns a runnerAgentUnassignServiceAccountCommand struct.
func NewRunnerAgentUpdateCommandFactory ¶ added in v0.12.0
NewRunnerAgentUpdateCommandFactory returns a runnerAgentUpdateCommand struct.
func NewSSOCommandFactory ¶
NewSSOCommandFactory returns a ssoCommand struct.
func NewServiceAccountCommandFactory ¶ added in v0.6.0
NewServiceAccountCommandFactory returns a serviceAccountCommand struct.
func NewServiceAccountCreateTokenCommandFactory ¶ added in v0.7.0
NewServiceAccountCreateTokenCommandFactory returns a serviceAccountCreateTokenCommand struct.
func NewTerraformProviderCommandFactory ¶ added in v0.9.0
NewTerraformProviderCommandFactory returns a (Terraform provider) Command struct.
func NewTerraformProviderCreateCommandFactory ¶ added in v0.9.0
NewTerraformProviderCreateCommandFactory returns a (Terraform provider Create) Command struct.
func NewTerraformProviderUploadVersionCommandFactory ¶ added in v0.9.0
NewTerraformProviderUploadVersionCommandFactory returns a (Terraform provider Upload-Version) Command struct.
func NewWorkspaceAssignManagedIdentityCommandFactory ¶
NewWorkspaceAssignManagedIdentityCommandFactory returns a workspaceAssignManagedIdentityCommand struct.
func NewWorkspaceCommandFactory ¶
NewWorkspaceCommandFactory returns a workspaceCommand struct.
func NewWorkspaceCreateCommandFactory ¶
NewWorkspaceCreateCommandFactory returns a workspaceCreateCommand struct.
func NewWorkspaceDeleteCommandFactory ¶
NewWorkspaceDeleteCommandFactory returns a workspaceDeleteCommand struct.
func NewWorkspaceGetAssignedManagedIdentitiesCommandFactory ¶
func NewWorkspaceGetAssignedManagedIdentitiesCommandFactory(meta *Metadata) func() (cli.Command, error)
NewWorkspaceGetAssignedManagedIdentitiesCommandFactory returns a new workspaceGetAssignedManagedIdentitiesCommand.
func NewWorkspaceGetCommandFactory ¶
NewWorkspaceGetCommandFactory returns a workspaceCommandGet struct.
func NewWorkspaceListCommandFactory ¶
NewWorkspaceListCommandFactory returns a workspaceCommandList struct.
func NewWorkspaceOutputsCommandFactory ¶
NewWorkspaceOutputsCommandFactory returns a workspaceOutputsCommand struct.
func NewWorkspaceSetEnvironmentVarsCommandFactory ¶
NewWorkspaceSetEnvironmentVarsCommandFactory returns a workspaceSetEnvironmentVarsCommand struct.
func NewWorkspaceSetTerraformVarsCommandFactory ¶
NewWorkspaceSetTerraformVarsCommandFactory returns a workspaceSetTerraformVarsCommand struct.
func NewWorkspaceUnassignManagedIdentityCommandFactory ¶
NewWorkspaceUnassignManagedIdentityCommandFactory returns a workspaceUnassignManagedIdentityCommand struct.
Types ¶
type Metadata ¶
type Metadata struct { BinaryName string DisplayTitle string Version string Logger logger.Logger UI cli.Ui CurrentProfileName string // // In order to have the Makefile set the default endpoint URL through the // main package at build time and the configure command use the value, // it is necessary to pass the value through this struct. If the configure // command attempts to reference the value in the main package, that causes // an import cycle. DefaultEndpointURL string }
Metadata communicates information from the 'main' tharsis module to the individual commands run via the CLI platform.
In particular, the BinaryName field allows long-form command help to accurately show the binary name, even if the binary is copied.
The logger gives the command execution code access to the shared logger.
The name of the current profile (set by the global option) must be stored here in order to communicate it from the top-level module down to to the individual command modules prior to reading the settings file.
Source Files ¶
- apply.go
- configure.go
- configure_list.go
- destroy.go
- group.go
- group_create.go
- group_delete.go
- group_get.go
- group_list.go
- group_migrate.go
- group_set_environment_vars.go
- group_set_terraform_vars.go
- group_update.go
- login.go
- metadata.go
- module.go
- module_create.go
- module_create_attestation.go
- module_delete.go
- module_delete_attestation.go
- module_delete_version.go
- module_get.go
- module_get_version.go
- module_list.go
- module_list_attestations.go
- module_list_versions.go
- module_update.go
- module_update_attestation.go
- module_upload_version.go
- plan.go
- run.go
- run_cancel.go
- runner_agent.go
- runner_agent_assign_service_account.go
- runner_agent_create.go
- runner_agent_delete.go
- runner_agent_get.go
- runner_agent_unassign_service_account.go
- runner_agent_update.go
- service_account.go
- service_account_create_token.go
- sso.go
- terraform_provider.go
- terraform_provider_create.go
- terraform_provider_upload_version.go
- util.go
- workspace.go
- workspace_assign_identity.go
- workspace_create.go
- workspace_delete.go
- workspace_get.go
- workspace_get_assigned_identities.go
- workspace_list.go
- workspace_output.go
- workspace_set_environment_vars.go
- workspace_set_terraform_vars.go
- workspace_unassign_identity.go
- workspace_update.go