package socketmask
import "k8s.io/kubernetes/pkg/kubelet/cm/topologymanager/socketmask"
Index ¶
Functions ¶
func IterateSocketMasks ¶
func IterateSocketMasks(sockets []int, callback func(SocketMask))
IterateSocketMasks iterates all possible masks from a list of sockets, issuing a callback on each mask.
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 And ¶
func And(first SocketMask, masks ...SocketMask) SocketMask
And is a package level implementation of 'and' between first and masks
func NewEmptySocketMask ¶
func NewEmptySocketMask() SocketMask
NewEmptySocketMask creates a new, empty SocketMask
func NewSocketMask ¶
func NewSocketMask(sockets ...int) (SocketMask, error)
NewSocketMask creates a new SocketMask
func Or ¶
func Or(first SocketMask, masks ...SocketMask) SocketMask
Or is a package level implementation of 'or' between first and masks
Source Files ¶
socketmask.go
- Version
- v1.16.9
- Published
- Apr 16, 2020
- Platform
- js/wasm
- Imports
- 2 packages
- Last checked
- 3 minutes ago –
Tools for package owners.