Documentation ¶
Index ¶
- Variables
- func GetLocalInstanceId() (string, error)
- func GetLocalRegion() (common.Region, error)
- func GetLocalVPC() (string, error)
- func GetLocalVswitch() (string, error)
- func GetLocalZone() (string, error)
- type ClientMgr
- type ECS
- type ENIInfoGetter
- type ENIMetadata
- func (e *ENIMetadata) GetAttachedENIs(instanceId string, containsMainENI bool) ([]*types.ENI, error)
- func (e *ENIMetadata) GetENIConfigById(eniId string) (*types.ENI, error)
- func (e *ENIMetadata) GetENIConfigByMac(mac string) (*types.ENI, error)
- func (e *ENIMetadata) GetENIPrivateAddresses(eniId string) ([]net.IP, error)
- type ENIOpenAPI
- func (*ENIOpenAPI) GetAttachedENIs(instanceId string, containsMainENI bool) ([]*types.ENI, error)
- func (*ENIOpenAPI) GetENIConfigById(eniId string) (*types.ENI, error)
- func (*ENIOpenAPI) GetENIConfigByMac(mac string) (*types.ENI, error)
- func (eoa *ENIOpenAPI) GetENIPrivateAddresses(eniId string) ([]net.IP, error)
- type TokenAuth
Constants ¶
This section is empty.
Variables ¶
View Source
var KUBERNETES_ALICLOUD_IDENTITY = "Kubernetes.Alicloud"
View Source
var ROLE_NAME = "KubernetesMasterRole"
View Source
var TOKEN_RESYNC_PERIOD = 5 * time.Minute
Functions ¶
func GetLocalInstanceId ¶
func GetLocalRegion ¶
func GetLocalVPC ¶
func GetLocalVswitch ¶
func GetLocalZone ¶
Types ¶
type ClientMgr ¶
type ClientMgr struct {
// contains filtered or unexported fields
}
func NewClientMgr ¶
type ECS ¶
type ECS interface { AllocateENI(vSwitch string, securityGroup string, instanceId string) (*types.ENI, error) GetAttachedENIs(instanceId string, containsMainENI bool) ([]*types.ENI, error) GetENIById(instanceId, eniId string) (*types.ENI, error) GetENIByMac(instanceId, mac string) (*types.ENI, error) FreeENI(eniId string, instanceId string) error GetENIIPs(eniId string) ([]net.IP, error) AssignIPForENI(eniId string) (net.IP, error) UnAssignIPForENI(eniid string, ip net.IP) error GetInstanceMaxENI(instanceId string) (int, error) GetInstanceMaxPrivateIP(intanceId string) (int, error) GetENIMaxIP(instanceId string, eniId string) (int, error) }
type ENIInfoGetter ¶
type ENIMetadata ¶
type ENIMetadata struct { }
func (*ENIMetadata) GetAttachedENIs ¶
func (*ENIMetadata) GetENIConfigById ¶
func (e *ENIMetadata) GetENIConfigById(eniId string) (*types.ENI, error)
func (*ENIMetadata) GetENIConfigByMac ¶
func (e *ENIMetadata) GetENIConfigByMac(mac string) (*types.ENI, error)
func (*ENIMetadata) GetENIPrivateAddresses ¶
func (e *ENIMetadata) GetENIPrivateAddresses(eniId string) ([]net.IP, error)
type ENIOpenAPI ¶
type ENIOpenAPI struct {
// contains filtered or unexported fields
}
func (*ENIOpenAPI) GetAttachedENIs ¶
func (*ENIOpenAPI) GetENIConfigById ¶
func (*ENIOpenAPI) GetENIConfigById(eniId string) (*types.ENI, error)
func (*ENIOpenAPI) GetENIConfigByMac ¶
func (*ENIOpenAPI) GetENIConfigByMac(mac string) (*types.ENI, error)
func (*ENIOpenAPI) GetENIPrivateAddresses ¶
func (eoa *ENIOpenAPI) GetENIPrivateAddresses(eniId string) ([]net.IP, error)
Click to show internal directories.
Click to hide internal directories.