tap

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Dec 12, 2022 License: Apache-2.0 Imports: 14 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Hash

func Hash(s string, n int) int

Hash -

Types

type Tap

type Tap struct {
	ambassadorAPI.UnimplementedTapServer
	TargetName           string
	Namespace            string
	NodeName             string
	NetworkServiceClient networkservice.NetworkServiceClient
	NSPServiceName       string
	NSPServicePort       int
	NSPEntryTimeout      time.Duration
	NetUtils             networking.Utils
	StreamRegistry       types.Registry
	// contains filtered or unexported fields
}

Tap implements ambassadorAPI.TapServer

func New

func New(targetName string,
	namespace string,
	nodeName string,
	networkServiceClient networkservice.NetworkServiceClient,
	nspServiceName string,
	nspServicePort int,
	nspEntryTimeout time.Duration,
	netUtils networking.Utils) (*Tap, error)

func (*Tap) Close

func (tap *Tap) Close(ctx context.Context, s *ambassadorAPI.Stream) (*empty.Empty, error)

func (*Tap) Delete

func (tap *Tap) Delete(ctx context.Context) error

func (*Tap) Open

func (tap *Tap) Open(ctx context.Context, s *ambassadorAPI.Stream) (*empty.Empty, error)

func (*Tap) Watch

func (tap *Tap) Watch(filter *ambassadorAPI.Stream, watcher ambassadorAPI.Tap_WatchServer) error

Directories

Path Synopsis
mocks
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.
mocks
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.
mocks
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.
mocks
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.

Jump to

Keyboard shortcuts

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