Documentation
¶
Index ¶
- Constants
- func AllocateFloatingIpByName(ec2Client *ec2.Client, goCtx context.Context, tags map[string]string, ...) (string, error)
- func AssignAwsFloatingIp(ec2Client *ec2.Client, goCtx context.Context, lb *l.LogBuilder, ...) (string, error)
- func AssociateInstanceProfile(ec2Client *ec2.Client, goCtx context.Context, lb *l.LogBuilder, ...) error
- func AssociateRouteTableWithSubnet(ec2Client *ec2.Client, goCtx context.Context, lb *l.LogBuilder, ...) (string, error)
- func AttachInternetGatewayToVpc(ec2Client *ec2.Client, goCtx context.Context, lb *l.LogBuilder, ...) error
- func AttachVolume(ec2Client *ec2.Client, goCtx context.Context, lb *l.LogBuilder, volId string, ...) (string, error)
- func AuthorizeSecurityGroupIngress(ec2Client *ec2.Client, goCtx context.Context, lb *l.LogBuilder, ...) error
- func CreateImageFromInstance(ec2Client *ec2.Client, goCtx context.Context, tags map[string]string, ...) (string, error)
- func CreateInstance(ec2Client *ec2.Client, goCtx context.Context, tags map[string]string, ...) (string, error)
- func CreateInternetGateway(ec2Client *ec2.Client, goCtx context.Context, tags map[string]string, ...) (string, error)
- func CreateInternetGatewayRoute(ec2Client *ec2.Client, goCtx context.Context, lb *l.LogBuilder, ...) error
- func CreateNatGateway(ec2Client *ec2.Client, goCtx context.Context, tags map[string]string, ...) (string, error)
- func CreateNatGatewayRoute(ec2Client *ec2.Client, goCtx context.Context, lb *l.LogBuilder, ...) error
- func CreateRouteTableForVpc(ec2Client *ec2.Client, goCtx context.Context, tags map[string]string, ...) (string, error)
- func CreateSecurityGroup(ec2Client *ec2.Client, goCtx context.Context, tags map[string]string, ...) (string, error)
- func CreateSubnet(ec2Client *ec2.Client, goCtx context.Context, tags map[string]string, ...) (string, error)
- func CreateVolume(ec2Client *ec2.Client, goCtx context.Context, tags map[string]string, ...) (string, error)
- func CreateVpc(ec2Client *ec2.Client, goCtx context.Context, tags map[string]string, ...) (string, error)
- func DeleteInstance(ec2Client *ec2.Client, goCtx context.Context, lb *l.LogBuilder, ...) error
- func DeleteInternetGateway(ec2Client *ec2.Client, goCtx context.Context, lb *l.LogBuilder, ...) error
- func DeleteNatGateway(ec2Client *ec2.Client, goCtx context.Context, lb *l.LogBuilder, ...) error
- func DeleteRouteTable(ec2Client *ec2.Client, goCtx context.Context, lb *l.LogBuilder, ...) error
- func DeleteSecurityGroup(ec2Client *ec2.Client, goCtx context.Context, lb *l.LogBuilder, ...) error
- func DeleteSnapshot(ec2Client *ec2.Client, goCtx context.Context, lb *l.LogBuilder, ...) error
- func DeleteSubnet(ec2Client *ec2.Client, goCtx context.Context, lb *l.LogBuilder, ...) error
- func DeleteVolume(ec2Client *ec2.Client, goCtx context.Context, lb *l.LogBuilder, volId string) error
- func DeleteVpc(ec2Client *ec2.Client, goCtx context.Context, lb *l.LogBuilder, vpcId string) error
- func DeregisterImage(ec2Client *ec2.Client, goCtx context.Context, lb *l.LogBuilder, imageId string) error
- func DetachInternetGatewayFromVpc(ec2Client *ec2.Client, goCtx context.Context, lb *l.LogBuilder, ...) error
- func DetachVolume(ec2Client *ec2.Client, goCtx context.Context, lb *l.LogBuilder, volId string, ...) error
- func GetImageInfoById(ec2Client *ec2.Client, goCtx context.Context, lb *l.LogBuilder, imageId string) (types.ImageState, []types.BlockDeviceMapping, error)
- func GetImageInfoByName(ec2Client *ec2.Client, goCtx context.Context, lb *l.LogBuilder, ...) (string, types.ImageState, []types.BlockDeviceMapping, error)
- func GetInstanceIdAndStateByHostName(ec2Client *ec2.Client, goCtx context.Context, lb *l.LogBuilder, ...) (string, types.InstanceStateName, error)
- func GetInstanceType(ec2Client *ec2.Client, goCtx context.Context, lb *l.LogBuilder, ...) (string, error)
- func GetInternetGatewayIdByName(ec2Client *ec2.Client, goCtx context.Context, lb *l.LogBuilder, ...) (string, error)
- func GetInternetGatewayVpcAttachmentById(ec2Client *ec2.Client, goCtx context.Context, lb *l.LogBuilder, ...) (string, types.AttachmentStatus, error)
- func GetNatGatewayIdAndStateByName(ec2Client *ec2.Client, goCtx context.Context, lb *l.LogBuilder, ...) (string, types.NatGatewayState, error)
- func GetPublicIpAddressAllocationAssociatedInstanceByName(ec2Client *ec2.Client, goCtx context.Context, lb *l.LogBuilder, ipName string) (string, string, string, error)
- func GetResourcesByTag(tClient *tagging.Client, ec2Client *ec2.Client, goCtx context.Context, ...) ([]*cld.Resource, error)
- func GetRouteTableByName(ec2Client *ec2.Client, goCtx context.Context, lb *l.LogBuilder, ...) (string, string, string, error)
- func GetSecurityGroupIdByName(ec2Client *ec2.Client, goCtx context.Context, lb *l.LogBuilder, ...) (string, error)
- func GetSubnetIdByName(ec2Client *ec2.Client, goCtx context.Context, lb *l.LogBuilder, ...) (string, error)
- func GetVolumeAttachedDeviceById(ec2Client *ec2.Client, goCtx context.Context, lb *l.LogBuilder, volId string) (string, types.VolumeAttachmentState, error)
- func GetVolumeIdByName(ec2Client *ec2.Client, goCtx context.Context, lb *l.LogBuilder, volName string) (string, error)
- func GetVpcDefaultRouteTable(ec2Client *ec2.Client, goCtx context.Context, lb *l.LogBuilder, vpcId string) (string, string, error)
- func GetVpcIdByName(ec2Client *ec2.Client, goCtx context.Context, lb *l.LogBuilder, vpcName string) (string, error)
- func ReleaseFloatingIpByAllocationId(ec2Client *ec2.Client, goCtx context.Context, lb *l.LogBuilder, ...) error
- func StopInstance(ec2Client *ec2.Client, goCtx context.Context, lb *l.LogBuilder, ...) error
- func TagResource(ec2Client *ec2.Client, goCtx context.Context, lb *l.LogBuilder, ...) error
- func VerifyKeypair(ec2Client *ec2.Client, goCtx context.Context, lb *l.LogBuilder, ...) error
Constants ¶
View Source
const InitVolumeAttachmentFunc string = `` /* 1533-byte string literal not displayed */
Variables ¶
This section is empty.
Functions ¶
func AssignAwsFloatingIp ¶
func AttachVolume ¶
func CreateImageFromInstance ¶
func CreateImageFromInstance(ec2Client *ec2.Client, goCtx context.Context, tags map[string]string, lb *l.LogBuilder, imageName string, instanceId string, timeoutSeconds int) (string, error)
aws ec2 create-image --region "us-east-1" --instance-id i-03c10fd5566a08476 --name ami-i-03c10fd5566a08476 --no-reboot
func CreateInstance ¶
func CreateInstance(ec2Client *ec2.Client, goCtx context.Context, tags map[string]string, lb *l.LogBuilder, instanceTypeString string, imageId string, instName string, privateIpAddress string, securityGroupId string, rootKeyName string, subnetId string, blockDeviceMappings []types.BlockDeviceMapping, timeoutSeconds int) (string, error)
func CreateInternetGateway ¶
func CreateNatGateway ¶
func CreateNatGatewayRoute ¶
func CreateRouteTableForVpc ¶
func CreateSecurityGroup ¶
func CreateSubnet ¶
func CreateVolume ¶
func DeleteInstance ¶
func DeleteInternetGateway ¶
func DeleteNatGateway ¶
func DeleteRouteTable ¶
func DeleteSecurityGroup ¶
func DeleteSnapshot ¶
func DeleteSubnet ¶
func DeleteVolume ¶
func DeregisterImage ¶
func DetachVolume ¶
func GetImageInfoById ¶
func GetImageInfoById(ec2Client *ec2.Client, goCtx context.Context, lb *l.LogBuilder, imageId string) (types.ImageState, []types.BlockDeviceMapping, error)
func GetImageInfoByName ¶
func GetImageInfoByName(ec2Client *ec2.Client, goCtx context.Context, lb *l.LogBuilder, imageName string) (string, types.ImageState, []types.BlockDeviceMapping, error)
func GetInstanceType ¶
func GetResourcesByTag ¶
func GetRouteTableByName ¶
func GetSubnetIdByName ¶
func GetVolumeIdByName ¶
func GetVpcDefaultRouteTable ¶
func GetVpcIdByName ¶
func StopInstance ¶
func TagResource ¶
func VerifyKeypair ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.