Documentation ¶
Index ¶
- Constants
- func DescribeEcsClusters(ecsClient *ecs.Client, clusters []string) (ecs.DescribeClustersOutput, error)
- func DescribeEcsServices(ecsClient *ecs.Client, clusterName string, serviceArns []string) (ecs.DescribeServicesOutput, error)
- func DescribeEcsTasksForService(ecsClient *ecs.Client, clusterName, serviceName string) (*ecs.DescribeTasksOutput, error)
- 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(cfgInput AWSConfigInput) (awsV2.Config, error)
- func GetCfgUsingEnvVariables(profile, region string) (awsV2.Config, error)
- func GetClusterJSONResponse(cfg aws.Config, clusterName string) (string, error)
- func GetECSContainerJsonResponse(cfg aws.Config, clusterName, taskId, runtimeId string) (string, error)
- func GetEcsServiceJSONResponse(cfg aws.Config, clusterName, serviceName string) (string, error)
- func GetInfoAboutBucket(cfg aws.Config, bucketName string, delimiter string, prefix string) (*s3.ListObjectsV2Output, error)
- func GetLocalstackCfg(region string) (awsV2.Config, error)
- func GetLocastackEndpoint() string
- 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
- func GetTaskIDFromArn(taskArn string) string
- func GetTaskJSONResponse(cfg aws.Config, clusterName, taskArn string) (string, error)
- func ListContainersForTask(cfg aws.Config, clusterName, taskId string) ([]types.Container, error)
- type AWSConfigInput
- type BucketInfo
- type BucketResp
- type EBSResp
- type EC2Resp
- type EcsClusterResp
- type EcsServiceResp
- type EcsTaskResp
- 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 DescribeEcsClusters ¶ added in v0.1.4
func DescribeEcsServices ¶ added in v0.1.4
func DescribeEcsTasksForService ¶ added in v0.1.4
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 GetClusterJSONResponse ¶ added in v0.1.4
func GetECSContainerJsonResponse ¶ added in v0.1.4
func GetEcsServiceJSONResponse ¶ added in v0.1.4
func GetInfoAboutBucket ¶
func GetLocastackEndpoint ¶ added in v0.1.4
func GetLocastackEndpoint() string
func GetMessageFromQueue ¶
func GetProfiles ¶ added in v0.1.1
func GetTaskIDFromArn ¶ added in v0.1.4
func GetTaskJSONResponse ¶ added in v0.1.4
Types ¶
type AWSConfigInput ¶ added in v0.1.4
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 EcsClusterResp ¶ added in v0.1.4
type EcsClusterResp struct { ClusterName string Status string ClusterArn string RunningTasksCount string }
func ListEcsClusters ¶ added in v0.1.4
func ListEcsClusters(cfg aws.Config) ([]EcsClusterResp, error)
type EcsServiceResp ¶ added in v0.1.4
type EcsServiceResp struct { ServiceName string Status string DesiredCount string RunningCount string TaskDefinition string ServiceArn string }
func ListEcsServices ¶ added in v0.1.4
func ListEcsServices(cfg aws.Config, clusterName string) ([]EcsServiceResp, error)
type EcsTaskResp ¶ added in v0.1.4
func ListEcsTasks ¶ added in v0.1.4
func ListEcsTasks(cfg aws.Config, clusterName, serviceName string) ([]EcsTaskResp, error)
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.