Documentation ¶
Index ¶
- func Delete(ctx context.Context, isClient bool)
- func Load(ctx context.Context, isClient bool) (value netlink.Link, ok bool)
- func LoadAndDelete(ctx context.Context, isClient bool) (value netlink.Link, ok bool)
- func LoadOrStore(ctx context.Context, isClient bool, link netlink.Link) (value netlink.Link, ok bool)
- func Store(ctx context.Context, isClient bool, link netlink.Link)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Load ¶
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 ¶
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.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.