Documentation ¶
Index ¶
- Constants
- func Sort(i, j *Resource) int
- type ReloadSummary
- type Resource
- type ResourceAddress
- type Service
- func (s *Service) CreateReloadTask(workspaceID resource.ID) (*task.Task, error)
- func (s *Service) Delete(workspaceID resource.ID, addrs ...ResourceAddress) (task.Spec, error)
- func (s *Service) Get(workspaceID resource.ID) (*State, error)
- func (s *Service) GetResource(resourceID resource.ID) (*Resource, error)
- func (s *Service) Move(workspaceID resource.ID, src, dest ResourceAddress) (task.Spec, error)
- func (r Service) Reload(workspaceID resource.ID) (task.Spec, error)
- func (s *Service) Taint(workspaceID resource.ID, addr ResourceAddress) (task.Spec, error)
- func (s *Service) Untaint(workspaceID resource.ID, addr ResourceAddress) (task.Spec, 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 ReloadSummary ¶ added in v0.5.0
type ReloadSummary int
const ( Empty ReloadSummary = iota Unchanged Updated )
func (ReloadSummary) String ¶ added in v0.5.0
func (s ReloadSummary) String() string
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) CreateReloadTask ¶ added in v0.5.0
func (*Service) GetResource ¶ added in v0.3.4
GetResource retrieves a state resource.
TODO: this is massively inefficient
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 any `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.