aws

package
v0.1.11 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 20, 2023 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DownloadObject

func DownloadObject(sess session.Session, bucketName, key string) string

func GetAllRegions

func GetAllRegions() []string

func GetBuckEncryption

func GetBuckEncryption(sess session.Session, bucketName string) *s3.ServerSideEncryptionConfiguration

func GetBuckLifecycle

func GetBuckLifecycle(sess session.Session, bucketName string) *s3.GetBucketLifecycleConfigurationOutput

func GetInfoAboutBucket

func GetInfoAboutBucket(sess session.Session, bucketName string, delimiter string, prefix string) *s3.ListObjectsV2Output

func GetMessageFromQueue

func GetMessageFromQueue(sess session.Session, queueUrl string) (*sqs.ReceiveMessageOutput, error)

func GetPreSignedUrl

func GetPreSignedUrl(sess session.Session, bucketName, key string) string

func GetSecGrps

func GetSecGrps(sess session.Session) []*ec2.SecurityGroup

func GetSingleAMI

func GetSingleAMI(sess session.Session, amiId string) *ec2.Image

func GetSingleInstance

func GetSingleInstance(sess session.Session, insId string) *ec2.DescribeInstancesOutput

func GetSingleSecGrp

func GetSingleSecGrp(sess session.Session, sgId string) *ec2.DescribeSecurityGroupsOutput

func GetSingleSnapshot

func GetSingleSnapshot(sess session.Session, sId string) *ec2.Snapshot

func GetSingleSubnet

func GetSingleSubnet(sess session.Session, sId string) *ec2.Subnet

func GetSingleVPC

func GetSingleVPC(sess session.Session, vpcId string) *ec2.Vpc

func GetSingleVolume

func GetSingleVolume(sess session.Session, vId string) *ec2.Volume

func PutObjects

func PutObjects(sess session.Session)

Types

type BucketInfo

type BucketInfo struct {
	EncryptionConfiguration *s3.ServerSideEncryptionConfiguration
	LifeCycleRules          []*s3.LifecycleRule
}

type BucketResp

type BucketResp struct {
	BucketName   string
	CreationTime string
	Region       string
}

func ListBuckets

func ListBuckets(sess session.Session) ([]BucketResp, error)

type EBSResp

type EBSResp struct {
	VolumeId         string
	Size             string
	VolumeType       string
	State            string
	AvailabilityZone string
	Snapshot         string
	CreationTime     string
}

func GetVolumes

func GetVolumes(sess session.Session) ([]EBSResp, error)

Volumes(ebs) are region specific Localstack doesn't have default volumes, so at some regions, there won't be any volumes.

type EC2Resp

type EC2Resp struct {
	Instance         ec2.Instance
	InstanceId       string
	InstanceType     string
	AvailabilityZone string
	InstanceState    string
	PublicDNS        string
	MonitoringState  string
	LaunchTime       string
}

func GetInstances

func GetInstances(sess session.Session) ([]EC2Resp, error)

type IAMUSerGroupPolicyResponse

type IAMUSerGroupPolicyResponse struct {
	PolicyArn  string
	PolicyName string
}

func GetPoliciesOfGrp

func GetPoliciesOfGrp(sess session.Session, grpName string) []IAMUSerGroupPolicyResponse

type IAMUSerGroupResp

type IAMUSerGroupResp struct {
	GroupId      string
	GroupName    string
	ARN          string
	CreationTime string
}

func GetUserGroups

func GetUserGroups(sess session.Session) []IAMUSerGroupResp

type IAMUSerPolicyResponse

type IAMUSerPolicyResponse struct {
	PolicyArn  string
	PolicyName string
}

func GetPoliciesOfUser

func GetPoliciesOfUser(sess session.Session, 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

type IAMUSerResp struct {
	UserId       string
	UserName     string
	ARN          string
	CreationTime string
}

func GetGroupUsers

func GetGroupUsers(sess session.Session, grpName string) []IAMUSerResp

func GetUsers

func GetUsers(sess session.Session) []IAMUSerResp

type IamRolePolicyResponse

type IamRolePolicyResponse struct {
	PolicyArn  string
	PolicyName string
}

func GetPoliciesOfRoles

func GetPoliciesOfRoles(sess session.Session, roleName string) []IamRolePolicyResponse

type IamRoleResp

type IamRoleResp struct {
	RoleId       string
	RoleName     string
	ARN          string
	CreationTime string
}

func GetIamRoles

func GetIamRoles(sess session.Session) []IamRoleResp

type ImageResp

type ImageResp struct {
	ImageId       string
	OwnerId       string
	ImageLocation string
	Name          string
	ImageType     string
}

func GetAMIs

func GetAMIs(sess session.Session) []ImageResp

type LambdaResp

type LambdaResp struct {
	FunctionName string
	Description  string
	Role         string
	FunctionArn  string
	CodeSize     string
	LastModified string
}

func GetAllLambdaFunctions

func GetAllLambdaFunctions(sess session.Session) ([]LambdaResp, error)

type S3Object

type S3Object struct {
	Name, ObjectType, LastModified, Size, StorageClass string
}

type SQSResp

type SQSResp struct {
	Name              string
	URL               string
	Type              string
	Created           string
	MessagesAvailable string
	Encryption        string
	MaxMessageSize    string
}

func GetAllQueues

func GetAllQueues(sess session.Session) ([]SQSResp, error)

type Snapshot

type Snapshot struct {
	SnapshotId string
	OwnerId    string
	VolumeId   string
	VolumeSize string
	StartTime  string
	State      string
}

func GetSnapshots

func GetSnapshots(sess session.Session) []Snapshot

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(sess session.Session, vpcId string) []SubnetResp

type VpcResp

type VpcResp struct {
	VpcId           string
	OwnerId         string
	CidrBlock       string
	InstanceTenancy string
	State           string
}

func GetVPCs

func GetVPCs(sess session.Session) []VpcResp

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL