Documentation ¶
Index ¶
Constants ¶
View Source
const ( BYTE = 1 << (10 * iota) KILOBYTE MEGABYTE GIGABYTE TERABYTE )
bandwidth limit unit
View Source
const (
IfEth0 = "eth0"
)
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Kubernetes ¶ added in v1.0.10
type Kubernetes interface { GetLocalPods() ([]*types.PodInfo, error) GetPod(namespace, name string, cache bool) (*types.PodInfo, error) PodExist(namespace, name string) (bool, error) GetServiceCIDR() *types.IPNetSet GetNodeCidr() *types.IPNetSet SetNodeAllocatablePod(count int) error PatchEipInfo(info *types.PodInfo) error PatchNodeAnnotations(anno map[string]string) error PatchPodIPInfo(info *types.PodInfo, ips string) error PatchNodeIPResCondition(status corev1.ConditionStatus, reason, message string) error WaitPodENIInfo(info *types.PodInfo) (podEni *podENITypes.PodENI, err error) GetPodENIInfo(info *types.PodInfo) (podEni *podENITypes.PodENI, err error) RecordNodeEvent(eventType, reason, message string) RecordPodEvent(podName, podNamespace, eventType, reason, message string) error GetNodeDynamicConfigLabel() string GetDynamicConfigWithName(name string) (string, error) SetCustomStatefulWorkloadKinds(kinds []string) error WaitTrunkReady() (string, error) GetTrunkID() string GetClient() client.Client }
Kubernetes operation set
type ResourceManager ¶ added in v1.0.10
type ResourceManager interface { Allocate(context *networkContext, prefer string) (types.NetworkResource, error) Release(context *networkContext, resItem types.ResourceItem) error GarbageCollection(inUseResSet map[string]types.ResourceItem, expireResSet map[string]types.ResourceItem) error Stat(context *networkContext, resID string) (types.NetworkResource, error) tracing.ResourceMappingHandler }
ResourceManager Allocate/Release/Pool/Stick/GC pod resource managed pod and resource relationship
Click to show internal directories.
Click to hide internal directories.