Documentation ¶
Index ¶
- Constants
- func DownloadObject(cfg aws.Config, bucketName, key string) string
- func GetAllRegions() []string
- func GetBuckEncryption(cfg aws.Config, bucketName string) *types.ServerSideEncryptionConfiguration
- func GetBuckLifecycle(cfg aws.Config, bucketName string) *s3.GetBucketLifecycleConfigurationOutput
- func GetCfg(profile, region string) (awsV2.Config, error)
- func GetCfgUsingEnvVariables(profile, region string) (awsV2.Config, error)
- func GetInfoAboutBucket(cfg aws.Config, bucketName string, delimiter string, prefix string) (*s3.ListObjectsV2Output, error)
- func GetLocalTimeZone() (string, error)
- func GetLocalstackCfg(region string) (awsV2.Config, error)
- func GetMessageFromQueue(cfg awsV2.Config, queueUrl string) (*sqs.ReceiveMessageOutput, error)
- func GetPreSignedUrl(cfg aws.Config, bucketName, key string) string
- func GetProfiles() (profiles []string, err error)
- func GetSingleAMI(cfg aws.Config, amiId string) string
- func GetSingleInstance(cfg aws.Config, insId string) string
- func GetSingleSecGrp(cfg aws.Config, sgId string) string
- func GetSingleSnapshot(cfg aws.Config, sId string) string
- func GetSingleSubnet(cfg aws.Config, sId string) string
- func GetSingleVPC(cfg aws.Config, vpcId string) string
- func GetSingleVolume(cfg aws.Config, vId string) string
- type BucketInfo
- type BucketResp
- type EBSResp
- type EC2Resp
- type IAMUSerGroupPolicyResponse
- type IAMUSerGroupResp
- type IAMUSerPolicyResponse
- type IAMUSerResp
- type IamRolePolicyResponse
- type IamRoleResp
- type ImageResp
- type LambdaResp
- type Presigner
- type Profiles
- type S3Object
- type SGResp
- type SQSResp
- type Snapshot
- type SubnetResp
- type VpcResp
Constants ¶
View Source
const ( AWS_ACCESS_KEY_ID string = "AWS_ACCESS_KEY_ID" AWS_SECRET_ACCESS_KEY string = "AWS_SECRET_ACCESS_KEY" )
Variables ¶
This section is empty.
Functions ¶
func GetAllRegions ¶
func GetAllRegions() []string
func GetBuckEncryption ¶
func GetBuckEncryption(cfg aws.Config, bucketName string) *types.ServerSideEncryptionConfiguration
func GetBuckLifecycle ¶
func GetBuckLifecycle(cfg aws.Config, bucketName string) *s3.GetBucketLifecycleConfigurationOutput
func GetCfgUsingEnvVariables ¶ added in v0.1.2
func GetInfoAboutBucket ¶
func GetLocalTimeZone ¶ added in v0.1.1
func GetMessageFromQueue ¶
func GetProfiles ¶ added in v0.1.1
Types ¶
type BucketInfo ¶
type BucketInfo struct { EncryptionConfiguration types.ServerSideEncryptionConfiguration LifeCycleRules []types.LifecycleRule }
type BucketResp ¶
func ListBuckets ¶
func ListBuckets(cfg aws.Config) ([]BucketResp, error)
type EBSResp ¶
type EC2Resp ¶
type IAMUSerGroupPolicyResponse ¶
func GetPoliciesOfGrp ¶
func GetPoliciesOfGrp(cfg awsV2.Config, grpName string) []IAMUSerGroupPolicyResponse
type IAMUSerGroupResp ¶
func GetUserGroups ¶
func GetUserGroups(cfg awsV2.Config) []IAMUSerGroupResp
type IAMUSerPolicyResponse ¶
func GetPoliciesOfUser ¶
func GetPoliciesOfUser(cfg awsV2.Config, usrName string) []IAMUSerPolicyResponse
If a user belong to a Group then we can't see the user's attached policy here, their policies are governed on the top of the group
type IAMUSerResp ¶
func GetGroupUsers ¶
func GetGroupUsers(cfg awsV2.Config, grpName string) []IAMUSerResp
func GetUsers ¶
func GetUsers(cfg awsV2.Config) []IAMUSerResp
type IamRolePolicyResponse ¶
func GetPoliciesOfRoles ¶
func GetPoliciesOfRoles(cfg awsV2.Config, roleName string) []IamRolePolicyResponse
type IamRoleResp ¶
func GetIamRoles ¶
func GetIamRoles(cfg awsV2.Config) []IamRoleResp
type ImageResp ¶
type LambdaResp ¶
type LambdaResp struct { FunctionName string Description string Role string FunctionArn string CodeSize string LastModified string }
func GetAllLambdaFunctions ¶
func GetAllLambdaFunctions(cfg awsV2.Config) ([]LambdaResp, error)
type Presigner ¶ added in v0.1.2
type Presigner struct {
PresignClient *s3.PresignClient
}
type SGResp ¶ added in v0.1.2
type SQSResp ¶
type Snapshot ¶
type Snapshot struct { SnapshotId string OwnerId string VolumeId string VolumeSize string StartTime string State string }
func GetSnapshots ¶
Snapshots are region specific Localstack does have default snapshots, so we can see some of the snapshots that we never created
type SubnetResp ¶
type SubnetResp struct { SubnetId string OwnerId string CidrBlock string AvailabilityZone string State string }
func GetSubnets ¶
func GetSubnets(cfg aws.Config, vpcId string) []SubnetResp
Click to show internal directories.
Click to hide internal directories.