Documentation ¶
Index ¶
- Constants
- type CloudFormationRepo
- func (r *CloudFormationRepo) CreateStack(ctx context.Context, name string, template string, params map[string]string, ...) (*model.StackInfo, error)
- func (r *CloudFormationRepo) DeleteStack(ctx context.Context, name string, dryRun bool) (*model.StackInfo, error)
- func (r *CloudFormationRepo) GetEnvironment(ctx context.Context, envName string) (*model.EnvironmentInfo, error)
- func (r *CloudFormationRepo) GetStackInfo(ctx context.Context, name string) (*model.StackInfo, error)
- func (r *CloudFormationRepo) GetStackOutputs(ctx context.Context, name string) (map[string]string, error)
- func (r *CloudFormationRepo) IsEnvironmentInState(ctx context.Context, envName string, stacks []string, states []model.State) (bool, []string, error)
- func (r *CloudFormationRepo) ListEnvironments(ctx context.Context) ([]string, error)
- func (r *CloudFormationRepo) ListStacks(ctx context.Context, envName string) ([]model.StackInfo, error)
- func (r *CloudFormationRepo) UpdateStack(ctx context.Context, name string, template string, params map[string]string, ...) (*model.StackInfo, error)
- type DummyDeployRepo
- func (r *DummyDeployRepo) CreateStack(ctx context.Context, name string, template string, params map[string]string, ...) (*model.StackInfo, error)
- func (r *DummyDeployRepo) DeleteStack(ctx context.Context, name string, dryRun bool) (*model.StackInfo, error)
- func (r *DummyDeployRepo) GetEnvironment(ctx context.Context, envName string) (*model.EnvironmentInfo, error)
- func (r *DummyDeployRepo) GetStackInfo(ctx context.Context, name string) (*model.StackInfo, error)
- func (r *DummyDeployRepo) GetStackOutputs(ctx context.Context, name string) (map[string]string, error)
- func (r *DummyDeployRepo) IsEnvironmentInState(ctx context.Context, envName string, stacks []string, states []model.State) (bool, []string, error)
- func (r *DummyDeployRepo) ListEnvironments(ctx context.Context) ([]string, error)
- func (r *DummyDeployRepo) ListStacks(ctx context.Context, envName string) ([]model.StackInfo, error)
- func (r *DummyDeployRepo) UpdateStack(ctx context.Context, name string, template string, params map[string]string, ...) (*model.StackInfo, error)
- type DummyStack
- type EnclaveRepo
- type EnvironmentRepo
- type IacDeployer
- type IacRepoFactory
Constants ¶
View Source
const CfPollTimeSec = 5
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CloudFormationRepo ¶
type CloudFormationRepo struct {
// contains filtered or unexported fields
}
func (*CloudFormationRepo) CreateStack ¶
func (*CloudFormationRepo) DeleteStack ¶
func (*CloudFormationRepo) GetEnvironment ¶
func (r *CloudFormationRepo) GetEnvironment(ctx context.Context, envName string) (*model.EnvironmentInfo, error)
func (*CloudFormationRepo) GetStackInfo ¶
func (*CloudFormationRepo) GetStackOutputs ¶
func (*CloudFormationRepo) IsEnvironmentInState ¶
func (*CloudFormationRepo) ListEnvironments ¶
func (r *CloudFormationRepo) ListEnvironments(ctx context.Context) ([]string, error)
func (*CloudFormationRepo) ListStacks ¶
type DummyDeployRepo ¶
type DummyDeployRepo struct {
// contains filtered or unexported fields
}
func (*DummyDeployRepo) CreateStack ¶
func (*DummyDeployRepo) DeleteStack ¶
func (*DummyDeployRepo) GetEnvironment ¶
func (r *DummyDeployRepo) GetEnvironment(ctx context.Context, envName string) (*model.EnvironmentInfo, error)
func (*DummyDeployRepo) GetStackInfo ¶
func (*DummyDeployRepo) GetStackOutputs ¶
func (*DummyDeployRepo) IsEnvironmentInState ¶
func (*DummyDeployRepo) ListEnvironments ¶
func (r *DummyDeployRepo) ListEnvironments(ctx context.Context) ([]string, error)
func (*DummyDeployRepo) ListStacks ¶
type DummyStack ¶
type EnclaveRepo ¶
type EnclaveRepo struct {
// contains filtered or unexported fields
}
func NewEnclaveRepo ¶
func NewEnclaveRepo(envDef model.EnvironmentConfig) *EnclaveRepo
func (*EnclaveRepo) GetEnclave ¶
func (r *EnclaveRepo) GetEnclave(name string) (*model.Enclave, error)
type EnvironmentRepo ¶
type EnvironmentRepo struct {
// contains filtered or unexported fields
}
func NewEnvironmentRepo ¶
func NewEnvironmentRepo(config appconfig.AppConfig) *EnvironmentRepo
func (*EnvironmentRepo) Bootstrap ¶
func (r *EnvironmentRepo) Bootstrap() error
func (*EnvironmentRepo) GetEnvironmentByDef ¶
func (r *EnvironmentRepo) GetEnvironmentByDef(envDef string) (*model.EnvironmentConfig, error)
type IacDeployer ¶
type IacDeployer interface { CreateStack(ctx context.Context, name string, template string, params map[string]string, metadata map[string]string, dryRun bool) (*model.StackInfo, error) DeleteStack(ctx context.Context, name string, dryRun bool) (*model.StackInfo, error) UpdateStack(ctx context.Context, name string, template string, params map[string]string, metadata map[string]string, dryRun bool) (*model.StackInfo, error) GetStackInfo(ctx context.Context, name string) (*model.StackInfo, error) GetStackOutputs(ctx context.Context, name string) (map[string]string, error) ListStacks(ctx context.Context, envName string) ([]model.StackInfo, error) ListEnvironments(ctx context.Context) ([]string, error) GetEnvironment(ctx context.Context, envName string) (*model.EnvironmentInfo, error) IsEnvironmentInState(ctx context.Context, envName string, stacks []string, states []model.State) (bool, []string, error) }
func NewCloudFormationRepo ¶
func NewCloudFormationRepo(config appconfig.AppConfig, enclave model.Enclave, provider *model.EncProvider) IacDeployer
func NewDummyDeployRepo ¶
func NewDummyDeployRepo(config appconfig.AppConfig, enclave model.Enclave, provider *model.EncProvider) IacDeployer
type IacRepoFactory ¶
type IacRepoFactory struct {
// contains filtered or unexported fields
}
func NewIacRepoFactory ¶
func NewIacRepoFactory(config appconfig.AppConfig) *IacRepoFactory
func (IacRepoFactory) GetDeployer ¶
func (f IacRepoFactory) GetDeployer(enclave model.Enclave, providerName string, iacType string) (IacDeployer, error)
Click to show internal directories.
Click to hide internal directories.