Documentation ¶
Overview ¶
Package peer provides networkservice.NetworkService{Client,Server} chain elements for wireguard peer creating
Index ¶
- func Delete(ctx context.Context, isClient bool, key string)
- func Load(ctx context.Context, isClient bool, key string) (value uint32, ok bool)
- func LoadAndDelete(ctx context.Context, isClient bool, key string) (value uint32, ok bool)
- func LoadOrStore(ctx context.Context, isClient bool, key string, peerIdx uint32) (value uint32, ok bool)
- func NewClient(vppConn api.Connection) networkservice.NetworkServiceClient
- func NewServer(vppConn api.Connection) networkservice.NetworkServiceServer
- func Store(ctx context.Context, isClient bool, key string, peerIdx uint32)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Delete ¶
Delete deletes the bool indicating that the chain element should wait for the swIfIndex to be up, stored in per Connection.Id metadata
func Load ¶
Load returns the bool indicating that the chain element should wait for the swIfIndex to be up, 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 bool indicating that the chain element should wait for the swIfIndex to be up, 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, key string, peerIdx uint32) (value uint32, ok bool)
LoadOrStore returns the existing bool indicating that the chain element should wait for the swIfIndex to be up, 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 NewClient ¶
func NewClient(vppConn api.Connection) networkservice.NetworkServiceClient
NewClient - creates peer for the wireguard remote mechanism
func NewServer ¶
func NewServer(vppConn api.Connection) networkservice.NetworkServiceServer
NewServer - creates peer for the wireguard remote mechanism
Types ¶
This section is empty.