mockcnf

package
v0.0.0-...-ae01f8c Latest Latest
Warning

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

Go to latest
Published: Jan 15, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ModelMockCnf1 models.KnownModel
	ModelMockCnf2 models.KnownModel
)
View Source
var File_mockcnf_mockcnf2_proto protoreflect.FileDescriptor
View Source
var File_mockcnf_mockcnf_proto protoreflect.FileDescriptor

Functions

func MockCnfIndex

func MockCnfIndex() int

Types

type MockCnf1

type MockCnf1 struct {
	IpProtocol uint32 `protobuf:"varint,1,opt,name=ip_protocol,json=ipProtocol,proto3" json:"ip_protocol,omitempty"`
	// Reference to VPP logical name.
	VppInterface     string `protobuf:"bytes,2,opt,name=vpp_interface,json=vppInterface,proto3" json:"vpp_interface,omitempty"`
	Vrf              uint32 `protobuf:"varint,3,opt,name=vrf,proto3" json:"vrf,omitempty"`
	WaitForInterface string `protobuf:"bytes,4,opt,name=wait_for_interface,json=waitForInterface,proto3" json:"wait_for_interface,omitempty"`
	// contains filtered or unexported fields
}

MockCnf is used for testing of CNFRegistry and PuntManager. NOTE: two different CNFs cannot use proto messages from the same proto files, because otherwise two distinct copies of the same file descriptor would be received over separate gRPC calls to KnownModels service, while only one descriptor can be registered for the same proto file.

func (*MockCnf1) Descriptor deprecated

func (*MockCnf1) Descriptor() ([]byte, []int)

Deprecated: Use MockCnf1.ProtoReflect.Descriptor instead.

func (*MockCnf1) GetIpProtocol

func (x *MockCnf1) GetIpProtocol() uint32

func (*MockCnf1) GetVppInterface

func (x *MockCnf1) GetVppInterface() string

func (*MockCnf1) GetVrf

func (x *MockCnf1) GetVrf() uint32

func (*MockCnf1) GetWaitForInterface

func (x *MockCnf1) GetWaitForInterface() string

func (*MockCnf1) ProtoMessage

func (*MockCnf1) ProtoMessage()

func (*MockCnf1) ProtoReflect

func (x *MockCnf1) ProtoReflect() protoreflect.Message

func (*MockCnf1) Reset

func (x *MockCnf1) Reset()

func (*MockCnf1) String

func (x *MockCnf1) String() string

type MockCnf2

type MockCnf2 struct {
	VppInterface string `protobuf:"bytes,1,opt,name=vpp_interface,json=vppInterface,proto3" json:"vpp_interface,omitempty"`
	Vrf          uint32 `protobuf:"varint,2,opt,name=vrf,proto3" json:"vrf,omitempty"`
	// contains filtered or unexported fields
}

MockCnf is used for testing of CNFRegistry and PuntManager. NOTE: two different CNFs cannot use proto messages from the same proto files, because otherwise two distinct copies of the same file descriptor would be received over separate gRPC calls to KnownModels service, while only one descriptor can be registered for the same proto file.

func (*MockCnf2) Descriptor deprecated

func (*MockCnf2) Descriptor() ([]byte, []int)

Deprecated: Use MockCnf2.ProtoReflect.Descriptor instead.

func (*MockCnf2) GetVppInterface

func (x *MockCnf2) GetVppInterface() string

func (*MockCnf2) GetVrf

func (x *MockCnf2) GetVrf() uint32

func (*MockCnf2) ProtoMessage

func (*MockCnf2) ProtoMessage()

func (*MockCnf2) ProtoReflect

func (x *MockCnf2) ProtoReflect() protoreflect.Message

func (*MockCnf2) Reset

func (x *MockCnf2) Reset()

func (*MockCnf2) String

func (x *MockCnf2) String() string

Jump to

Keyboard shortcuts

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