Documentation ¶
Index ¶
- Constants
- type Change
- type ChangeAction
- type CreateOptions
- type Report
- type ResourceChange
- type Service
- func (s *Service) Apply(workspaceID resource.ID, opts CreateOptions) (task.Spec, error)
- func (s *Service) ApplyPlan(taskID resource.ID) (task.Spec, error)
- func (s *Service) Get(runID resource.ID) (*plan, error)
- func (s *Service) List() []*plan
- func (s *Service) Plan(workspaceID resource.ID, opts CreateOptions) (task.Spec, error)
- func (s *Service) ReloadAfterApply(sub <-chan resource.Event[*task.Task])
- type ServiceOptions
Constants ¶
View Source
const ApplyTask task.Identifier = "apply"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Change ¶
type Change struct {
Actions []ChangeAction
}
Change represents the type of change being made
type ChangeAction ¶
type ChangeAction string
const ( CreateAction ChangeAction = "create" UpdateAction ChangeAction = "update" DeleteAction ChangeAction = "delete" )
type CreateOptions ¶
type CreateOptions struct { // TargetAddrs creates a plan targeting specific resources. TargetAddrs []state.ResourceAddress // Destroy creates a plan to destroy all resources. Destroy bool // contains filtered or unexported fields }
type Report ¶
type Report struct { Additions int `json:"additions"` Changes int `json:"changes"` Destructions int `json:"destructions"` }
Report reports a summary of additions, changes, and deletions of resources in a plan or an apply.
func (Report) HasChanges ¶
type ResourceChange ¶
type ResourceChange struct {
Change Change
}
ResourceChange represents a proposed change to a resource in a plan file
type Service ¶
func NewService ¶
func NewService(opts ServiceOptions) *Service
func (*Service) Apply ¶
Apply creates a task spec to auto-apply a plan, i.e. `terraform apply`. To apply an existing plan, see ApplyPlan.
func (*Service) ApplyPlan ¶
ApplyPlan creates a task spec to apply an existing plan, i.e. `terraform apply existing.plan`. The taskID is the ID of a plan task, which must have finished successfully.
Click to show internal directories.
Click to hide internal directories.