Documentation ¶
Index ¶
- Constants
- Variables
- type CloudManager
- func (m *CloudManager) GetACLFromID(id string) (*slb.DescribeAccessControlListAttributeResponseBody, error)
- func (m *CloudManager) GetCIDRsFromVPC(id string) ([]*net.IPNet, error)
- func (m *CloudManager) GetECSInfo(id string) (*ECSInfo, error)
- func (m *CloudManager) GetENIInfoFromID(networkInterfaceID string) (*ENIInfo, error)
- func (m *CloudManager) GetENIInfoFromVPCAndPrivateIP(vpcID, privateIP string) (...)
- func (m *CloudManager) GetNatGatewayInfo(id string) (*vpc.DescribeNatGatewaysResponseBodyNatGatewaysNatGateway, error)
- func (m *CloudManager) GetRouteEntryFromVswitch(id string) ([]*vpc.DescribeRouteEntryListResponseBodyRouteEntrysRouteEntry, error)
- func (m *CloudManager) GetRouteTableEntries(routeTableID string) ([]*vpc.DescribeRouteEntryListResponseBodyRouteEntrysRouteEntry, error)
- func (m *CloudManager) GetSLBFromID(id string) (*slb.DescribeLoadBalancersResponseBodyLoadBalancersLoadBalancer, error)
- func (m *CloudManager) GetSLBFromPrivateIP(ip string) (*slb.DescribeLoadBalancersResponseBodyLoadBalancersLoadBalancer, error)
- func (m *CloudManager) GetSLBFromPublicIP(ip string) (*slb.DescribeLoadBalancersResponseBodyLoadBalancersLoadBalancer, error)
- func (m *CloudManager) GetSLBHealthStatus(id string, port int32, protocol string) ([]*slb.DescribeHealthStatusResponseBodyBackendServersBackendServer, error)
- func (m *CloudManager) GetSLBListener(id string, port int32, protocol string) (*Listener, error)
- func (m *CloudManager) GetSLBVserverGroup(id string) (*slb.DescribeVServerGroupAttributeResponseBody, error)
- func (m *CloudManager) GetSNATEntriesBySegment(snatTableID string, segment string) ([]*vpc.DescribeSnatTableEntriesResponseBodySnatTableEntriesSnatTableEntry, ...)
- func (m *CloudManager) GetSecurityGroupRule(id string) (SecurityGroupRule, error)
- func (m *CloudManager) GetVPCDefaultRouteEntry(vpcID string) ([]*vpc.DescribeRouteEntryListResponseBodyRouteEntrysRouteEntry, error)
- func (m *CloudManager) GetVPCDefaultRouteTableID(id string) (string, error)
- func (m *CloudManager) GetVSwitch(id string) (*vpc.DescribeVSwitchesResponseBodyVSwitchesVSwitch, error)
- func (m *CloudManager) GetVSwitchFromID(id string) (*vpc.DescribeVSwitchesResponseBodyVSwitchesVSwitch, error)
- func (m *CloudManager) VPC() string
- func (m *CloudManager) VPCCIDRs() []*net.IPNet
- type CloudManagerOptions
- type ECSInfo
- type ECSNetwork
- type ENIInfo
- type Listener
- type ProviderConfig
- type SecurityGroupPolicy
- type SecurityGroupRule
- type SecurityGroupRules
- type SecurityGroupType
Constants ¶
View Source
const ( SecurityGroupTypeEnterprise SecurityGroupType = "enterprise" SecurityGroupTypeNormal SecurityGroupType = "normal" SecurityGroupPolicyAccept SecurityGroupPolicy = "accept" SecurityGroupPolicyDrop SecurityGroupPolicy = "drop" )
Variables ¶
View Source
var Config = &ProviderConfig{}
Functions ¶
This section is empty.
Types ¶
type CloudManager ¶
type CloudManager struct {
// contains filtered or unexported fields
}
func NewCloudManager ¶
func NewCloudManager(options *CloudManagerOptions) (*CloudManager, error)
func (*CloudManager) GetACLFromID ¶
func (m *CloudManager) GetACLFromID(id string) (*slb.DescribeAccessControlListAttributeResponseBody, error)
func (*CloudManager) GetCIDRsFromVPC ¶
func (m *CloudManager) GetCIDRsFromVPC(id string) ([]*net.IPNet, error)
func (*CloudManager) GetECSInfo ¶
func (m *CloudManager) GetECSInfo(id string) (*ECSInfo, error)
func (*CloudManager) GetENIInfoFromID ¶
func (m *CloudManager) GetENIInfoFromID(networkInterfaceID string) (*ENIInfo, error)
func (*CloudManager) GetENIInfoFromVPCAndPrivateIP ¶
func (m *CloudManager) GetENIInfoFromVPCAndPrivateIP(vpcID, privateIP string) (*ecs.DescribeNetworkInterfacesResponseBodyNetworkInterfaceSetsNetworkInterfaceSet, error)
func (*CloudManager) GetNatGatewayInfo ¶
func (m *CloudManager) GetNatGatewayInfo(id string) (*vpc.DescribeNatGatewaysResponseBodyNatGatewaysNatGateway, error)
func (*CloudManager) GetRouteEntryFromVswitch ¶
func (m *CloudManager) GetRouteEntryFromVswitch(id string) ([]*vpc.DescribeRouteEntryListResponseBodyRouteEntrysRouteEntry, error)
func (*CloudManager) GetRouteTableEntries ¶
func (m *CloudManager) GetRouteTableEntries(routeTableID string) ([]*vpc.DescribeRouteEntryListResponseBodyRouteEntrysRouteEntry, error)
func (*CloudManager) GetSLBFromID ¶
func (m *CloudManager) GetSLBFromID(id string) (*slb.DescribeLoadBalancersResponseBodyLoadBalancersLoadBalancer, error)
func (*CloudManager) GetSLBFromPrivateIP ¶
func (m *CloudManager) GetSLBFromPrivateIP(ip string) (*slb.DescribeLoadBalancersResponseBodyLoadBalancersLoadBalancer, error)
func (*CloudManager) GetSLBFromPublicIP ¶
func (m *CloudManager) GetSLBFromPublicIP(ip string) (*slb.DescribeLoadBalancersResponseBodyLoadBalancersLoadBalancer, error)
func (*CloudManager) GetSLBHealthStatus ¶
func (m *CloudManager) GetSLBHealthStatus(id string, port int32, protocol string) ([]*slb.DescribeHealthStatusResponseBodyBackendServersBackendServer, error)
func (*CloudManager) GetSLBListener ¶
func (*CloudManager) GetSLBVserverGroup ¶
func (m *CloudManager) GetSLBVserverGroup(id string) (*slb.DescribeVServerGroupAttributeResponseBody, error)
func (*CloudManager) GetSNATEntriesBySegment ¶
func (m *CloudManager) GetSNATEntriesBySegment(snatTableID string, segment string) ([]*vpc.DescribeSnatTableEntriesResponseBodySnatTableEntriesSnatTableEntry, error)
func (*CloudManager) GetSecurityGroupRule ¶
func (m *CloudManager) GetSecurityGroupRule(id string) (SecurityGroupRule, error)
func (*CloudManager) GetVPCDefaultRouteEntry ¶
func (m *CloudManager) GetVPCDefaultRouteEntry(vpcID string) ([]*vpc.DescribeRouteEntryListResponseBodyRouteEntrysRouteEntry, error)
func (*CloudManager) GetVPCDefaultRouteTableID ¶
func (m *CloudManager) GetVPCDefaultRouteTableID(id string) (string, error)
func (*CloudManager) GetVSwitch ¶
func (m *CloudManager) GetVSwitch(id string) (*vpc.DescribeVSwitchesResponseBodyVSwitchesVSwitch, error)
func (*CloudManager) GetVSwitchFromID ¶
func (m *CloudManager) GetVSwitchFromID(id string) (*vpc.DescribeVSwitchesResponseBodyVSwitchesVSwitch, error)
func (*CloudManager) VPC ¶
func (m *CloudManager) VPC() string
func (*CloudManager) VPCCIDRs ¶
func (m *CloudManager) VPCCIDRs() []*net.IPNet
type CloudManagerOptions ¶
type ECSInfo ¶
type ECSInfo struct { ID string Status string Network ECSNetwork }
type ECSNetwork ¶
type ECSNetwork struct { IP []string VSwitchID string VpcID string SecurityGroups map[string]SecurityGroupRule RouteTableEntries []*vpc.DescribeRouteEntryListResponseBodyRouteEntrysRouteEntry VpcDefaultRouteTableEntries []*vpc.DescribeRouteEntryListResponseBodyRouteEntrysRouteEntry NetworkInterfaces []*ENIInfo EIPAddress string }
type ENIInfo ¶
type ENIInfo struct { NetworkInterfaceSet *ecs.DescribeNetworkInterfacesResponseBodyNetworkInterfaceSetsNetworkInterfaceSet SecurityGroups map[string]SecurityGroupRule }
type Listener ¶
type Listener struct { TCP *slb.DescribeLoadBalancerTCPListenerAttributeResponseBody UDP *slb.DescribeLoadBalancerUDPListenerAttributeResponseBody }
type ProviderConfig ¶
func (*ProviderConfig) BindFlags ¶
func (pc *ProviderConfig) BindFlags(fs *pflag.FlagSet)
func (*ProviderConfig) Validate ¶
func (pc *ProviderConfig) Validate() error
type SecurityGroupPolicy ¶
type SecurityGroupPolicy string
type SecurityGroupRule ¶
type SecurityGroupRule struct { ID string Type SecurityGroupType InRule SecurityGroupRules OutRule SecurityGroupRules }
type SecurityGroupRules ¶
type SecurityGroupRules struct { Allows []*ecs.DescribeSecurityGroupAttributeResponseBodyPermissionsPermission Drops []*ecs.DescribeSecurityGroupAttributeResponseBodyPermissionsPermission }
type SecurityGroupType ¶
type SecurityGroupType string
Click to show internal directories.
Click to hide internal directories.