cmd

package
v1.5.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 5, 2024 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Execute

func Execute()

Execute adds all child commands to the root command and sets flags appropriately. This is called by main.main(). It only needs to happen once to the rootCmd.

func RunRootCmd

func RunRootCmd(cmd *cobra.Command, args []string) error

Types

type Policy

type Policy struct {
	ID             string `json:"id"`
	Name           string `json:"name"`
	Kind           string `json:"kind"`
	Enforce        string `json:"enforce"`
	PolicySetCount int    `json:"policy_set_count"`
}

type PolicyCheck added in v1.3.2

type PolicyCheck struct {
	ID     string            `json:"id"`
	Result PolicyCheckResult `json:"result"`
	Status tfe.PolicyStatus  `json:"status"`
	Scope  tfe.PolicyScope   `json:"scope"`
}

type PolicyCheckResult added in v1.3.2

type PolicyCheckResult struct {
	AdvisoryFailed int  `json:"advisory_failed"`
	HardFailed     int  `json:"hard_failed"`
	Passed         int  `json:"passed"`
	Result         bool `json:"result"`
	SoftFailed     int  `json:"soft_failed"`
	TotalFailed    int  `json:"total_failed"`
	Sentinel       any  `json:"sentinel"`
}

type PolicySet added in v1.3.2

type PolicySet struct {
	ID                  string   `json:"id"`
	Name                string   `json:"name"`
	Kind                string   `json:"kind"`
	Global              bool     `json:"global"`
	Workspaces          []string `json:"workspaces"`
	WorkspaceCount      int      `json:"workspace_count"`
	WorkspaceExclusions []string `json:"workspace_exclusions"`
	Projects            []string `json:"projects"`
	ProjectCount        int      `json:"project_count"`
	Policies            []string `json:"policies"`
	PolicyCount         int      `json:"policy_count"`
}

type PrivateProviderDetail added in v1.5.0

type PrivateProviderDetail struct {
	RegistryProvider
	ProviderLatestVersion string             `json:"provider_latest_version"`
	ProviderPlatforms     []ProviderPlatform `json:"provider_platforms"`
}

type ProviderPlatform added in v1.5.0

type ProviderPlatform struct {
	ID       string `json:"id"`
	OS       string `json:"os"`
	Arch     string `json:"arch"`
	Filename string `json:"filename"`
}

type RegistryModule added in v1.5.0

type RegistryModule struct {
	ID                  string                   `json:"id"`
	Name                string                   `json:"name"`
	Provider            string                   `json:"provider"`
	RegistryName        tfe.RegistryName         `json:"registry_name"`
	Namespace           string                   `json:"namespace"`
	PublishingMechanism tfe.PublishingMechanism  `json:"publishing_mechanism"`
	Status              tfe.RegistryModuleStatus `json:"status"`
	TestConfig          bool                     `json:"test_config"`
	VCSRepo             string                   `json:"vcs_repo"`
	ModuleLatestVersion string                   `json:"module_latest_version"`
}

type RegistryProvider added in v1.5.0

type RegistryProvider struct {
	ID           string           `json:"id"`
	Name         string           `json:"name"`
	Namespace    string           `json:"namespace"`
	RegistryName tfe.RegistryName `json:"registry_name"`
}

type Run

type Run struct {
	ID            string `json:"id"`
	WorkspaceID   string `json:"workspace_id"`
	WorkspaceName string `json:"workspace_name"`
	Status        string `json:"status"`
}

type Tag added in v1.2.0

type Tag struct {
	Name          string `json:"name"`
	ID            string `json:"id"`
	InstanceCount int    `json:"instance_count"`
}

type Team

type Team struct {
	Name      string `json:"name"`
	ID        string `json:"id"`
	UserCount int    `json:"user_count"`
}

type TeamDetail

type TeamDetail struct {
	Team  Team   `json:"team"`
	Users []User `json:"user_list"`
}

type User

type User struct {
	ID     string                           `json:"user_id"`
	Email  string                           `json:"email"`
	Status tfe.OrganizationMembershipStatus `json:"status"`
}

type Variable

type Variable struct {
	ID          string           `json:"id"`
	Key         string           `json:"key"`
	Value       string           `json:"value"`
	Description string           `json:"description"`
	Category    tfe.CategoryType `json:"category"`
	HCL         bool             `json:"hcl"`
	Sensitive   bool             `json:"sensitive"`
}

type Variables

type Variables struct {
	Variables []Variable `json:"variables"`
}

type Workspace

type Workspace struct {
	Name             string   `json:"name"`
	ID               string   `json:"id"`
	Locked           bool     `json:"locked"`
	ExecutionMode    string   `json:"execution_mode"`
	TerraformVersion string   `json:"terraform_version"`
	Tags             []string `json:"tags"`
}

type WorkspaceDetail

type WorkspaceDetail struct {
	Workspace
	CreatedDaysAgo         string `json:"created_days_ago"`
	UpdatedDaysAgo         string `json:"updated_days_ago"`
	LastRemoteRunDaysAgo   string `json:"last_remote_run_days_ago"`
	LastStateUpdateDaysAgo string `json:"last_state_update_days_ago"`
}

WorkspaceDetail for -detail flag with list

type WorkspaceLite

type WorkspaceLite struct {
	WorkspaceID   string `json:"workspace_id"`
	WorkspaceName string `json:"workspace_name"`
}

type WorkspaceLock

type WorkspaceLock struct {
	Name   string `json:"name"`
	ID     string `json:"id"`
	Locked bool   `json:"locked"`
}

type WorkspaceVar

type WorkspaceVar struct {
	WorkspaceID   string   `json:"workspace_id"`
	WorkspaceName string   `json:"workspace_name"`
	Variable      Variable `json:"variable"`
}

type WorkspaceVars

type WorkspaceVars struct {
	WorkspaceID   string     `json:"workspace_id"`
	WorkspaceName string     `json:"workspace_name"`
	Variables     []Variable `json:"variables"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL