status

package
v1.15.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 16, 2025 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MetaCtx

func MetaCtx[T any](ctx context.Context) (*T, bool)

func WithMeta

func WithMeta[T any](ctx context.Context, meta *T) context.Context

Types

type Cache

type Cache[T any] struct {
	// contains filtered or unexported fields
}

func NewCache

func NewCache[T any]() *Cache[T]

NewCache creates a new Cache instance.

func (*Cache[T]) Delete

func (c *Cache[T]) Delete(key string)

Delete removes the value associated with the given key.

func (*Cache[T]) Get

func (c *Cache[T]) Get(key string) (*T, bool)

Get retrieves the value associated with the given key.

func (*Cache[T]) LoadOrStore

func (c *Cache[T]) LoadOrStore(key string, value *T) (*T, bool)

LoadOrStore stores the value associated with the given key.

type Card

type Card struct {
	CardIndex         int
	NetworkInterfaces sets.Set[NetworkInterfaceID]
}

type NetworkInterfaceID

type NetworkInterfaceID string

type NodeStatus

type NodeStatus struct {
	NetworkCards []*Card
	// contains filtered or unexported fields
}

func NewNodeStatus

func NewNodeStatus(cardCount int) *NodeStatus

func (*NodeStatus) DetachNetworkIndex

func (n *NodeStatus) DetachNetworkIndex(eniID string)

func (*NodeStatus) RequestNetworkIndex

func (n *NodeStatus) RequestNetworkIndex(eniID string, preferIndex *int, numa *int) *int

RequestNetworkIndex prefer use negative for auto allocate

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL