Documentation ¶
Index ¶
- func CreateDynamoDBTable(ctx context.Context, awsConfig aws.Config, tableName string) (*types.TableDescription, error)
- func DeleteDynamoDBTable(ctx context.Context, awsConfig aws.Config, tableName string) error
- func GetAWSConfig(ctx context.Context, roleArn string) aws.Config
- func GetAssumedConfig(ctx context.Context, baseConfig aws.Config, roleArn string) aws.Config
- func GetDynamoDBTable(ctx context.Context, client *dynamodb.Client, tableName string) (*types.TableDescription, error)
- func NewAWS(ctx context.Context, cloudPrefix string, awsFlags common.AWS) model.CloudProvider
- func NewBuilder(ctx context.Context, awsConfig aws.Config, buildRoleArn string, ...) model.Builder
- func NewSSM(ctx context.Context, awsConfig aws.Config) model.SSM
- type Account
- type Artifacts
- type Build
- type BuildSpec
- type CloudWatch
- type IAM
- type Install
- type Phases
- type Pipeline
- func (p *Pipeline) CreateAgentPipelines(prefix string, projectName string, bucket string) error
- func (p *Pipeline) CreateApplyPipeline(pipelineName string, projectName string, stepName string, step model.Step, ...) (*string, error)
- func (p *Pipeline) CreateDestroyPipeline(pipelineName string, projectName string, stepName string, step model.Step, ...) error
- func (p *Pipeline) CreatePipeline(projectName string, stepName string, step model.Step, bucket model.Bucket) (*string, error)
- func (p *Pipeline) DeletePipeline(projectName string) error
- func (p *Pipeline) StartAgentExecution(pipelineName string) error
- func (p *Pipeline) StartDestroyExecution(_ string) error
- func (p *Pipeline) StartPipelineExecution(pipelineName string, _ string, _ model.Step, _ string) (*string, error)
- func (p *Pipeline) UpdatePipeline(pipelineName string, stepName string, step model.Step, bucket string) error
- func (p *Pipeline) WaitPipelineExecution(pipelineName string, projectName string, executionId *string, autoApprove bool, ...) error
- type PolicyDocument
- type PolicyStatement
- type Resources
- type S3
- func (s *S3) CheckFolderExists(folder string) (bool, error)
- func (s *S3) CreateBucket() (string, bool, error)
- func (s *S3) Delete() error
- func (s *S3) DeleteFile(file string) error
- func (s *S3) GetFile(file string) ([]byte, error)
- func (s *S3) GetRepoMetadata() (*model.RepositoryMetadata, error)
- func (s *S3) ListFolderFiles(folder string) ([]string, error)
- func (s *S3) PutFile(file string, content []byte) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateDynamoDBTable ¶
func DeleteDynamoDBTable ¶
func GetAssumedConfig ¶
func GetDynamoDBTable ¶
func NewBuilder ¶
Types ¶
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) DeleteLogGroup(logGroupName string) error DeleteLogStream(logGroupName, logStreamName string) error }
func NewCloudWatch ¶
func NewCloudWatch(ctx context.Context, awsConfig aws.Config) CloudWatch
type IAM ¶
type IAM interface { AttachRolePolicy(policyArn string, roleName string) error DeleteRolePolicyAttachment(policyName string, roleName string) error CreatePolicy(policyName string, statement []PolicyStatement) *types.Policy DeletePolicy(policyName string, accountId string) error UpdatePolicy(policyName string, statement []PolicyStatement) string CreateRole(roleName string, statement []PolicyStatement) *types.Role DeleteRole(roleName string) error GetRole(roleName string) *types.Role }
type Pipeline ¶
type Pipeline struct {
// contains filtered or unexported fields
}
func NewPipeline ¶
func (*Pipeline) CreateAgentPipelines ¶
func (*Pipeline) CreateApplyPipeline ¶
func (*Pipeline) CreateDestroyPipeline ¶
func (*Pipeline) CreatePipeline ¶
func (*Pipeline) DeletePipeline ¶
func (*Pipeline) StartAgentExecution ¶
func (*Pipeline) StartDestroyExecution ¶
func (*Pipeline) StartPipelineExecution ¶
func (*Pipeline) UpdatePipeline ¶
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, dynamodbArn string) []PolicyStatement
func CodeBuildS3Policy ¶
func CodeBuildS3Policy(s3Arn string) PolicyStatement
func CodePipelinePolicy ¶
func CodePipelinePolicy(s3Arn string) []PolicyStatement
func CodePipelineS3Policy ¶
func CodePipelineS3Policy(s3Arn string) PolicyStatement
type Resources ¶
type S3 ¶
type S3 struct {
// contains filtered or unexported fields
}
func (*S3) DeleteFile ¶
func (*S3) GetRepoMetadata ¶
func (s *S3) GetRepoMetadata() (*model.RepositoryMetadata, error)
Click to show internal directories.
Click to hide internal directories.