Documentation
¶
Overview ¶
Package infra executes the Podmin CLI's embedded infrastructure modules.
Index ¶
- func ActiveCommands(ctx context.Context) ([]string, error)
- func Clean(clusterID string) error
- func ForceUnlock(ctx context.Context, variables Variables, id string, input io.Reader, ...) error
- func Prepare(variables Variables) error
- func Run(ctx context.Context, variables Variables, destroy, autoApprove bool, ...) error
- func SelectCommand() (string, error)
- func WorkDir(clusterID string) (string, error)
- type LockError
- type NodeGroup
- type ObjectStore
- type Variables
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ActiveCommands ¶ added in v0.2.0
ActiveCommands returns locally running OpenTofu and Terraform executables.
func ForceUnlock ¶ added in v0.2.0
func ForceUnlock(ctx context.Context, variables Variables, id string, input io.Reader, output, stderr io.Writer) error
ForceUnlock removes one confirmed stale state lock.
func Run ¶
func Run(ctx context.Context, variables Variables, destroy, autoApprove bool, input io.Reader, output, stderr io.Writer) error
Run writes and executes the module in the inspectable cluster cache.
func SelectCommand ¶
SelectCommand finds the configured OpenTofu/Terraform executable.
Types ¶
type LockError ¶ added in v0.2.0
type LockError struct {
ID string
// contains filtered or unexported fields
}
LockError reports an existing OpenTofu or Terraform state lock.
type NodeGroup ¶
type NodeGroup struct {
Size int `json:"size"`
InstanceType string `json:"instance_type"`
Architecture string `json:"architecture"`
UserData string `json:"user_data"`
}
NodeGroup is an authoritative AWS compute NodeGroup.
type ObjectStore ¶
ObjectStore gets one object and its opaque version.
type Variables ¶
type Variables struct {
ClusterID string `json:"cluster_id"`
Region string `json:"region"`
Profile string `json:"profile"`
Bucket string `json:"bucket"`
VPCCIDR string `json:"vpc_cidr"`
ManageVPC bool `json:"manage_vpc"`
SubnetCIDRs map[string]string `json:"subnet_cidrs"`
NodeGroups map[string]NodeGroup `json:"nodegroups"`
}
Variables are values passed to the module as JSON.
Click to show internal directories.
Click to hide internal directories.