nedpb

package
v1.2.8 Latest Latest
Warning

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

Go to latest
Published: Feb 23, 2025 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	NedService_CreateVxlan_FullMethodName     = "/nedpb.NedService/CreateVxlan"
	NedService_AttachInterface_FullMethodName = "/nedpb.NedService/AttachInterface"
)

Variables

View Source
var NedService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "nedpb.NedService",
	HandlerType: (*NedServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "CreateVxlan",
			Handler:    _NedService_CreateVxlan_Handler,
		},
		{
			MethodName: "AttachInterface",
			Handler:    _NedService_AttachInterface_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "ned.proto",
}

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

Functions

func RegisterNedServiceServer

func RegisterNedServiceServer(s grpc.ServiceRegistrar, srv NedServiceServer)

Types

type AttachInterfaceRequest

type AttachInterfaceRequest struct {

	// The name of the interface to attach to the bridge.
	InterfaceName string `protobuf:"bytes,1,opt,name=interface_name,json=interfaceName,proto3" json:"interface_name,omitempty"`
	// contains filtered or unexported fields
}

func (*AttachInterfaceRequest) Descriptor deprecated

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

Deprecated: Use AttachInterfaceRequest.ProtoReflect.Descriptor instead.

func (*AttachInterfaceRequest) GetInterfaceName

func (x *AttachInterfaceRequest) GetInterfaceName() string

func (*AttachInterfaceRequest) ProtoMessage

func (*AttachInterfaceRequest) ProtoMessage()

func (*AttachInterfaceRequest) ProtoReflect

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

func (*AttachInterfaceRequest) Reset

func (x *AttachInterfaceRequest) Reset()

func (*AttachInterfaceRequest) String

func (x *AttachInterfaceRequest) String() string

type AttachInterfaceResponse

type AttachInterfaceResponse struct {

	// The OpenFlow ID of the attached interface.
	InterfaceNum int64 `protobuf:"varint,1,opt,name=interface_num,json=interfaceNum,proto3" json:"interface_num,omitempty"`
	// The node name from the environment variable.
	NodeName string `protobuf:"bytes,2,opt,name=node_name,json=nodeName,proto3" json:"node_name,omitempty"`
	// contains filtered or unexported fields
}

func (*AttachInterfaceResponse) Descriptor deprecated

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

Deprecated: Use AttachInterfaceResponse.ProtoReflect.Descriptor instead.

func (*AttachInterfaceResponse) GetInterfaceNum

func (x *AttachInterfaceResponse) GetInterfaceNum() int64

func (*AttachInterfaceResponse) GetNodeName

func (x *AttachInterfaceResponse) GetNodeName() string

func (*AttachInterfaceResponse) ProtoMessage

func (*AttachInterfaceResponse) ProtoMessage()

func (*AttachInterfaceResponse) ProtoReflect

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

func (*AttachInterfaceResponse) Reset

func (x *AttachInterfaceResponse) Reset()

func (*AttachInterfaceResponse) String

func (x *AttachInterfaceResponse) String() string

type CreateVxlanRequest

type CreateVxlanRequest struct {

	// The IP address to attach to the VxLAN.
	IpAddress string `protobuf:"bytes,1,opt,name=ip_address,json=ipAddress,proto3" json:"ip_address,omitempty"`
	// contains filtered or unexported fields
}

func (*CreateVxlanRequest) Descriptor deprecated

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

Deprecated: Use CreateVxlanRequest.ProtoReflect.Descriptor instead.

func (*CreateVxlanRequest) GetIpAddress

func (x *CreateVxlanRequest) GetIpAddress() string

func (*CreateVxlanRequest) ProtoMessage

func (*CreateVxlanRequest) ProtoMessage()

func (*CreateVxlanRequest) ProtoReflect

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

func (*CreateVxlanRequest) Reset

func (x *CreateVxlanRequest) Reset()

func (*CreateVxlanRequest) String

func (x *CreateVxlanRequest) String() string

type CreateVxlanResponse

type CreateVxlanResponse struct {

	// Indicates if the VxLAN was created successfully.
	Success bool `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"`
	// Optional message providing additional information.
	Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"`
	// contains filtered or unexported fields
}

func (*CreateVxlanResponse) Descriptor deprecated

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

Deprecated: Use CreateVxlanResponse.ProtoReflect.Descriptor instead.

func (*CreateVxlanResponse) GetMessage

func (x *CreateVxlanResponse) GetMessage() string

func (*CreateVxlanResponse) GetSuccess

func (x *CreateVxlanResponse) GetSuccess() bool

func (*CreateVxlanResponse) ProtoMessage

func (*CreateVxlanResponse) ProtoMessage()

func (*CreateVxlanResponse) ProtoReflect

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

func (*CreateVxlanResponse) Reset

func (x *CreateVxlanResponse) Reset()

func (*CreateVxlanResponse) String

func (x *CreateVxlanResponse) String() string

type NedServiceClient

type NedServiceClient interface {
	// Creates a VxLAN with the specified IP address.
	CreateVxlan(ctx context.Context, in *CreateVxlanRequest, opts ...grpc.CallOption) (*CreateVxlanResponse, error)
	// Attaches the specified interface to the bridge.
	AttachInterface(ctx context.Context, in *AttachInterfaceRequest, opts ...grpc.CallOption) (*AttachInterfaceResponse, error)
}

NedServiceClient is the client API for NedService 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.

func NewNedServiceClient

func NewNedServiceClient(cc grpc.ClientConnInterface) NedServiceClient

type NedServiceServer

type NedServiceServer interface {
	// Creates a VxLAN with the specified IP address.
	CreateVxlan(context.Context, *CreateVxlanRequest) (*CreateVxlanResponse, error)
	// Attaches the specified interface to the bridge.
	AttachInterface(context.Context, *AttachInterfaceRequest) (*AttachInterfaceResponse, error)
	// contains filtered or unexported methods
}

NedServiceServer is the server API for NedService service. All implementations must embed UnimplementedNedServiceServer for forward compatibility.

type UnimplementedNedServiceServer

type UnimplementedNedServiceServer struct{}

UnimplementedNedServiceServer must be embedded to have forward compatible implementations.

NOTE: this should be embedded by value instead of pointer to avoid a nil pointer dereference when methods are called.

func (UnimplementedNedServiceServer) AttachInterface

func (UnimplementedNedServiceServer) CreateVxlan

type UnsafeNedServiceServer

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

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

Jump to

Keyboard shortcuts

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