Documentation ¶
Index ¶
Constants ¶
View Source
const ( // PatchAdd specifies an add operation. PatchAdd string = "add" // PatchRemove specifies an remove operation. PatchRemove string = "remove" // PatchReplace specifies an replace operation. PatchReplace string = "replace" )
View Source
const (
SocketDisabled = "disabled"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Interface ¶
type Interface interface { IsDisabled() bool GetNode(time.Duration) (core_v1.Node, error) PatchNode([]*agent_v1.JsonPatch, time.Duration) error UpdateNodeCapacity(map[string]string, time.Duration) error GetLabels(time.Duration) (map[string]string, error) SetLabels(map[string]string, time.Duration) error RemoveLabels([]string, time.Duration) error GetAnnotations(time.Duration) (map[string]string, error) SetAnnotations(map[string]string, time.Duration) error RemoveAnnotations([]string, time.Duration) error GetTaints(time.Duration) ([]core_v1.Taint, error) SetTaints([]core_v1.Taint, time.Duration) error RemoveTaints([]core_v1.Taint, time.Duration) error FindTaintIndex([]core_v1.Taint, *core_v1.Taint) (int, bool) }
Interface describe interfaces of cri-resource-manager agent
func NewAgentInterface ¶
NewAgentInterface connects to cri-resource-manager-agent gRPC server and return a new Interface
Click to show internal directories.
Click to hide internal directories.