Documentation ¶
Index ¶
- Constants
- Variables
- func AlibabaCloudEcsPlatformReadMetaVal(api string, token string) (val string, err error)
- func AlibabaCloudEcsPlatformRequest(api string, method string, f func(header *http.Header)) (string, error)
- type Data
- type ECSManager
- func (m *ECSManager) GetInstanceID() string
- func (m *ECSManager) GetInstanceImageID() string
- func (m *ECSManager) GetInstanceMaxNetEgress() int64
- func (m *ECSManager) GetInstanceMaxNetIngress() int64
- func (m *ECSManager) GetInstanceName() string
- func (m *ECSManager) GetInstanceRegion() string
- func (m *ECSManager) GetInstanceTags() map[string]string
- func (m *ECSManager) GetInstanceType() string
- func (m *ECSManager) GetInstanceVpcID() string
- func (m *ECSManager) GetInstanceVswitchID() string
- func (m *ECSManager) GetInstanceZone() string
- func (m *ECSManager) Ping() bool
- func (m *ECSManager) StartCollect()
- type Manager
- type MetaType
- type MockManager
- func (m *MockManager) GetInstanceID() string
- func (m *MockManager) GetInstanceImageID() string
- func (m *MockManager) GetInstanceMaxNetEgress() int64
- func (m *MockManager) GetInstanceMaxNetIngress() int64
- func (m *MockManager) GetInstanceName() string
- func (m *MockManager) GetInstanceRegion() string
- func (m *MockManager) GetInstanceTags() map[string]string
- func (m *MockManager) GetInstanceType() string
- func (m *MockManager) GetInstanceVpcID() string
- func (m *MockManager) GetInstanceVswitchID() string
- func (m *MockManager) GetInstanceZone() string
- func (m *MockManager) Ping() bool
- func (m *MockManager) StartCollect()
- type Platform
Constants ¶
View Source
const ( FlagInstanceID = "__cloud_instance_id__" FlagInstanceName = "__cloud_instance_name__" FlagInstanceRegion = "__cloud_region__" FlagInstanceZone = "__cloud_zone__" FlagInstanceVpcID = "__cloud_vpc_id__" FlagInstanceVswitchID = "__cloud_vswitch_id__" FlagInstanceTags = "__cloud_instance_tags__" FlagInstanceType = "__cloud_instance_type__" FlagInstanceImageID = "__cloud_image_id__" FlagInstanceMaxIngress = "__cloud_max_ingress__" FlagInstanceMaxEgress = "__cloud_max_egress__" FlagInstanceNameWrapper = "{{" + FlagInstanceName + "}}" FlagInstanceVpcIDWrapper = "{{" + FlagInstanceVpcID + "}}" FlagInstanceVswitchIDWrapper = "{{" + FlagInstanceVswitchID + "}}" FlagInstanceMaxIngressWrapper = "{{" + FlagInstanceMaxIngress + "}}" FlagInstanceMaxEgressWrapper = "{{" + FlagInstanceMaxEgress + "}}" )
Variables ¶
View Source
var MockManagerNum int64
Functions ¶
Types ¶
type ECSManager ¶
type ECSManager struct {
// contains filtered or unexported fields
}
func (*ECSManager) GetInstanceID ¶
func (m *ECSManager) GetInstanceID() string
func (*ECSManager) GetInstanceImageID ¶
func (m *ECSManager) GetInstanceImageID() string
func (*ECSManager) GetInstanceMaxNetEgress ¶
func (m *ECSManager) GetInstanceMaxNetEgress() int64
func (*ECSManager) GetInstanceMaxNetIngress ¶
func (m *ECSManager) GetInstanceMaxNetIngress() int64
func (*ECSManager) GetInstanceName ¶
func (m *ECSManager) GetInstanceName() string
func (*ECSManager) GetInstanceRegion ¶
func (m *ECSManager) GetInstanceRegion() string
func (*ECSManager) GetInstanceTags ¶
func (m *ECSManager) GetInstanceTags() map[string]string
func (*ECSManager) GetInstanceType ¶
func (m *ECSManager) GetInstanceType() string
func (*ECSManager) GetInstanceVpcID ¶
func (m *ECSManager) GetInstanceVpcID() string
func (*ECSManager) GetInstanceVswitchID ¶
func (m *ECSManager) GetInstanceVswitchID() string
func (*ECSManager) GetInstanceZone ¶
func (m *ECSManager) GetInstanceZone() string
func (*ECSManager) Ping ¶
func (m *ECSManager) Ping() bool
func (*ECSManager) StartCollect ¶
func (m *ECSManager) StartCollect()
type Manager ¶
type Manager interface { StartCollect() GetInstanceID() string GetInstanceImageID() string GetInstanceType() string GetInstanceRegion() string GetInstanceZone() string GetInstanceName() string GetInstanceVpcID() string GetInstanceVswitchID() string GetInstanceMaxNetEgress() int64 GetInstanceMaxNetIngress() int64 GetInstanceTags() map[string]string Ping() bool }
func GetManager ¶
type MockManager ¶
type MockManager struct { }
func (*MockManager) GetInstanceID ¶
func (m *MockManager) GetInstanceID() string
func (*MockManager) GetInstanceImageID ¶
func (m *MockManager) GetInstanceImageID() string
func (*MockManager) GetInstanceMaxNetEgress ¶
func (m *MockManager) GetInstanceMaxNetEgress() int64
func (*MockManager) GetInstanceMaxNetIngress ¶
func (m *MockManager) GetInstanceMaxNetIngress() int64
func (*MockManager) GetInstanceName ¶
func (m *MockManager) GetInstanceName() string
func (*MockManager) GetInstanceRegion ¶
func (m *MockManager) GetInstanceRegion() string
func (*MockManager) GetInstanceTags ¶
func (m *MockManager) GetInstanceTags() map[string]string
func (*MockManager) GetInstanceType ¶
func (m *MockManager) GetInstanceType() string
func (*MockManager) GetInstanceVpcID ¶
func (m *MockManager) GetInstanceVpcID() string
func (*MockManager) GetInstanceVswitchID ¶
func (m *MockManager) GetInstanceVswitchID() string
func (*MockManager) GetInstanceZone ¶
func (m *MockManager) GetInstanceZone() string
func (*MockManager) Ping ¶
func (m *MockManager) Ping() bool
func (*MockManager) StartCollect ¶
func (m *MockManager) StartCollect()
Click to show internal directories.
Click to hide internal directories.