link

package
v1.0.9 Latest Latest
Warning

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

Go to latest
Published: Sep 17, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Delete

func Delete(ctx context.Context, isClient bool)

Delete deletes the netlink.Link stored in per Connection.Id metadata

func Load

func Load(ctx context.Context, isClient bool) (value netlink.Link, ok bool)

Load returns the netlink.Link stored in per Connection.Id metadata, or nil if no value is present. The ok result indicates whether value was found in the per Connection.Id metadata.

func LoadAndDelete

func LoadAndDelete(ctx context.Context, isClient bool) (value netlink.Link, ok bool)

LoadAndDelete deletes the netlink.Link stored in per Connection.Id metadata, returning the previous value if any. The loaded result reports whether the key was present.

func LoadOrStore

func LoadOrStore(ctx context.Context, isClient bool, link netlink.Link) (value netlink.Link, ok bool)

LoadOrStore returns the existing netlink.Link stored in per Connection.Id metadata if present. Otherwise, it stores and returns the given nterface_types.InterfaceIndex. The loaded result is true if the value was loaded, false if stored.

func Store

func Store(ctx context.Context, isClient bool, link netlink.Link)

Store sets the netlink.Link stored in per Connection.Id metadata.

Types

This section is empty.

Jump to

Keyboard shortcuts

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