Documentation
¶
Overview ¶
Package operations validates and describes StackKits operation specs.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ApprovalMode ¶
type ApprovalMode string
const ( ApprovalImplicit ApprovalMode = "implicit" ApprovalRequired ApprovalMode = "required" ApprovalDenied ApprovalMode = "denied" )
type ApprovalPolicy ¶
type ApprovalPolicy struct {
Mode ApprovalMode `json:"mode" yaml:"mode"`
Reason string `json:"reason,omitempty" yaml:"reason,omitempty"`
}
type Executor ¶
type Executor string
const (
ExecutorGo Executor = "go"
)
Only executors StackKits implements are named. Pulumi was removed with ADR-0019's supersession: the contract never had an executor behind it.
type OperationSpec ¶
type OperationSpec struct {
Name string `json:"name" yaml:"name"`
Phase Phase `json:"phase" yaml:"phase"`
Executor Executor `json:"executor" yaml:"executor"`
Stateful bool `json:"stateful" yaml:"stateful"`
Owner Owner `json:"owner" yaml:"owner"`
Provider string `json:"provider,omitempty" yaml:"provider,omitempty"`
Inputs map[string]OperationValue `json:"inputs,omitempty" yaml:"inputs,omitempty"`
Outputs map[string]OperationValue `json:"outputs,omitempty" yaml:"outputs,omitempty"`
SecretRefs []string `json:"secret_refs,omitempty" yaml:"secret_refs,omitempty"`
ApprovalPolicy ApprovalPolicy `json:"approval_policy" yaml:"approval_policy"`
StateScope *StateScope `json:"state_scope,omitempty" yaml:"state_scope,omitempty"`
}
func (OperationSpec) Validate ¶
func (s OperationSpec) Validate() error
type OperationValue ¶
type OwnedResource ¶
type OwnershipManifest ¶
type OwnershipManifest struct {
Resources []OwnedResource `json:"resources" yaml:"resources"`
}
func (OwnershipManifest) Validate ¶
func (m OwnershipManifest) Validate() error
type StateScope ¶
Click to show internal directories.
Click to hide internal directories.