Documentation ¶
Index ¶
- func GetVpcIDAndRegion(vpcid string, region string) (vpcidRet string, regionRet string, err error)
- type Address
- type EC2Service
- func (s *EC2Service) AllocateAddress() (allocationID string, publicIP string, err error)
- func (s *EC2Service) AssociateAddress(ip string, eni string, allocationID string) (err error)
- func (s *EC2Service) DescribeAddresses(ip string, eni string) (associationID string, allocationID string, isAllocated bool, err error)
- func (s *EC2Service) DescribeNetworkInterfaces(ip string) (eni string, err error)
- func (s *EC2Service) DescribeUsedAddresses() (addresses []Address, err error)
- func (s *EC2Service) DisassociateAddress(associationID string) (err error)
- func (s *EC2Service) ReleaseAddress(allocationID string) (err error)
- type ShiedService
- func (s *ShiedService) CreateProtection(name string, resourceARN string) (err error)
- func (s *ShiedService) DeleteProtection(protectionID string) (err error)
- func (s *ShiedService) DescribeSubscription() (account string, isSubscription bool)
- func (s *ShiedService) DiscribeProtection(resourceARN string) (protectionID string, isProtected bool)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type EC2Service ¶
func NewEC2Service ¶
func NewEC2Service(vpcid string, region string, clusterName string) (service *EC2Service, err error)
func (*EC2Service) AllocateAddress ¶
func (s *EC2Service) AllocateAddress() (allocationID string, publicIP string, err error)
func (*EC2Service) AssociateAddress ¶
func (s *EC2Service) AssociateAddress(ip string, eni string, allocationID string) (err error)
func (*EC2Service) DescribeAddresses ¶
func (*EC2Service) DescribeNetworkInterfaces ¶
func (s *EC2Service) DescribeNetworkInterfaces(ip string) (eni string, err error)
func (*EC2Service) DescribeUsedAddresses ¶ added in v1.1.1
func (s *EC2Service) DescribeUsedAddresses() (addresses []Address, err error)
func (*EC2Service) DisassociateAddress ¶
func (s *EC2Service) DisassociateAddress(associationID string) (err error)
func (*EC2Service) ReleaseAddress ¶
func (s *EC2Service) ReleaseAddress(allocationID string) (err error)
type ShiedService ¶
func NewShieldService ¶
func NewShieldService(vpcid string, region string) (service *ShiedService, err error)
func (*ShiedService) CreateProtection ¶
func (s *ShiedService) CreateProtection(name string, resourceARN string) (err error)
func (*ShiedService) DeleteProtection ¶
func (s *ShiedService) DeleteProtection(protectionID string) (err error)
func (*ShiedService) DescribeSubscription ¶
func (s *ShiedService) DescribeSubscription() (account string, isSubscription bool)
func (*ShiedService) DiscribeProtection ¶
func (s *ShiedService) DiscribeProtection(resourceARN string) (protectionID string, isProtected bool)
Click to show internal directories.
Click to hide internal directories.