Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BaseStack ¶
type BaseStack struct {
// contains filtered or unexported fields
}
BaseStack is a struct that implements the Stack interface.
func NewBaseStack ¶
NewBaseStack creates a new base stack of components.
func (*BaseStack) Initialize ¶
Initialize initializes the stack of components.
type MockStack ¶
MockStack is a mock implementation of the Stack interface for testing.
func NewMockStack ¶
NewMockStack creates a new mock stack.
func (*MockStack) Initialize ¶
Initialize is a mock implementation of the Initialize method.
type Shims ¶ added in v0.5.7
type Shims struct {
Stat func(string) (os.FileInfo, error)
Chdir func(string) error
Getwd func() (string, error)
Setenv func(string, string) error
Unsetenv func(string) error
Remove func(string) error
}
Shims provides mockable wrappers around system and runtime functions
type WindsorStack ¶
type WindsorStack struct {
BaseStack
}
WindsorStack is a struct that implements the Stack interface.
func NewWindsorStack ¶
func NewWindsorStack(injector di.Injector) *WindsorStack
NewWindsorStack creates a new WindsorStack.
func (*WindsorStack) Down ¶ added in v0.6.0
func (s *WindsorStack) Down() error
Down destroys a stack of components by executing Terraform destroy operations in reverse order. It processes components in reverse order, skipping any marked with destroy: false. For each component, it sets up environment variables, runs Terraform init, plan -destroy, and destroy operations, and cleans up backend override files. The method ensures proper directory management and environment setup for each component.
func (*WindsorStack) Up ¶
func (s *WindsorStack) Up() error
Up creates a new stack of components by initializing and applying Terraform configurations. It processes components in order, setting up environment variables, running Terraform init, plan, and apply operations, and cleaning up backend override files. The method ensures proper directory management and environment setup for each component.