repo

package
v0.0.0-...-6e5c2bb Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 5, 2024 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

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 (r *CloudFormationRepo) CreateStack(ctx context.Context, name string, template string,
	params map[string]string, metadata map[string]string, dryRun bool) (*model.StackInfo, error)

func (*CloudFormationRepo) DeleteStack

func (r *CloudFormationRepo) DeleteStack(ctx context.Context, name string, dryRun bool) (*model.StackInfo, error)

func (*CloudFormationRepo) GetEnvironment

func (r *CloudFormationRepo) GetEnvironment(ctx context.Context, envName string) (*model.EnvironmentInfo, error)

func (*CloudFormationRepo) GetStackInfo

func (r *CloudFormationRepo) GetStackInfo(ctx context.Context, name string) (*model.StackInfo, error)

func (*CloudFormationRepo) GetStackOutputs

func (r *CloudFormationRepo) GetStackOutputs(ctx context.Context, name string) (map[string]string, error)

func (*CloudFormationRepo) IsEnvironmentInState

func (r *CloudFormationRepo) IsEnvironmentInState(ctx context.Context, envName string, stacks []string, states []model.State) (bool, []string, error)

func (*CloudFormationRepo) ListEnvironments

func (r *CloudFormationRepo) ListEnvironments(ctx context.Context) ([]string, error)

func (*CloudFormationRepo) ListStacks

func (r *CloudFormationRepo) ListStacks(ctx context.Context, envName string) ([]model.StackInfo, error)

func (*CloudFormationRepo) UpdateStack

func (r *CloudFormationRepo) UpdateStack(ctx context.Context, name string, template string,
	params map[string]string, metadata map[string]string, dryRun bool) (*model.StackInfo, error)

type DummyDeployRepo

type DummyDeployRepo struct {
	// contains filtered or unexported fields
}

func (*DummyDeployRepo) CreateStack

func (r *DummyDeployRepo) CreateStack(ctx context.Context, name string, template string,
	params map[string]string, metadata map[string]string, dryRun bool) (*model.StackInfo, error)

func (*DummyDeployRepo) DeleteStack

func (r *DummyDeployRepo) DeleteStack(ctx context.Context, name string, dryRun bool) (*model.StackInfo, error)

func (*DummyDeployRepo) GetEnvironment

func (r *DummyDeployRepo) GetEnvironment(ctx context.Context, envName string) (*model.EnvironmentInfo, error)

func (*DummyDeployRepo) GetStackInfo

func (r *DummyDeployRepo) GetStackInfo(ctx context.Context, name string) (*model.StackInfo, error)

func (*DummyDeployRepo) GetStackOutputs

func (r *DummyDeployRepo) GetStackOutputs(ctx context.Context, name string) (map[string]string, error)

func (*DummyDeployRepo) IsEnvironmentInState

func (r *DummyDeployRepo) IsEnvironmentInState(ctx context.Context, envName string, stacks []string, states []model.State) (bool, []string, error)

func (*DummyDeployRepo) ListEnvironments

func (r *DummyDeployRepo) ListEnvironments(ctx context.Context) ([]string, error)

func (*DummyDeployRepo) ListStacks

func (r *DummyDeployRepo) ListStacks(ctx context.Context, envName string) ([]model.StackInfo, error)

func (*DummyDeployRepo) UpdateStack

func (r *DummyDeployRepo) UpdateStack(ctx context.Context, name string, template string,
	params map[string]string, metadata map[string]string, dryRun bool) (*model.StackInfo, error)

type DummyStack

type DummyStack struct {
	Name       string
	DeployTime time.Time
}

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)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL