Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DynamodbProvider ¶
type DynamodbProvider struct { Client dynamoClientInterface STSProvider *STSProvider Regions []string }
func NewDynamoDBCClient ¶
func NewDynamoDBCClient(cfg aws.Config) *DynamodbProvider
func (*DynamodbProvider) GetDynamoTableNames ¶
func (dyn *DynamodbProvider) GetDynamoTableNames(accountRoleArn string) []string
type LambdaClientInterface ¶ added in v1.0.1
type LambdaClientInterface interface {
ListFunctions(ctx context.Context, params *lambda.ListFunctionsInput, optFns ...func(*lambda.Options)) (*lambda.ListFunctionsOutput, error)
}
type LambdaProvider ¶ added in v1.0.1
type LambdaProvider struct { Client LambdaClientInterface STSProvider *STSProvider Regions []string }
func NewLambdaClient ¶ added in v1.0.1
func NewLambdaClient(cfg aws.Config) *LambdaProvider
func (*LambdaProvider) GetLambdaFunctions ¶ added in v1.0.1
func (lambdap *LambdaProvider) GetLambdaFunctions(accountRoleArn string) []string
type ResourceFinder ¶
type ResourceFinder struct { *S3Provider *DynamodbProvider *LambdaProvider *SQSProvider *SNSProvider settings.Settings }
ResourceFinder is the New service based implementation of cloudprovider to decouple the data logic from the application code
func NewAwsResourceFinder ¶
func NewAwsResourceFinder(cfg aws.Config, config settings.Settings) *ResourceFinder
func (*ResourceFinder) ResourceFinder ¶
func (c *ResourceFinder) ResourceFinder(service string, accountName string) ([]string, bool)
ResourceFinder Returns a method to find the available resources as well as ARN metadata used to render an ARN using the GenerateArnForService function. Returns GetNamesHashMap Function to get resource names as a map[string]string bool An easy way to see if the Aws Service has a resource finder
func (*ResourceFinder) ValidateResourcesFormat ¶
func (v *ResourceFinder) ValidateResourcesFormat(resources []string) []string
type S3ClientInterface ¶
type S3ClientInterface interface { // ListBuckets Required as there is currently no ListBucketsAPIClient ListBuckets(ctx context.Context, params *s3.ListBucketsInput, optFns ...func(*s3.Options)) (*s3.ListBucketsOutput, error) }
type S3Provider ¶
type S3Provider struct { Client S3ClientInterface STSProvider *STSProvider Regions []string }
func NewS3Client ¶
func NewS3Client(cfg aws.Config) *S3Provider
func (*S3Provider) GetBucketNames ¶
func (s3p *S3Provider) GetBucketNames(accountRoleArn string) []string
type SNSProvider ¶ added in v1.0.1
type SNSProvider struct { Client SnsClientInterface STSProvider *STSProvider Regions []string }
func NewSnsClient ¶ added in v1.0.1
func NewSnsClient(cfg aws.Config) *SNSProvider
func (*SNSProvider) GetSNSTopics ¶ added in v1.0.1
func (snsp *SNSProvider) GetSNSTopics(accountRoleArn string) []string
type SQSProvider ¶ added in v1.0.1
type SQSProvider struct { Client SqsClientInterface STSProvider *STSProvider Regions []string }
func NewSqsClient ¶ added in v1.0.1
func NewSqsClient(cfg aws.Config) *SQSProvider
func (*SQSProvider) GetSQSQueues ¶ added in v1.0.1
func (sqsp *SQSProvider) GetSQSQueues(accountRoleArn string) []string
type STSClientInterface ¶
type STSClientInterface interface {
AssumeRole(ctx context.Context, params *sts.AssumeRoleInput, optFns ...func(*sts.Options)) (*sts.AssumeRoleOutput, error)
}
type STSProvider ¶
type STSProvider struct {
Client STSClientInterface
}
func NewSTSClient ¶
func NewSTSClient(cfg aws.Config) *STSProvider
type SnsClientInterface ¶ added in v1.0.1
type SnsClientInterface interface {
ListTopics(ctx context.Context, params *sns.ListTopicsInput, optFns ...func(*sns.Options)) (*sns.ListTopicsOutput, error)
}
type SqsClientInterface ¶ added in v1.0.1
type SqsClientInterface interface {
ListQueues(ctx context.Context, params *sqs.ListQueuesInput, optFns ...func(*sqs.Options)) (*sqs.ListQueuesOutput, error)
}
Click to show internal directories.
Click to hide internal directories.