Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Driver ¶
type Driver interface { // Init initializes the driver and environment Init(ctx context.Context) error // InitTask initializes the task that the driver executes InitTask(task Task, force bool) error // ApplyTask applies change for the task managed by the driver ApplyTask(ctx context.Context) error // Version returns the version of the driver. Version() string }
Driver describes the interface for using an Sync driver to carry out changes downstream to update network infrastructure.
type Service ¶
type Service struct { Datacenter string Description string Name string Namespace string Tag string }
Service contains service configuration information
type Task ¶
type Task struct { Description string Name string Providers []map[string]interface{} ProviderInfo map[string]interface{} Services []Service Source string VarFiles []string Version string }
Task contains task configuration information
type Terraform ¶
type Terraform struct {
// contains filtered or unexported fields
}
Terraform is an Sync driver that uses the Terraform CLI to interface with low-level network infrastructure.
func NewTerraform ¶
func NewTerraform(config *TerraformConfig) *Terraform
NewTerraform configures and initializes a new Terraform driver
func (*Terraform) Init ¶
Init initializes the Terraform local environment. The Terraform binary is installed to the configured path.
type TerraformConfig ¶
type TerraformConfig struct { Log bool PersistLog bool Path string WorkingDir string Backend map[string]interface{} RequiredProviders map[string]interface{} // empty/unknown string will default to TerraformCLI client ClientType string }
TerraformConfig configures the Terraform driver
Click to show internal directories.
Click to hide internal directories.