Documentation ¶
Index ¶
- Constants
- func ReleaseResourceEvent(event *ResourceEvent)
- type ResourceEvent
- type TagFieldOption
- func TagAZID(id int) TagFieldOption
- func TagDescription(description string) TagFieldOption
- func TagHostID(id int) TagFieldOption
- func TagIPs(ips []string) TagFieldOption
- func TagL3DeviceID(id int) TagFieldOption
- func TagL3DeviceType(id int) TagFieldOption
- func TagPodClusterID(id int) TagFieldOption
- func TagPodGroupID(id int) TagFieldOption
- func TagPodID(id int) TagFieldOption
- func TagPodNSID(id int) TagFieldOption
- func TagPodNodeID(id int) TagFieldOption
- func TagPodServiceID(id int) TagFieldOption
- func TagRegionID(id int) TagFieldOption
- func TagSubnetIDs(netIDs []uint32) TagFieldOption
- func TagVPCID(id int) TagFieldOption
Constants ¶
View Source
const ( RESOURCE_EVENT_TYPE_CREATE = "create" RESOURCE_EVENT_TYPE_DELETE = "delete" RESOURCE_EVENT_TYPE_UPDATE_STATE = "update-state" RESOURCE_EVENT_TYPE_MIGRATE = "migrate" RESOURCE_EVENT_TYPE_RECREATE = "recreate" RESOURCE_EVENT_TYPE_ADD_IP = "add-ip" RESOURCE_EVENT_TYPE_REMOVE_IP = "remove-ip" )
Variables ¶
This section is empty.
Functions ¶
func ReleaseResourceEvent ¶
func ReleaseResourceEvent(event *ResourceEvent)
Types ¶
type ResourceEvent ¶
type ResourceEvent struct { Time int64 TimeMilli int64 // record millisecond time for debug Type string InstanceType uint32 // the value is the same as l3_device_type InstanceID uint32 InstanceName string SubnetIDs []uint32 IPs []string Description string GProcessID uint32 // if this value is set, InstanceType and InstanceID are empty GProcessName string // if this value is set, InstanceName is empty IfNeedTagged bool // if need ingester set tag RegionID uint32 AZID uint32 VPCID uint32 L3DeviceType uint32 L3DeviceID uint32 HostID uint32 PodClusterID uint32 PodNSID uint32 PodNodeID uint32 PodServiceID uint32 PodGroupID uint32 PodID uint32 }
func AcquireResourceEvent ¶
func AcquireResourceEvent() *ResourceEvent
func (*ResourceEvent) Release ¶
func (r *ResourceEvent) Release()
type TagFieldOption ¶
type TagFieldOption func(opts *ResourceEvent)
func TagAZID ¶
func TagAZID(id int) TagFieldOption
func TagDescription ¶
func TagDescription(description string) TagFieldOption
func TagHostID ¶
func TagHostID(id int) TagFieldOption
func TagIPs ¶
func TagIPs(ips []string) TagFieldOption
func TagL3DeviceID ¶
func TagL3DeviceID(id int) TagFieldOption
func TagL3DeviceType ¶
func TagL3DeviceType(id int) TagFieldOption
func TagPodClusterID ¶
func TagPodClusterID(id int) TagFieldOption
func TagPodGroupID ¶
func TagPodGroupID(id int) TagFieldOption
func TagPodID ¶
func TagPodID(id int) TagFieldOption
func TagPodNSID ¶
func TagPodNSID(id int) TagFieldOption
func TagPodNodeID ¶
func TagPodNodeID(id int) TagFieldOption
func TagPodServiceID ¶
func TagPodServiceID(id int) TagFieldOption
func TagRegionID ¶
func TagRegionID(id int) TagFieldOption
func TagSubnetIDs ¶
func TagSubnetIDs(netIDs []uint32) TagFieldOption
func TagVPCID ¶
func TagVPCID(id int) TagFieldOption
Click to show internal directories.
Click to hide internal directories.