aws

package
v1.0.4 Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2021 License: GPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

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 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, Zone string, BlueId 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) error

func (*Aws) GetAmiId

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

func (*Aws) GetBlueId added in v1.0.4

func (p *Aws) GetBlueId() (*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) 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) ListChangeQuota

func (p *Aws) ListChangeQuota(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) RebootEc2

func (p *Aws) RebootEc2(InstanceId 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
	Ip         *string
	Key        *string
}

type LsInfo

type LsInfo struct {
	Name   *string
	Ip     *string
	IpName *string
	Status *string
	Key    *string
}

Jump to

Keyboard shortcuts

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