kubernetes: k8s.io/kubernetes/pkg/kubelet/cm/topologymanager/socketmask Index | Files

package socketmask

import "k8s.io/kubernetes/pkg/kubelet/cm/topologymanager/socketmask"


Package Files


type SocketMask Uses

type SocketMask interface {
    Add(sockets ...int) error
    Remove(sockets ...int) error
    And(masks ...SocketMask)
    Or(masks ...SocketMask)
    IsEqual(mask SocketMask) bool
    IsEmpty() bool
    IsSet(socket int) bool
    IsNarrowerThan(mask SocketMask) bool
    String() string
    Count() int
    GetSockets() []int

SocketMask interface allows hint providers to create SocketMasks for TopologyHints

func NewSocketMask Uses

func NewSocketMask(sockets ...int) (SocketMask, error)

NewSocketMask creates a new SocketMask

Package socketmask imports 1 packages (graph) and is imported by 6 packages. Updated 2019-06-03. Refresh now. Tools for package owners.