Documentation
¶
Overview ¶
Copyright Jetstack Ltd. See LICENSE for details.
Copyright Jetstack Ltd. See LICENSE for details.
Copyright Jetstack Ltd. See LICENSE for details.
Copyright Jetstack Ltd. See LICENSE for details.
Index ¶
- Variables
- func Apply(args []string, stopCh <-chan struct{}) int
- func Destroy(args []string, stopCh <-chan struct{}) int
- func Fmt(args []string, stopCh <-chan struct{}) int
- func Init(args []string, stopCh <-chan struct{}) int
- func InternalPlugin(args []string) int
- func MapToTerraformTfvars(input map[string]interface{}) (output string, err error)
- func Output(args []string, stopCh <-chan struct{}) int
- func Plan(args []string, stopCh <-chan struct{}) int
- func Taint(args []string, stopCh <-chan struct{}) int
- func Unlock(args []string, stopCh <-chan struct{}) int
- func Validate(args []string, stopCh <-chan struct{}) int
- type Terraform
- func (t *Terraform) Apply(cluster interfaces.Cluster) (hasChanged bool, err error)
- func (t *Terraform) Cleanup() error
- func (t *Terraform) Destroy(cluster interfaces.Cluster) error
- func (t *Terraform) ForceUnlock(cluster interfaces.Cluster, lockID string) error
- func (t *Terraform) GenerateCode(c interfaces.Cluster) (err error)
- func (t *Terraform) Output(c interfaces.Cluster) (map[string]interface{}, error)
- func (t *Terraform) Plan(cluster interfaces.Cluster, preApply bool) (changesNeeded bool, err error)
- func (t *Terraform) Prepare(cluster interfaces.Cluster) error
- func (t *Terraform) ResetTerraformWrapper()
- func (t *Terraform) Shell(cluster interfaces.Cluster) error
Constants ¶
This section is empty.
Variables ¶
View Source
var InternalProviders = map[string]plugin.ProviderFunc{ "aws": provideraws.Provider, "random": providerrandom.Provider, "tls": providertls.Provider, "tarmak": providertarmak.Provider, "awstag": providerawstag.Provider, "template": providertemplate.Provider, }
Functions ¶
func MapToTerraformTfvars ¶
convert interface map to terraform.tfvars format
Types ¶
type Terraform ¶
type Terraform struct {
// contains filtered or unexported fields
}
func New ¶
func New(tarmak interfaces.Tarmak) *Terraform
func (*Terraform) Apply ¶
func (t *Terraform) Apply(cluster interfaces.Cluster) (hasChanged bool, err error)
func (*Terraform) ForceUnlock ¶
func (t *Terraform) ForceUnlock(cluster interfaces.Cluster, lockID string) error
func (*Terraform) GenerateCode ¶
func (t *Terraform) GenerateCode(c interfaces.Cluster) (err error)
func (*Terraform) Output ¶
func (t *Terraform) Output(c interfaces.Cluster) (map[string]interface{}, error)
func (*Terraform) ResetTerraformWrapper ¶
func (t *Terraform) ResetTerraformWrapper()
this method resets the socket path and the prepare step you need to call this method when you do multiple Terraform runs of different clusters
Click to show internal directories.
Click to hide internal directories.