dpu_api

package
v0.0.0-...-19d18b6 Latest Latest
Warning

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

Go to latest
Published: May 22, 2024 License: Apache-2.0 Imports: 8 Imported by: 1

Documentation

Index

Constants

View Source
const (
	NetworkFunctionService_CreateNetworkFunction_FullMethodName = "/Vendor.NetworkFunctionService/CreateNetworkFunction"
	NetworkFunctionService_DeleteNetworkFunction_FullMethodName = "/Vendor.NetworkFunctionService/DeleteNetworkFunction"
)
View Source
const (
	DeviceService_GetDevices_FullMethodName = "/Vendor.DeviceService/GetDevices"
)
View Source
const (
	LifeCycleService_Init_FullMethodName = "/Vendor.LifeCycleService/Init"
)

Variables

View Source
var DeviceService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "Vendor.DeviceService",
	HandlerType: (*DeviceServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "GetDevices",
			Handler:    _DeviceService_GetDevices_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "api.proto",
}

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

View Source
var LifeCycleService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "Vendor.LifeCycleService",
	HandlerType: (*LifeCycleServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "Init",
			Handler:    _LifeCycleService_Init_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "api.proto",
}

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

View Source
var NetworkFunctionService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "Vendor.NetworkFunctionService",
	HandlerType: (*NetworkFunctionServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "CreateNetworkFunction",
			Handler:    _NetworkFunctionService_CreateNetworkFunction_Handler,
		},
		{
			MethodName: "DeleteNetworkFunction",
			Handler:    _NetworkFunctionService_DeleteNetworkFunction_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "api.proto",
}

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

Functions

func RegisterDeviceServiceServer

func RegisterDeviceServiceServer(s grpc.ServiceRegistrar, srv DeviceServiceServer)

func RegisterLifeCycleServiceServer

func RegisterLifeCycleServiceServer(s grpc.ServiceRegistrar, srv LifeCycleServiceServer)

func RegisterNetworkFunctionServiceServer

func RegisterNetworkFunctionServiceServer(s grpc.ServiceRegistrar, srv NetworkFunctionServiceServer)

Types

type Device

type Device struct {
	ID       string        `protobuf:"bytes,1,opt,name=ID,proto3" json:"ID,omitempty"`
	Health   string        `protobuf:"bytes,2,opt,name=health,proto3" json:"health,omitempty"`
	Topology *TopologyInfo `protobuf:"bytes,3,opt,name=topology,proto3" json:"topology,omitempty"`
	// contains filtered or unexported fields
}

func (*Device) Descriptor deprecated

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

Deprecated: Use Device.ProtoReflect.Descriptor instead.

func (*Device) GetHealth

func (x *Device) GetHealth() string

func (*Device) GetID

func (x *Device) GetID() string

func (*Device) GetTopology

func (x *Device) GetTopology() *TopologyInfo

func (*Device) ProtoMessage

func (*Device) ProtoMessage()

func (*Device) ProtoReflect

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

func (*Device) Reset

func (x *Device) Reset()

func (*Device) String

func (x *Device) String() string

type DeviceListResponse

type DeviceListResponse struct {
	Devices map[string]*Device `` /* 155-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*DeviceListResponse) Descriptor deprecated

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

Deprecated: Use DeviceListResponse.ProtoReflect.Descriptor instead.

func (*DeviceListResponse) GetDevices

func (x *DeviceListResponse) GetDevices() map[string]*Device

func (*DeviceListResponse) ProtoMessage

func (*DeviceListResponse) ProtoMessage()

func (*DeviceListResponse) ProtoReflect

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

func (*DeviceListResponse) Reset

func (x *DeviceListResponse) Reset()

func (*DeviceListResponse) String

func (x *DeviceListResponse) String() string

type DeviceServiceClient

type DeviceServiceClient interface {
	GetDevices(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*DeviceListResponse, error)
}

DeviceServiceClient is the client API for DeviceService 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 DeviceServiceServer

type DeviceServiceServer interface {
	GetDevices(context.Context, *Empty) (*DeviceListResponse, error)
	// contains filtered or unexported methods
}

DeviceServiceServer is the server API for DeviceService service. All implementations must embed UnimplementedDeviceServiceServer for forward compatibility

type Empty

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

func (*Empty) Descriptor deprecated

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

Deprecated: Use Empty.ProtoReflect.Descriptor instead.

func (*Empty) ProtoMessage

func (*Empty) ProtoMessage()

func (*Empty) ProtoReflect

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

func (*Empty) Reset

func (x *Empty) Reset()

func (*Empty) String

func (x *Empty) String() string

type InitRequest

type InitRequest struct {
	DpuMode bool `protobuf:"varint,1,opt,name=dpu_mode,json=dpuMode,proto3" json:"dpu_mode,omitempty"`
	// contains filtered or unexported fields
}

func (*InitRequest) Descriptor deprecated

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

Deprecated: Use InitRequest.ProtoReflect.Descriptor instead.

func (*InitRequest) GetDpuMode

func (x *InitRequest) GetDpuMode() bool

func (*InitRequest) ProtoMessage

func (*InitRequest) ProtoMessage()

func (*InitRequest) ProtoReflect

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

func (*InitRequest) Reset

func (x *InitRequest) Reset()

func (*InitRequest) String

func (x *InitRequest) String() string

type IpPort

type IpPort struct {
	Ip   string `protobuf:"bytes,1,opt,name=ip,proto3" json:"ip,omitempty"`
	Port int32  `protobuf:"varint,2,opt,name=port,proto3" json:"port,omitempty"`
	// contains filtered or unexported fields
}

func (*IpPort) Descriptor deprecated

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

Deprecated: Use IpPort.ProtoReflect.Descriptor instead.

func (*IpPort) GetIp

func (x *IpPort) GetIp() string

func (*IpPort) GetPort

func (x *IpPort) GetPort() int32

func (*IpPort) ProtoMessage

func (*IpPort) ProtoMessage()

func (*IpPort) ProtoReflect

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

func (*IpPort) Reset

func (x *IpPort) Reset()

func (*IpPort) String

func (x *IpPort) String() string

type LifeCycleServiceClient

type LifeCycleServiceClient interface {
	Init(ctx context.Context, in *InitRequest, opts ...grpc.CallOption) (*IpPort, error)
}

LifeCycleServiceClient is the client API for LifeCycleService 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 LifeCycleServiceServer

type LifeCycleServiceServer interface {
	Init(context.Context, *InitRequest) (*IpPort, error)
	// contains filtered or unexported methods
}

LifeCycleServiceServer is the server API for LifeCycleService service. All implementations must embed UnimplementedLifeCycleServiceServer for forward compatibility

type NFRequest

type NFRequest struct {
	Input  string `protobuf:"bytes,1,opt,name=input,proto3" json:"input,omitempty"`
	Output string `protobuf:"bytes,2,opt,name=output,proto3" json:"output,omitempty"`
	// contains filtered or unexported fields
}

func (*NFRequest) Descriptor deprecated

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

Deprecated: Use NFRequest.ProtoReflect.Descriptor instead.

func (*NFRequest) GetInput

func (x *NFRequest) GetInput() string

func (*NFRequest) GetOutput

func (x *NFRequest) GetOutput() string

func (*NFRequest) ProtoMessage

func (*NFRequest) ProtoMessage()

func (*NFRequest) ProtoReflect

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

func (*NFRequest) Reset

func (x *NFRequest) Reset()

func (*NFRequest) String

func (x *NFRequest) String() string

type NetworkFunctionServiceClient

type NetworkFunctionServiceClient interface {
	CreateNetworkFunction(ctx context.Context, in *NFRequest, opts ...grpc.CallOption) (*Empty, error)
	DeleteNetworkFunction(ctx context.Context, in *NFRequest, opts ...grpc.CallOption) (*Empty, error)
}

NetworkFunctionServiceClient is the client API for NetworkFunctionService 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 NetworkFunctionServiceServer

type NetworkFunctionServiceServer interface {
	CreateNetworkFunction(context.Context, *NFRequest) (*Empty, error)
	DeleteNetworkFunction(context.Context, *NFRequest) (*Empty, error)
	// contains filtered or unexported methods
}

NetworkFunctionServiceServer is the server API for NetworkFunctionService service. All implementations must embed UnimplementedNetworkFunctionServiceServer for forward compatibility

type TopologyInfo

type TopologyInfo struct {
	Node string `protobuf:"bytes,1,opt,name=node,proto3" json:"node,omitempty"`
	// contains filtered or unexported fields
}

func (*TopologyInfo) Descriptor deprecated

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

Deprecated: Use TopologyInfo.ProtoReflect.Descriptor instead.

func (*TopologyInfo) GetNode

func (x *TopologyInfo) GetNode() string

func (*TopologyInfo) ProtoMessage

func (*TopologyInfo) ProtoMessage()

func (*TopologyInfo) ProtoReflect

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

func (*TopologyInfo) Reset

func (x *TopologyInfo) Reset()

func (*TopologyInfo) String

func (x *TopologyInfo) String() string

type UnimplementedDeviceServiceServer

type UnimplementedDeviceServiceServer struct {
}

UnimplementedDeviceServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedDeviceServiceServer) GetDevices

type UnimplementedLifeCycleServiceServer

type UnimplementedLifeCycleServiceServer struct {
}

UnimplementedLifeCycleServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedLifeCycleServiceServer) Init

type UnimplementedNetworkFunctionServiceServer

type UnimplementedNetworkFunctionServiceServer struct {
}

UnimplementedNetworkFunctionServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedNetworkFunctionServiceServer) CreateNetworkFunction

func (UnimplementedNetworkFunctionServiceServer) DeleteNetworkFunction

type UnsafeDeviceServiceServer

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

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

type UnsafeLifeCycleServiceServer

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

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

type UnsafeNetworkFunctionServiceServer

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

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

Jump to

Keyboard shortcuts

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