tests

package
v1.0.13 Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2020 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ConnectionDump

type ConnectionDump struct {
	IncomingConnection *connection.Connection
	OutgoingConnection *connection.Connection
	ConnectionMap      map[string]*vpp_interfaces.Interface
}

ConnectionDump - opens a Client connection to another Network Service

func NewConnectionDump

func NewConnectionDump() *ConnectionDump

NewConnectionDump creates a connection dump object

func (*ConnectionDump) Close

func (cce *ConnectionDump) Close(ctx context.Context, connection *connection.Connection) (*empty.Empty, error)

Close implements the close handler Consumes from ctx context.Context:

Next

func (*ConnectionDump) Name

func (cce *ConnectionDump) Name() string

Name returns the composite name

func (*ConnectionDump) Request

Request implements the request handler Consumes from ctx context.Context:

Next

type TestClientEndpoint

type TestClientEndpoint struct {
	// contains filtered or unexported fields
}

TestClientEndpoint - opens a Client connection to another Network Service

func NewTestClientEndpoint

func NewTestClientEndpoint(outgoingConnection *connection.Connection) *TestClientEndpoint

NewTestClientEndpoint - creates a test ClientEndpoint

func (*TestClientEndpoint) Close

func (cce *TestClientEndpoint) Close(ctx context.Context, connection *connection.Connection) (*empty.Empty, error)

Close implements the close handler Consumes from ctx context.Context:

Next

func (*TestClientEndpoint) Name

func (cce *TestClientEndpoint) Name() string

Name returns the composite name

func (*TestClientEndpoint) Request

Request implements the request handler Consumes from ctx context.Context:

Next

type TestCommit

type TestCommit struct {
	VppConfig *configurator.Config
}

TestCommit is a VPP Agent TestCommit composite

func NewTestCommit

func NewTestCommit() *TestCommit

NewTestCommit creates a new TestCommit endpoint.

func (*TestCommit) Close

func (c *TestCommit) Close(ctx context.Context, connection *connection.Connection) (*empty.Empty, error)

Close implements the close handler Provides/Consumes from ctx context.Context:

    VppAgentConfig
	   Next

func (*TestCommit) Init

Init will reset the vpp shouldResetVpp is true

func (*TestCommit) Request

Request implements the request handler Provides/Consumes from ctx context.Context:

    VppAgentConfig
	   Next

Jump to

Keyboard shortcuts

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