Documentation ¶
Index ¶
- Constants
- func Sort(i, j *Resource) int
- type Resource
- type ResourceAddress
- type Service
- func (s *Service) Delete(workspaceID resource.ID, addrs ...ResourceAddress) (*task.Task, error)
- func (s *Service) Get(workspaceID resource.ID) (*State, error)
- func (s *Service) Move(workspaceID resource.ID, src, dest ResourceAddress) (*task.Task, error)
- func (s *Service) Reload(workspaceID resource.ID) (*task.Task, error)
- func (s *Service) Taint(workspaceID resource.ID, addr ResourceAddress) (*task.Task, error)
- func (s *Service) Untaint(workspaceID resource.ID, addr ResourceAddress) (*task.Task, error)
- type ServiceOptions
- type State
- type StateFile
- type StateFileModule
- type StateFileOutput
- type StateFileResource
- type StateFileResourceInstance
- type StateFileResourceInstanceStatus
- type StateFileResourceMode
Constants ¶
View Source
const ( StateFileResourceInstanceTainted StateFileResourceInstanceStatus = "tainted" StateFileResourceDataMode StateFileResourceMode = "data" )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Resource ¶
type Resource struct { resource.Common Address ResourceAddress Attributes map[string]any Tainted bool }
Resource is a pug state resource.
type ResourceAddress ¶
type ResourceAddress string
type Service ¶
func NewService ¶
func NewService(opts ServiceOptions) *Service
func (*Service) Reload ¶
Reload creates a task to repopulate the local cache of the state of the given workspace.
type ServiceOptions ¶
type State ¶
type StateFile ¶
type StateFile struct { Version int TerraformVersion string `json:"terraform_version"` Serial int64 Lineage string Outputs map[string]StateFileOutput Resources []StateFileResource }
StateFile is the terraform state file contents
type StateFileModule ¶
type StateFileModule struct { Resources []StateFileResource ChildModules []StateFileModule `json:"child_modules"` }
type StateFileOutput ¶
type StateFileOutput struct { Value json.RawMessage Sensitive bool }
StateFileOutput is an output in the terraform state file
type StateFileResource ¶
type StateFileResource struct { Name string ProviderURI string `json:"provider"` Type string Module string Mode StateFileResourceMode Instances []StateFileResourceInstance }
type StateFileResourceInstance ¶ added in v0.2.0
type StateFileResourceInstance struct { IndexKey *int `json:"index_key"` Status StateFileResourceInstanceStatus Attributes json.RawMessage }
type StateFileResourceInstanceStatus ¶ added in v0.2.0
type StateFileResourceInstanceStatus string
type StateFileResourceMode ¶ added in v0.2.0
type StateFileResourceMode string
Click to show internal directories.
Click to hide internal directories.