aws

package
v0.3.6 Latest Latest
Warning

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

Go to latest
Published: Jul 1, 2022 License: GPL-3.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckNameNil

func CheckNameNil(v []*ec2.Tag) *string

Types

type AgaInfo

type AgaInfo struct {
	Name     *string
	Status   *string
	Arn      string
	Ip       []*aga.IpSet
	Protocol *string
	Port     []*aga.PortOverride
}

type Aws

type Aws struct {
	Sess *session.Session
}

func New

func New(Region string, Id string, Secret string, Proxy string) (*Aws, error)

func (*Aws) ChangeEc2Ip

func (p *Aws) ChangeEc2Ip(InstanceId string) (*string, error)

func (*Aws) ChangeLsIp

func (p *Aws) ChangeLsIp(Name, Zone string) error

func (*Aws) ChangeQuota

func (p *Aws) ChangeQuota(ServiceCode string, QuotaCode string, DesiredValue float64) error

func (*Aws) CreateAga

func (p *Aws) CreateAga(Name string, Region string, InstanceId string) (*AgaInfo, error)

func (*Aws) CreateEc2

func (p *Aws) CreateEc2(Ami string, Ec2Type string, Name string, DiskSize int64) (*Ec2Info, error)

func (*Aws) CreateEc2Wl

func (p *Aws) CreateEc2Wl(SubId string, Ami string, Name string, DiskSize int64) (*Ec2Info, error)

func (*Aws) CreateLs

func (p *Aws) CreateLs(Name string, AvailabilityZone string, BlueprintId string, BundleId string) (*LsInfo, error)

func (*Aws) CreateWl

func (p *Aws) CreateWl(Zone string) (string, error)

func (*Aws) DeleteAga

func (p *Aws) DeleteAga(AcceleratorArn string) error

func (*Aws) DeleteEc2

func (p *Aws) DeleteEc2(InstanceId string) error

func (*Aws) DeleteLs

func (p *Aws) DeleteLs(Name string, SourceName string) error

func (*Aws) GetAmiId

func (p *Aws) GetAmiId(AmiName string) (string, error)

func (*Aws) GetBlueprintId

func (p *Aws) GetBlueprintId() (*lightsail.GetBlueprintsOutput, error)

func (*Aws) GetEc2Info

func (p *Aws) GetEc2Info(InstanceId string) (*Ec2Info, error)

func (*Aws) GetLsInfo

func (p *Aws) GetLsInfo(Name string) (*LsInfo, error)

func (*Aws) GetQuota

func (p *Aws) GetQuota(ServiceCode string, QuotaCode string) (*quota.ServiceQuota, error)

func (*Aws) GetRegions

func (p *Aws) GetRegions() ([]*lightsail.Region, error)

func (Aws) GetSubnetInfo

func (p Aws) GetSubnetInfo() (*ec2.DescribeSubnetsOutput, error)

func (*Aws) GetWindowsPassword

func (p *Aws) GetWindowsPassword(InstanceId string) (*ec2.GetPasswordDataOutput, error)

func (*Aws) ListAga

func (p *Aws) ListAga() ([]*aga.Accelerator, error)

func (*Aws) ListChangeQuotaRequest

func (p *Aws) ListChangeQuotaRequest(ServiceCode string, QuotaCode string) ([]*quota.RequestedServiceQuotaChange, error)

func (*Aws) ListEc2

func (p *Aws) ListEc2() ([]*ec2.Reservation, error)

func (*Aws) ListLs

func (p *Aws) ListLs() ([]*lightsail.Instance, error)

func (*Aws) OpenLsPorts

func (p *Aws) OpenLsPorts(Name string) error

func (*Aws) RebootEc2

func (p *Aws) RebootEc2(InstanceId string) error

func (*Aws) RebootLs

func (p *Aws) RebootLs(Name string) error

func (*Aws) StartEc2

func (p *Aws) StartEc2(InstanceId string) error

func (*Aws) StartLs

func (p *Aws) StartLs(Name string) error

func (*Aws) StopEc2

func (p *Aws) StopEc2(InstanceId string) error

func (*Aws) StopLs

func (p *Aws) StopLs(Name string) error

type Ec2Info

type Ec2Info struct {
	Name       *string
	InstanceId *string
	Status     *string
	Type       *string
	Ip         *string
	Key        *string
}

type LsInfo

type LsInfo struct {
	Name       *string
	Ip         *string
	SourceName *string
	Type       *string
	Status     *string
	Key        *string
}

Jump to

Keyboard shortcuts

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