workspace_repo

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Dec 15, 2021 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

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) GetTags

func (s *TFEWorkspace) GetTags() (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) SetVars

func (s *TFEWorkspace) SetVars(key string, value string, description string, sensitive 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) 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
	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

type WorkspaceRepoIface interface {
	GetWorkspace(workspaceName string) (Workspace, error)
}

Jump to

Keyboard shortcuts

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