Documentation ¶
Index ¶
- Constants
- func CreateDynamoDBTable(awsConfig aws.Config, tableName string) (*types.TableDescription, error)
- func GetConfig(configFile string) model.Config
- func GetDynamoDBTable(client *dynamodb.Client, tableName string) (*types.TableDescription, error)
- func GetModuleState(stepState *model.StateStep, moduleName string) *model.StateModule
- func GetStepState(state *model.State, step model.Step) *model.StateStep
- func NewAWSConfig() aws.Config
- func UpdateSteps(config model.Config, state *model.State)
- type Account
- type Artifacts
- type Build
- type BuildSpec
- type Builder
- type CloudWatch
- type CodeCommit
- type Github
- type IAM
- type Install
- type Phases
- type Pipeline
- type PolicyDocument
- type PolicyStatement
- type Release
- type S3
- type SSM
- type Updater
Constants ¶
View Source
const StableVersion = "stable"
Variables ¶
This section is empty.
Functions ¶
func CreateDynamoDBTable ¶
func GetDynamoDBTable ¶
func GetModuleState ¶
func GetModuleState(stepState *model.StateStep, moduleName string) *model.StateModule
func NewAWSConfig ¶
Types ¶
type Builder ¶
type Builder interface {
CreateProject(projectName string, roleArn string, logGroup string, streamName string, bucketArn string, repoURL string, stepName string, workspace string, vpcConfig *types.VpcConfig) error
}
func NewBuilder ¶
type CloudWatch ¶
type CloudWatch interface { CreateLogGroup(logGroupName string) (string, error) CreateLogStream(logGroupName string, logStreamName string) error GetLogs(logGroupName string, logStreamName string, limit int32) ([]string, error) }
func NewCloudWatch ¶
func NewCloudWatch(awsConfig aws.Config) CloudWatch
type CodeCommit ¶
type CodeCommit interface { CreateRepository() (bool, error) GetLatestCommitId() (*string, error) GetRepoMetadata() *types.RepositoryMetadata PutFile(file string, content []byte) GetFile(file string) []byte }
func NewCodeCommit ¶
func NewCodeCommit(awsConfig aws.Config, repoName string, branchName string) CodeCommit
type Github ¶
type IAM ¶
type Pipeline ¶
type Pipeline interface { CreateTerraformPipeline(pipelineName string, projectName string, stepName string, workspace string) (*string, error) CreateTerraformDestroyPipeline(pipelineName string, projectName string, stepName string, workspace string) error CreateArgoCDPipeline(pipelineName string, projectName string, stepName string, workspace string) (*string, error) CreateArgoCDDestroyPipeline(pipelineName string, projectName string, stepName string, workspace string) error StartPipelineExecution(pipelineName string) (*string, error) WaitPipelineExecution(pipelineName string, executionId *string, autoApprove bool, delay int, stepType string) error }
type PolicyDocument ¶
type PolicyDocument struct { Version string Statement []PolicyStatement }
type PolicyStatement ¶
type PolicyStatement struct { Effect string Action []string Principal map[string]string `json:",omitempty"` Resource []string `json:",omitempty"` }
func CodeBuildPolicy ¶
func CodeBuildPolicy(logGroupArn string, s3Arn string, repoArn string, dynamodbArn string) []PolicyStatement
func CodePipelinePolicy ¶
func CodePipelinePolicy(s3Arn string, repoArn string) []PolicyStatement
Click to show internal directories.
Click to hide internal directories.