api

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Aug 22, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Overview

Package api is a generated GoMock package.

Index

Constants

This section is empty.

Variables

View Source
var (
	IntentType_name = map[int32]string{
		0: "INTENT_TYPE_UNSPECIFIED",
		1: "INTENT_TYPE_HIGH_BANDWIDTH",
		2: "INTENT_TYPE_LOW_BANDWIDTH",
		3: "INTENT_TYPE_LOW_LATENCY",
		4: "INTENT_TYPE_LOW_PACKET_LOSS",
		5: "INTENT_TYPE_LOW_JITTER",
		6: "INTENT_TYPE_FLEX_ALGO",
		7: "INTENT_TYPE_SFC",
		8: "INTENT_TYPE_LOW_UTILIZATION",
	}
	IntentType_value = map[string]int32{
		"INTENT_TYPE_UNSPECIFIED":     0,
		"INTENT_TYPE_HIGH_BANDWIDTH":  1,
		"INTENT_TYPE_LOW_BANDWIDTH":   2,
		"INTENT_TYPE_LOW_LATENCY":     3,
		"INTENT_TYPE_LOW_PACKET_LOSS": 4,
		"INTENT_TYPE_LOW_JITTER":      5,
		"INTENT_TYPE_FLEX_ALGO":       6,
		"INTENT_TYPE_SFC":             7,
		"INTENT_TYPE_LOW_UTILIZATION": 8,
	}
)

Enum value maps for IntentType.

View Source
var (
	ValueType_name = map[int32]string{
		0: "VALUE_TYPE_UNSPECIFIED",
		1: "VALUE_TYPE_MIN_VALUE",
		2: "VALUE_TYPE_MAX_VALUE",
		3: "VALUE_TYPE_SFC",
		4: "VALUE_TYPE_FLEX_ALGO_NR",
	}
	ValueType_value = map[string]int32{
		"VALUE_TYPE_UNSPECIFIED":  0,
		"VALUE_TYPE_MIN_VALUE":    1,
		"VALUE_TYPE_MAX_VALUE":    2,
		"VALUE_TYPE_SFC":          3,
		"VALUE_TYPE_FLEX_ALGO_NR": 4,
	}
)

Enum value maps for ValueType.

View Source
var File_proto_intent_proto protoreflect.FileDescriptor
View Source
var IntentController_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "api.IntentController",
	HandlerType: (*IntentControllerServer)(nil),
	Methods:     []grpc.MethodDesc{},
	Streams: []grpc.StreamDesc{
		{
			StreamName:    "GetIntentPath",
			Handler:       _IntentController_GetIntentPath_Handler,
			ServerStreams: true,
			ClientStreams: true,
		},
	},
	Metadata: "proto/intent.proto",
}

IntentController_ServiceDesc is the grpc.ServiceDesc for IntentController service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

Functions

func RegisterIntentControllerServer

func RegisterIntentControllerServer(s grpc.ServiceRegistrar, srv IntentControllerServer)

Types

type Intent

type Intent struct {
	Type   IntentType `protobuf:"varint,1,opt,name=type,proto3,enum=api.IntentType" json:"type,omitempty"`
	Values []*Value   `protobuf:"bytes,2,rep,name=values,proto3" json:"values,omitempty"`
	// contains filtered or unexported fields
}

func (*Intent) Descriptor deprecated

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

Deprecated: Use Intent.ProtoReflect.Descriptor instead.

func (*Intent) GetType

func (x *Intent) GetType() IntentType

func (*Intent) GetValues

func (x *Intent) GetValues() []*Value

func (*Intent) ProtoMessage

func (*Intent) ProtoMessage()

func (*Intent) ProtoReflect

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

func (*Intent) Reset

func (x *Intent) Reset()

func (*Intent) String

func (x *Intent) String() string

type IntentControllerClient

type IntentControllerClient interface {
	GetIntentPath(ctx context.Context, opts ...grpc.CallOption) (IntentController_GetIntentPathClient, error)
}

IntentControllerClient is the client API for IntentController service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

type IntentControllerServer

type IntentControllerServer interface {
	GetIntentPath(IntentController_GetIntentPathServer) error
	// contains filtered or unexported methods
}

IntentControllerServer is the server API for IntentController service. All implementations must embed UnimplementedIntentControllerServer for forward compatibility

type IntentController_GetIntentPathClient

type IntentController_GetIntentPathClient interface {
	Send(*PathRequest) error
	Recv() (*PathResult, error)
	grpc.ClientStream
}

type IntentController_GetIntentPathServer

type IntentController_GetIntentPathServer interface {
	Send(*PathResult) error
	Recv() (*PathRequest, error)
	grpc.ServerStream
}

type IntentType

type IntentType int32
const (
	IntentType_INTENT_TYPE_UNSPECIFIED     IntentType = 0
	IntentType_INTENT_TYPE_HIGH_BANDWIDTH  IntentType = 1
	IntentType_INTENT_TYPE_LOW_BANDWIDTH   IntentType = 2
	IntentType_INTENT_TYPE_LOW_LATENCY     IntentType = 3
	IntentType_INTENT_TYPE_LOW_PACKET_LOSS IntentType = 4
	IntentType_INTENT_TYPE_LOW_JITTER      IntentType = 5
	IntentType_INTENT_TYPE_FLEX_ALGO       IntentType = 6
	IntentType_INTENT_TYPE_SFC             IntentType = 7
	IntentType_INTENT_TYPE_LOW_UTILIZATION IntentType = 8
)

func (IntentType) Descriptor

func (IntentType) Descriptor() protoreflect.EnumDescriptor

func (IntentType) Enum

func (x IntentType) Enum() *IntentType

func (IntentType) EnumDescriptor deprecated

func (IntentType) EnumDescriptor() ([]byte, []int)

Deprecated: Use IntentType.Descriptor instead.

func (IntentType) Number

func (x IntentType) Number() protoreflect.EnumNumber

func (IntentType) String

func (x IntentType) String() string

func (IntentType) Type

type MockIntentControllerClient

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

MockIntentControllerClient is a mock of IntentControllerClient interface.

func NewMockIntentControllerClient

func NewMockIntentControllerClient(ctrl *gomock.Controller) *MockIntentControllerClient

NewMockIntentControllerClient creates a new mock instance.

func (*MockIntentControllerClient) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockIntentControllerClient) GetIntentPath

GetIntentPath mocks base method.

type MockIntentControllerClientMockRecorder

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

MockIntentControllerClientMockRecorder is the mock recorder for MockIntentControllerClient.

func (*MockIntentControllerClientMockRecorder) GetIntentPath

func (mr *MockIntentControllerClientMockRecorder) GetIntentPath(ctx any, opts ...any) *gomock.Call

GetIntentPath indicates an expected call of GetIntentPath.

type MockIntentControllerServer

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

MockIntentControllerServer is a mock of IntentControllerServer interface.

func NewMockIntentControllerServer

func NewMockIntentControllerServer(ctrl *gomock.Controller) *MockIntentControllerServer

NewMockIntentControllerServer creates a new mock instance.

func (*MockIntentControllerServer) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockIntentControllerServer) GetIntentPath

GetIntentPath mocks base method.

type MockIntentControllerServerMockRecorder

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

MockIntentControllerServerMockRecorder is the mock recorder for MockIntentControllerServer.

func (*MockIntentControllerServerMockRecorder) GetIntentPath

func (mr *MockIntentControllerServerMockRecorder) GetIntentPath(arg0 any) *gomock.Call

GetIntentPath indicates an expected call of GetIntentPath.

type MockIntentController_GetIntentPathClient

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

MockIntentController_GetIntentPathClient is a mock of IntentController_GetIntentPathClient interface.

func NewMockIntentController_GetIntentPathClient

func NewMockIntentController_GetIntentPathClient(ctrl *gomock.Controller) *MockIntentController_GetIntentPathClient

NewMockIntentController_GetIntentPathClient creates a new mock instance.

func (*MockIntentController_GetIntentPathClient) CloseSend

CloseSend mocks base method.

func (*MockIntentController_GetIntentPathClient) Context

Context mocks base method.

func (*MockIntentController_GetIntentPathClient) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockIntentController_GetIntentPathClient) Header

Header mocks base method.

func (*MockIntentController_GetIntentPathClient) Recv

Recv mocks base method.

func (*MockIntentController_GetIntentPathClient) RecvMsg

RecvMsg mocks base method.

func (*MockIntentController_GetIntentPathClient) Send

Send mocks base method.

func (*MockIntentController_GetIntentPathClient) SendMsg

SendMsg mocks base method.

func (*MockIntentController_GetIntentPathClient) Trailer

Trailer mocks base method.

type MockIntentController_GetIntentPathClientMockRecorder

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

MockIntentController_GetIntentPathClientMockRecorder is the mock recorder for MockIntentController_GetIntentPathClient.

func (*MockIntentController_GetIntentPathClientMockRecorder) CloseSend

CloseSend indicates an expected call of CloseSend.

func (*MockIntentController_GetIntentPathClientMockRecorder) Context

Context indicates an expected call of Context.

func (*MockIntentController_GetIntentPathClientMockRecorder) Header

Header indicates an expected call of Header.

func (*MockIntentController_GetIntentPathClientMockRecorder) Recv

Recv indicates an expected call of Recv.

func (*MockIntentController_GetIntentPathClientMockRecorder) RecvMsg

RecvMsg indicates an expected call of RecvMsg.

func (*MockIntentController_GetIntentPathClientMockRecorder) Send

Send indicates an expected call of Send.

func (*MockIntentController_GetIntentPathClientMockRecorder) SendMsg

SendMsg indicates an expected call of SendMsg.

func (*MockIntentController_GetIntentPathClientMockRecorder) Trailer

Trailer indicates an expected call of Trailer.

type MockIntentController_GetIntentPathServer

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

MockIntentController_GetIntentPathServer is a mock of IntentController_GetIntentPathServer interface.

func NewMockIntentController_GetIntentPathServer

func NewMockIntentController_GetIntentPathServer(ctrl *gomock.Controller) *MockIntentController_GetIntentPathServer

NewMockIntentController_GetIntentPathServer creates a new mock instance.

func (*MockIntentController_GetIntentPathServer) Context

Context mocks base method.

func (*MockIntentController_GetIntentPathServer) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockIntentController_GetIntentPathServer) Recv

Recv mocks base method.

func (*MockIntentController_GetIntentPathServer) RecvMsg

RecvMsg mocks base method.

func (*MockIntentController_GetIntentPathServer) Send

Send mocks base method.

func (*MockIntentController_GetIntentPathServer) SendHeader

SendHeader mocks base method.

func (*MockIntentController_GetIntentPathServer) SendMsg

SendMsg mocks base method.

func (*MockIntentController_GetIntentPathServer) SetHeader

SetHeader mocks base method.

func (*MockIntentController_GetIntentPathServer) SetTrailer

SetTrailer mocks base method.

type MockIntentController_GetIntentPathServerMockRecorder

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

MockIntentController_GetIntentPathServerMockRecorder is the mock recorder for MockIntentController_GetIntentPathServer.

func (*MockIntentController_GetIntentPathServerMockRecorder) Context

Context indicates an expected call of Context.

func (*MockIntentController_GetIntentPathServerMockRecorder) Recv

Recv indicates an expected call of Recv.

func (*MockIntentController_GetIntentPathServerMockRecorder) RecvMsg

RecvMsg indicates an expected call of RecvMsg.

func (*MockIntentController_GetIntentPathServerMockRecorder) Send

Send indicates an expected call of Send.

func (*MockIntentController_GetIntentPathServerMockRecorder) SendHeader

SendHeader indicates an expected call of SendHeader.

func (*MockIntentController_GetIntentPathServerMockRecorder) SendMsg

SendMsg indicates an expected call of SendMsg.

func (*MockIntentController_GetIntentPathServerMockRecorder) SetHeader

SetHeader indicates an expected call of SetHeader.

func (*MockIntentController_GetIntentPathServerMockRecorder) SetTrailer

SetTrailer indicates an expected call of SetTrailer.

type MockUnsafeIntentControllerServer

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

MockUnsafeIntentControllerServer is a mock of UnsafeIntentControllerServer interface.

func NewMockUnsafeIntentControllerServer

func NewMockUnsafeIntentControllerServer(ctrl *gomock.Controller) *MockUnsafeIntentControllerServer

NewMockUnsafeIntentControllerServer creates a new mock instance.

func (*MockUnsafeIntentControllerServer) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

type MockUnsafeIntentControllerServerMockRecorder

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

MockUnsafeIntentControllerServerMockRecorder is the mock recorder for MockUnsafeIntentControllerServer.

type PathRequest

type PathRequest struct {
	Ipv6SourceAddress      string    `protobuf:"bytes,1,opt,name=ipv6_source_address,json=ipv6SourceAddress,proto3" json:"ipv6_source_address,omitempty"`
	Ipv6DestinationAddress string    `` /* 129-byte string literal not displayed */
	Intents                []*Intent `protobuf:"bytes,3,rep,name=intents,proto3" json:"intents,omitempty"`
	// contains filtered or unexported fields
}

func (*PathRequest) Descriptor deprecated

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

Deprecated: Use PathRequest.ProtoReflect.Descriptor instead.

func (*PathRequest) GetIntents

func (x *PathRequest) GetIntents() []*Intent

func (*PathRequest) GetIpv6DestinationAddress

func (x *PathRequest) GetIpv6DestinationAddress() string

func (*PathRequest) GetIpv6SourceAddress

func (x *PathRequest) GetIpv6SourceAddress() string

func (*PathRequest) ProtoMessage

func (*PathRequest) ProtoMessage()

func (*PathRequest) ProtoReflect

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

func (*PathRequest) Reset

func (x *PathRequest) Reset()

func (*PathRequest) String

func (x *PathRequest) String() string

type PathResult

type PathResult struct {
	Ipv6SourceAddress      string    `protobuf:"bytes,1,opt,name=ipv6_source_address,json=ipv6SourceAddress,proto3" json:"ipv6_source_address,omitempty"`
	Ipv6DestinationAddress string    `` /* 129-byte string literal not displayed */
	Intents                []*Intent `protobuf:"bytes,3,rep,name=intents,proto3" json:"intents,omitempty"`
	Ipv6SidAddresses       []string  `protobuf:"bytes,4,rep,name=ipv6_sid_addresses,json=ipv6SidAddresses,proto3" json:"ipv6_sid_addresses,omitempty"`
	// contains filtered or unexported fields
}

func (*PathResult) Descriptor deprecated

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

Deprecated: Use PathResult.ProtoReflect.Descriptor instead.

func (*PathResult) GetIntents

func (x *PathResult) GetIntents() []*Intent

func (*PathResult) GetIpv6DestinationAddress

func (x *PathResult) GetIpv6DestinationAddress() string

func (*PathResult) GetIpv6SidAddresses

func (x *PathResult) GetIpv6SidAddresses() []string

func (*PathResult) GetIpv6SourceAddress

func (x *PathResult) GetIpv6SourceAddress() string

func (*PathResult) ProtoMessage

func (*PathResult) ProtoMessage()

func (*PathResult) ProtoReflect

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

func (*PathResult) Reset

func (x *PathResult) Reset()

func (*PathResult) String

func (x *PathResult) String() string

type UnimplementedIntentControllerServer

type UnimplementedIntentControllerServer struct {
}

UnimplementedIntentControllerServer must be embedded to have forward compatible implementations.

func (UnimplementedIntentControllerServer) GetIntentPath

type UnsafeIntentControllerServer

type UnsafeIntentControllerServer interface {
	// contains filtered or unexported methods
}

UnsafeIntentControllerServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to IntentControllerServer will result in compilation errors.

type Value

type Value struct {
	Type        ValueType `protobuf:"varint,1,opt,name=type,proto3,enum=api.ValueType" json:"type,omitempty"`
	NumberValue *int32    `protobuf:"varint,2,opt,name=number_value,json=numberValue,proto3,oneof" json:"number_value,omitempty"`
	StringValue *string   `protobuf:"bytes,3,opt,name=string_value,json=stringValue,proto3,oneof" json:"string_value,omitempty"`
	// contains filtered or unexported fields
}

func (*Value) Descriptor deprecated

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

Deprecated: Use Value.ProtoReflect.Descriptor instead.

func (*Value) GetNumberValue

func (x *Value) GetNumberValue() int32

func (*Value) GetStringValue

func (x *Value) GetStringValue() string

func (*Value) GetType

func (x *Value) GetType() ValueType

func (*Value) ProtoMessage

func (*Value) ProtoMessage()

func (*Value) ProtoReflect

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

func (*Value) Reset

func (x *Value) Reset()

func (*Value) String

func (x *Value) String() string

type ValueType

type ValueType int32
const (
	ValueType_VALUE_TYPE_UNSPECIFIED  ValueType = 0
	ValueType_VALUE_TYPE_MIN_VALUE    ValueType = 1
	ValueType_VALUE_TYPE_MAX_VALUE    ValueType = 2
	ValueType_VALUE_TYPE_SFC          ValueType = 3
	ValueType_VALUE_TYPE_FLEX_ALGO_NR ValueType = 4
)

func (ValueType) Descriptor

func (ValueType) Descriptor() protoreflect.EnumDescriptor

func (ValueType) Enum

func (x ValueType) Enum() *ValueType

func (ValueType) EnumDescriptor deprecated

func (ValueType) EnumDescriptor() ([]byte, []int)

Deprecated: Use ValueType.Descriptor instead.

func (ValueType) Number

func (x ValueType) Number() protoreflect.EnumNumber

func (ValueType) String

func (x ValueType) String() string

func (ValueType) Type

Jump to

Keyboard shortcuts

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