status

package
v1.14.3 Latest Latest
Warning

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

Go to latest
Published: Jun 6, 2025 License: Apache-2.0 Imports: 5 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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