Documentation ¶
Index ¶
- type HydroUI
- type Option
- type Options
- type Terraform
- func (t *Terraform) Create(p types.ProviderType, cfg map[string]interface{}) (*types.ClusterInfo, error)
- func (t *Terraform) Delete(info *types.ClusterInfo, p types.ProviderType, cfg map[string]interface{}) error
- func (t *Terraform) Status(info *types.ClusterInfo, p types.ProviderType, cfg map[string]interface{}) (*types.ClusterStatus, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HydroUI ¶
type HydroUI struct {
// contains filtered or unexported fields
}
func (*HydroUI) Ask ¶
Ask asks the user for input using the given query. For Hydroform, it always responds "yes" to skip terraform confirmation prompts
func (*HydroUI) AskSecret ¶
AskSecret asks the user for input using the given query, but does not echo the keystrokes to the terminal.
func (*HydroUI) Error ¶
Error saves error messages from terraform as an error slice to be retrieved later by Hydroform.
func (*HydroUI) Errors ¶
Errors returns any errors or warnings that happened during a terraform command execution
func (*HydroUI) Info ¶
Info is called for information related to the previous output. In general this may be the exact same as Output, but this gives Ui implementors some flexibility with output formats. Terraform info is ignored in Hydroform.
type Option ¶
type Option func(ops *Options)
Option is a function that allows to extensibly configure the terraform operator.
func ToTerraformOptions ¶
ToTerraformOptions turns Hydroform options into terraform operator specific options
func WithDataDir ¶
Set a custom directory where all Hydroform files will be stored.
type Options ¶
type Options struct { command.Meta // Persistent allows to configure if terraform files should stay in the file system or be cleaned up after each operation. Persistent bool // Timeouts specifies the timeouts of the operations Timeouts types.Timeouts // Print terraform log for debugging Verbose bool }
Options contains all configuration for the terraform operator
type Terraform ¶
type Terraform struct {
// contains filtered or unexported fields
}
Terraform is an Operator.
func (*Terraform) Create ¶
func (t *Terraform) Create(p types.ProviderType, cfg map[string]interface{}) (*types.ClusterInfo, error)
Create creates a new cluster for a specific provider based on configuration details. It returns a ClusterInfo object with provider-related information, or an error if cluster provisioning failed.
func (*Terraform) Delete ¶
func (t *Terraform) Delete(info *types.ClusterInfo, p types.ProviderType, cfg map[string]interface{}) error
Delete removes an existing cluster or returns an error if removing the cluster is not possible.
func (*Terraform) Status ¶
func (t *Terraform) Status(info *types.ClusterInfo, p types.ProviderType, cfg map[string]interface{}) (*types.ClusterStatus, error)
Status checks the current state of the cluster from the file