package socketmask
import "k8s.io/kubernetes/pkg/kubelet/cm/topologymanager/socketmask"
Index ¶
Types ¶
type SocketMask ¶
type SocketMask interface { Add(sockets ...int) error Remove(sockets ...int) error And(masks ...SocketMask) Or(masks ...SocketMask) Clear() Fill() 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 ¶
func NewSocketMask(sockets ...int) (SocketMask, error)
NewSocketMask creates a new SocketMask
Source Files ¶
socketmask.go
- Version
- v1.15.8
- Published
- Jan 11, 2020
- Platform
- js/wasm
- Imports
- 1 packages
- Last checked
- 1 minute ago –
Tools for package owners.