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 ¶
func (cce *ConnectionDump) Request(ctx context.Context, request *networkservice.NetworkServiceRequest) (*connection.Connection, error)
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 ¶
func (cce *TestClientEndpoint) Request(ctx context.Context, request *networkservice.NetworkServiceRequest) (*connection.Connection, error)
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 ¶
func (c *TestCommit) Init(*endpoint.InitContext) error
Init will reset the vpp shouldResetVpp is true
func (*TestCommit) Request ¶
func (c *TestCommit) Request(ctx context.Context, request *networkservice.NetworkServiceRequest) (*connection.Connection, error)
Request implements the request handler Provides/Consumes from ctx context.Context:
VppAgentConfig Next