Documentation ¶
Index ¶
- func CreateDynamoDBTable(awsConfig aws.Config, tableName string) (*types.TableDescription, error)
- func GetAWSConfig(ctx context.Context) aws.Config
- func GetDynamoDBTable(client *dynamodb.Client, tableName string) (*types.TableDescription, error)
- func NewAWS(ctx context.Context, cloudPrefix string) model.CloudProvider
- func NewBuilder(awsConfig aws.Config, buildRoleArn string, logGroup string, logStream string, ...) model.Builder
- func NewPipeline(awsConfig aws.Config, branch string, roleArn string, bucket string, ...) model.Pipeline
- func NewSSM(awsConfig aws.Config) model.SSM
- type Account
- type Artifacts
- type Build
- type BuildSpec
- type CloudWatch
- type CodeCommit
- func (c *CodeCommit) CheckFolderExists(folder string) (bool, error)
- func (c *CodeCommit) CreateRepository() (bool, error)
- func (c *CodeCommit) DeleteFile(file string) error
- func (c *CodeCommit) GetAWSRepoMetadata() (*types.RepositoryMetadata, error)
- func (c *CodeCommit) GetFile(file string) ([]byte, error)
- func (c *CodeCommit) GetRepoMetadata() (*model.RepositoryMetadata, error)
- func (c *CodeCommit) ListFolderFiles(folder string) ([]string, error)
- func (c *CodeCommit) PutFile(file string, content []byte) error
- type IAM
- type Install
- type Phases
- type PolicyDocument
- type PolicyStatement
- type Resources
- type S3
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateDynamoDBTable ¶
func GetDynamoDBTable ¶
func NewBuilder ¶
func NewPipeline ¶
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) }
func NewCloudWatch ¶
func NewCloudWatch(awsConfig aws.Config) CloudWatch
type CodeCommit ¶
type CodeCommit struct {
// contains filtered or unexported fields
}
func NewCodeCommit ¶
func NewCodeCommit(awsConfig aws.Config, repoName string, branchName string) *CodeCommit
func (*CodeCommit) CheckFolderExists ¶
func (c *CodeCommit) CheckFolderExists(folder string) (bool, error)
func (*CodeCommit) CreateRepository ¶
func (c *CodeCommit) CreateRepository() (bool, error)
func (*CodeCommit) DeleteFile ¶
func (c *CodeCommit) DeleteFile(file string) error
func (*CodeCommit) GetAWSRepoMetadata ¶
func (c *CodeCommit) GetAWSRepoMetadata() (*types.RepositoryMetadata, error)
func (*CodeCommit) GetRepoMetadata ¶
func (c *CodeCommit) GetRepoMetadata() (*model.RepositoryMetadata, error)
func (*CodeCommit) ListFolderFiles ¶
func (c *CodeCommit) ListFolderFiles(folder string) ([]string, error)
type IAM ¶
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 CodeBuildRepoPolicy ¶
func CodeBuildRepoPolicy(repoArn string) PolicyStatement
func CodePipelinePolicy ¶
func CodePipelinePolicy(s3Arn string, repoArn string) []PolicyStatement
func CodePipelineRepoPolicy ¶
func CodePipelineRepoPolicy(repoArn string) PolicyStatement
Click to show internal directories.
Click to hide internal directories.