Documentation ¶
Index ¶
Constants ¶
View Source
const ( EventConfigMapUpdateFailed = "ConfigMapUpdateFailed" EventUpdateSubnetFailed = "UpdateSubnetFailed" EventUpdateSecurityGroupFailed = "UpdateSecurityGroupFailed" EventNoAvailableSubnet = "NoAvailableSubnet" EventSubnetAvailableIPBelowThreshold = "SubnetAvailableIPBelowThreshold" EventVpcResourceQuotaExceeded = "VpcResourceQuotaExceeded" EventOpenApiFlowLimit = "OpenApiFlowLimit" EventInsufficientIpInSubnet = "InsufficientIpInSubnet" EventGetInstanceQuotaFailed = "GetInstanceQuotaFailed" EventInstanceQuotaUpdated = "InstanceQuotaUpdated" EventMetadataServiceAbnormal = "MetadataServiceAbnormal" EventCredentialServiceAbnormal = "CredentialServiceAbnormal" EventAllocateResourceFailed = "AllocateResourceFailed" EventReleaseResourceFailed = "ReleaseResourceFailed" )
Variables ¶
This section is empty.
Functions ¶
func RecordNodeEvent ¶
RecordNodeEvent records node event via PodEventRecorder.
func RecordPodEvent ¶
RecordPodEvent records pod event via PodEventRecorder.
func RegisterEventRecorder ¶
func RegisterEventRecorder(node NodeEventRecorder, pod PodEventRecorder)
RegisterEventRecorder registers pod & node event recorder to a tracer.
Types ¶
type NodeEventRecorder ¶
type NodeEventRecorder func(eventType, reason, message string)
NodeEventRecorder records event on node.
type PodEventRecorder ¶
PodEventRecorder records event on pod.
type Tracer ¶
type Tracer struct {
// contains filtered or unexported fields
}
Tracer manages tracing handlers registered from the system.
func DefaultGlobalTracer ¶
func DefaultGlobalTracer() *Tracer
func (*Tracer) RecordNodeEvent ¶
RecordNodeEvent records node event via PodEventRecorder.
func (*Tracer) RecordPodEvent ¶
RecordPodEvent records pod event via PodEventRecorder.
func (*Tracer) RegisterEventRecorder ¶
func (t *Tracer) RegisterEventRecorder(node NodeEventRecorder, pod PodEventRecorder)
RegisterEventRecorder registers pod & node event recorder to a tracer.
Click to show internal directories.
Click to hide internal directories.