Documentation ¶
Index ¶
- func GetTfeToken(tfeUrl string) (string, error)
- type TFEWorkspace
- func (s *TFEWorkspace) GetCurrentRunID() string
- func (s *TFEWorkspace) GetCurrentRunStatus() string
- func (s *TFEWorkspace) GetLatestConfigVersionID() (string, error)
- func (s *TFEWorkspace) GetOutputs() (map[string]string, error)
- func (s *TFEWorkspace) GetTags() (map[string]string, error)
- func (s *TFEWorkspace) GetWorkspaceID() string
- func (s *TFEWorkspace) GetWorkspaceId() string
- func (s *TFEWorkspace) ResetCache()
- func (s *TFEWorkspace) Run(isDestroy bool) error
- func (s *TFEWorkspace) RunConfigVersion(configVersionId string, isDestroy bool) error
- func (s *TFEWorkspace) SetVars(key string, value string, description string, sensitive bool) error
- func (s *TFEWorkspace) UploadVersion(targzFilePath string) (string, error)
- func (s *TFEWorkspace) Wait() error
- func (s *TFEWorkspace) WaitWithOptions(waitOptions options.WaitOptions) error
- func (s *TFEWorkspace) WorkspaceName() string
- type Workspace
- type WorkspaceRepo
- type WorkspaceRepoIface
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetTfeToken ¶ added in v0.4.0
Types ¶
type TFEWorkspace ¶
type TFEWorkspace struct {
// contains filtered or unexported fields
}
implements the Workspace interface
func (*TFEWorkspace) GetCurrentRunID ¶
func (s *TFEWorkspace) GetCurrentRunID() string
func (*TFEWorkspace) GetCurrentRunStatus ¶
func (s *TFEWorkspace) GetCurrentRunStatus() string
func (*TFEWorkspace) GetLatestConfigVersionID ¶
func (s *TFEWorkspace) GetLatestConfigVersionID() (string, error)
func (*TFEWorkspace) GetOutputs ¶
func (s *TFEWorkspace) GetOutputs() (map[string]string, error)
func (*TFEWorkspace) GetWorkspaceID ¶
func (s *TFEWorkspace) GetWorkspaceID() string
func (*TFEWorkspace) GetWorkspaceId ¶
func (s *TFEWorkspace) GetWorkspaceId() string
func (*TFEWorkspace) ResetCache ¶
func (s *TFEWorkspace) ResetCache()
func (*TFEWorkspace) Run ¶
func (s *TFEWorkspace) Run(isDestroy bool) error
func (*TFEWorkspace) RunConfigVersion ¶
func (s *TFEWorkspace) RunConfigVersion(configVersionId string, isDestroy bool) error
func (*TFEWorkspace) UploadVersion ¶
func (s *TFEWorkspace) UploadVersion(targzFilePath string) (string, error)
create a new ConfigurationVersion in a TFE workspace, upload the targz file to the new ConfigurationVersion, and finally return its ID.
func (*TFEWorkspace) Wait ¶
func (s *TFEWorkspace) Wait() error
func (*TFEWorkspace) WaitWithOptions ¶ added in v0.3.0
func (s *TFEWorkspace) WaitWithOptions(waitOptions options.WaitOptions) error
func (*TFEWorkspace) WorkspaceName ¶
func (s *TFEWorkspace) WorkspaceName() string
type Workspace ¶
type Workspace interface { GetWorkspaceID() string WorkspaceName() string GetCurrentRunID() string GetLatestConfigVersionID() (string, error) Run(isDestroy bool) error SetVars(key string, value string, description string, sensitive bool) error RunConfigVersion(configVersionId string, isDestroy bool) error Wait() error WaitWithOptions(waitOptions options.WaitOptions) error ResetCache() GetTags() (map[string]string, error) GetWorkspaceId() string GetOutputs() (map[string]string, error) GetCurrentRunStatus() string UploadVersion(targzFilePath string) (string, error) }
type WorkspaceRepo ¶
type WorkspaceRepo struct {
// contains filtered or unexported fields
}
func NewWorkspaceRepo ¶
func NewWorkspaceRepo(url string, org string) (*WorkspaceRepo, error)
func (*WorkspaceRepo) GetWorkspace ¶
func (c *WorkspaceRepo) GetWorkspace(workspaceName string) (Workspace, error)
func (*WorkspaceRepo) Stacks ¶
func (c *WorkspaceRepo) Stacks() ([]string, error)
type WorkspaceRepoIface ¶
Click to show internal directories.
Click to hide internal directories.