Documentation
¶
Index ¶
Constants ¶
View Source
const ( BYTE = 1 << (10 * iota) KILOBYTE MEGABYTE GIGABYTE TERABYTE )
bandwidth limit unit
View Source
const (
ConditionFalse = "false"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Kubernetes ¶
type Kubernetes interface {
GetLocalPods() ([]*daemon.PodInfo, error)
GetPod(ctx context.Context, namespace, name string, cache bool) (*daemon.PodInfo, error)
PodExist(namespace, name string) (bool, error)
GetServiceCIDR() *types.IPNetSet
GetNodeCidr() *types.IPNetSet
SetNodeAllocatablePod(count int) error
PatchNodeAnnotations(anno map[string]string) error
PatchPodIPInfo(info *daemon.PodInfo, ips string) error
PatchNodeIPResCondition(status corev1.ConditionStatus, reason, message string) error
RecordNodeEvent(eventType, reason, message string)
RecordPodEvent(podName, podNamespace, eventType, reason, message string) error
GetNodeDynamicConfigLabel() string
GetDynamicConfigWithName(ctx context.Context, name string) (string, error)
SetCustomStatefulWorkloadKinds(kinds []string) error
WaitTrunkReady() (string, error)
GetTrunkID() string
GetClient() client.Client
}
Kubernetes operation set
Click to show internal directories.
Click to hide internal directories.