Documentation ¶
Overview ¶
Package networkservice is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Index ¶
- Constants
- Variables
- func RegisterNetworkAttachmentServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterNetworkAttachmentServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, ...) error
- func RegisterNetworkAttachmentServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterNetworkAttachmentServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, ...) error
- func RegisterNetworkAttachmentServiceServer(s grpc.ServiceRegistrar, srv NetworkAttachmentServiceServer)
- func RegisterResourceServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterResourceServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client ResourceServiceClient) error
- func RegisterResourceServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterResourceServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server ResourceServiceServer) error
- func RegisterResourceServiceServer(s grpc.ServiceRegistrar, srv ResourceServiceServer)
- type InitialConfiguration
- func (*InitialConfiguration) Descriptor() ([]byte, []int)deprecated
- func (x *InitialConfiguration) GetNetworkattachments() []*NetworkAttachment
- func (x *InitialConfiguration) GetResourceConfigs() []*ResourceConfig
- func (*InitialConfiguration) ProtoMessage()
- func (x *InitialConfiguration) ProtoReflect() protoreflect.Message
- func (x *InitialConfiguration) Reset()
- func (x *InitialConfiguration) String() string
- type NetworkAttachment
- func (*NetworkAttachment) Descriptor() ([]byte, []int)deprecated
- func (x *NetworkAttachment) GetConfig() *_struct.Struct
- func (x *NetworkAttachment) GetName() string
- func (x *NetworkAttachment) GetResourceName() string
- func (*NetworkAttachment) ProtoMessage()
- func (x *NetworkAttachment) ProtoReflect() protoreflect.Message
- func (x *NetworkAttachment) Reset()
- func (x *NetworkAttachment) String() string
- type NetworkAttachmentName
- func (*NetworkAttachmentName) Descriptor() ([]byte, []int)deprecated
- func (x *NetworkAttachmentName) GetName() string
- func (*NetworkAttachmentName) ProtoMessage()
- func (x *NetworkAttachmentName) ProtoReflect() protoreflect.Message
- func (x *NetworkAttachmentName) Reset()
- func (x *NetworkAttachmentName) String() string
- type NetworkAttachmentServiceClient
- type NetworkAttachmentServiceServer
- type NetworkAttachments
- func (*NetworkAttachments) Descriptor() ([]byte, []int)deprecated
- func (x *NetworkAttachments) GetNetworkattachments() []*NetworkAttachment
- func (*NetworkAttachments) ProtoMessage()
- func (x *NetworkAttachments) ProtoReflect() protoreflect.Message
- func (x *NetworkAttachments) Reset()
- func (x *NetworkAttachments) String() string
- type NicSelector
- func (*NicSelector) Descriptor() ([]byte, []int)deprecated
- func (x *NicSelector) GetDevices() []string
- func (x *NicSelector) GetDrivers() []string
- func (x *NicSelector) GetPfNames() []string
- func (x *NicSelector) GetVendors() []string
- func (*NicSelector) ProtoMessage()
- func (x *NicSelector) ProtoReflect() protoreflect.Message
- func (x *NicSelector) Reset()
- func (x *NicSelector) String() string
- type Resource
- type ResourceConfig
- func (*ResourceConfig) Descriptor() ([]byte, []int)deprecated
- func (x *ResourceConfig) GetDeviceType() string
- func (x *ResourceConfig) GetMtu() uint32
- func (x *ResourceConfig) GetName() string
- func (x *ResourceConfig) GetNeedVhostNet() bool
- func (x *ResourceConfig) GetNicSelector() *NicSelector
- func (x *ResourceConfig) GetNumVfs() uint32
- func (*ResourceConfig) ProtoMessage()
- func (x *ResourceConfig) ProtoReflect() protoreflect.Message
- func (x *ResourceConfig) Reset()
- func (x *ResourceConfig) String() string
- type ResourceConfigs
- func (*ResourceConfigs) Descriptor() ([]byte, []int)deprecated
- func (x *ResourceConfigs) GetResourceConfigs() []*ResourceConfig
- func (*ResourceConfigs) ProtoMessage()
- func (x *ResourceConfigs) ProtoReflect() protoreflect.Message
- func (x *ResourceConfigs) Reset()
- func (x *ResourceConfigs) String() string
- type ResourceName
- type ResourceServiceClient
- type ResourceServiceServer
- type ResourceSpec
- func (*ResourceSpec) Descriptor() ([]byte, []int)deprecated
- func (x *ResourceSpec) GetDeviceType() string
- func (x *ResourceSpec) GetDevices() []string
- func (x *ResourceSpec) GetMtu() uint32
- func (x *ResourceSpec) GetName() string
- func (x *ResourceSpec) GetNeedVhostNet() bool
- func (x *ResourceSpec) GetNumVfs() uint32
- func (*ResourceSpec) ProtoMessage()
- func (x *ResourceSpec) ProtoReflect() protoreflect.Message
- func (x *ResourceSpec) Reset()
- func (x *ResourceSpec) String() string
- type ResourceStatus
- func (*ResourceStatus) Descriptor() ([]byte, []int)deprecated
- func (x *ResourceStatus) GetDevice() string
- func (x *ResourceStatus) GetDriver() string
- func (x *ResourceStatus) GetMac() string
- func (x *ResourceStatus) GetMtu() uint32
- func (x *ResourceStatus) GetName() string
- func (x *ResourceStatus) GetNumVfs() uint32
- func (x *ResourceStatus) GetVendor() string
- func (x *ResourceStatus) GetVfs() []*VFResourceStatus
- func (*ResourceStatus) ProtoMessage()
- func (x *ResourceStatus) ProtoReflect() protoreflect.Message
- func (x *ResourceStatus) Reset()
- func (x *ResourceStatus) String() string
- type Resources
- type UnimplementedNetworkAttachmentServiceServer
- func (UnimplementedNetworkAttachmentServiceServer) CreateNetworkAttachment(context.Context, *NetworkAttachment) (*empty.Empty, error)
- func (UnimplementedNetworkAttachmentServiceServer) DeleteNetworkAttachment(context.Context, *NetworkAttachmentName) (*empty.Empty, error)
- func (UnimplementedNetworkAttachmentServiceServer) GetAllNetworkAttachments(context.Context, *empty.Empty) (*NetworkAttachments, error)
- func (UnimplementedNetworkAttachmentServiceServer) GetNetworkAttachment(context.Context, *NetworkAttachmentName) (*NetworkAttachment, error)
- type UnimplementedResourceServiceServer
- func (UnimplementedResourceServiceServer) CreateResourceConfig(context.Context, *ResourceConfig) (*Resource, error)
- func (UnimplementedResourceServiceServer) DeleteResourceConfig(context.Context, *ResourceName) (*empty.Empty, error)
- func (UnimplementedResourceServiceServer) GetAllResourceConfigs(context.Context, *empty.Empty) (*ResourceConfigs, error)
- func (UnimplementedResourceServiceServer) GetAllResources(context.Context, *empty.Empty) (*Resources, error)
- func (UnimplementedResourceServiceServer) GetResource(context.Context, *ResourceName) (*Resource, error)
- func (UnimplementedResourceServiceServer) GetResourceConfig(context.Context, *ResourceName) (*ResourceConfig, error)
- type UnsafeNetworkAttachmentServiceServer
- type UnsafeResourceServiceServer
- type VFResourceStatus
- func (*VFResourceStatus) Descriptor() ([]byte, []int)deprecated
- func (x *VFResourceStatus) GetDevice() string
- func (x *VFResourceStatus) GetDriver() string
- func (x *VFResourceStatus) GetMac() string
- func (x *VFResourceStatus) GetName() string
- func (x *VFResourceStatus) GetVendor() string
- func (*VFResourceStatus) ProtoMessage()
- func (x *VFResourceStatus) ProtoReflect() protoreflect.Message
- func (x *VFResourceStatus) Reset()
- func (x *VFResourceStatus) String() string
Constants ¶
const ( ResourceService_CreateResourceConfig_FullMethodName = "/networkservice.ResourceService/CreateResourceConfig" ResourceService_DeleteResourceConfig_FullMethodName = "/networkservice.ResourceService/DeleteResourceConfig" ResourceService_GetAllResourceConfigs_FullMethodName = "/networkservice.ResourceService/GetAllResourceConfigs" ResourceService_GetResourceConfig_FullMethodName = "/networkservice.ResourceService/GetResourceConfig" ResourceService_GetAllResources_FullMethodName = "/networkservice.ResourceService/GetAllResources" ResourceService_GetResource_FullMethodName = "/networkservice.ResourceService/GetResource" )
const ( NetworkAttachmentService_CreateNetworkAttachment_FullMethodName = "/networkservice.NetworkAttachmentService/CreateNetworkAttachment" NetworkAttachmentService_DeleteNetworkAttachment_FullMethodName = "/networkservice.NetworkAttachmentService/DeleteNetworkAttachment" NetworkAttachmentService_GetAllNetworkAttachments_FullMethodName = "/networkservice.NetworkAttachmentService/GetAllNetworkAttachments" NetworkAttachmentService_GetNetworkAttachment_FullMethodName = "/networkservice.NetworkAttachmentService/GetNetworkAttachment" )
Variables ¶
var File_network_networkservice_proto protoreflect.FileDescriptor
var NetworkAttachmentService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "networkservice.NetworkAttachmentService", HandlerType: (*NetworkAttachmentServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "CreateNetworkAttachment", Handler: _NetworkAttachmentService_CreateNetworkAttachment_Handler, }, { MethodName: "DeleteNetworkAttachment", Handler: _NetworkAttachmentService_DeleteNetworkAttachment_Handler, }, { MethodName: "GetAllNetworkAttachments", Handler: _NetworkAttachmentService_GetAllNetworkAttachments_Handler, }, { MethodName: "GetNetworkAttachment", Handler: _NetworkAttachmentService_GetNetworkAttachment_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "network/networkservice.proto", }
NetworkAttachmentService_ServiceDesc is the grpc.ServiceDesc for NetworkAttachmentService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var ResourceService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "networkservice.ResourceService", HandlerType: (*ResourceServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "CreateResourceConfig", Handler: _ResourceService_CreateResourceConfig_Handler, }, { MethodName: "DeleteResourceConfig", Handler: _ResourceService_DeleteResourceConfig_Handler, }, { MethodName: "GetAllResourceConfigs", Handler: _ResourceService_GetAllResourceConfigs_Handler, }, { MethodName: "GetResourceConfig", Handler: _ResourceService_GetResourceConfig_Handler, }, { MethodName: "GetAllResources", Handler: _ResourceService_GetAllResources_Handler, }, { MethodName: "GetResource", Handler: _ResourceService_GetResource_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "network/networkservice.proto", }
ResourceService_ServiceDesc is the grpc.ServiceDesc for ResourceService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterNetworkAttachmentServiceHandler ¶
func RegisterNetworkAttachmentServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
RegisterNetworkAttachmentServiceHandler registers the http handlers for service NetworkAttachmentService to "mux". The handlers forward requests to the grpc endpoint over "conn".
func RegisterNetworkAttachmentServiceHandlerClient ¶
func RegisterNetworkAttachmentServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client NetworkAttachmentServiceClient) error
RegisterNetworkAttachmentServiceHandlerClient registers the http handlers for service NetworkAttachmentService to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "NetworkAttachmentServiceClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "NetworkAttachmentServiceClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "NetworkAttachmentServiceClient" to call the correct interceptors.
func RegisterNetworkAttachmentServiceHandlerFromEndpoint ¶
func RegisterNetworkAttachmentServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)
RegisterNetworkAttachmentServiceHandlerFromEndpoint is same as RegisterNetworkAttachmentServiceHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.
func RegisterNetworkAttachmentServiceHandlerServer ¶
func RegisterNetworkAttachmentServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server NetworkAttachmentServiceServer) error
RegisterNetworkAttachmentServiceHandlerServer registers the http handlers for service NetworkAttachmentService to "mux". UnaryRPC :call NetworkAttachmentServiceServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterNetworkAttachmentServiceHandlerFromEndpoint instead.
func RegisterNetworkAttachmentServiceServer ¶
func RegisterNetworkAttachmentServiceServer(s grpc.ServiceRegistrar, srv NetworkAttachmentServiceServer)
func RegisterResourceServiceHandler ¶
func RegisterResourceServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
RegisterResourceServiceHandler registers the http handlers for service ResourceService to "mux". The handlers forward requests to the grpc endpoint over "conn".
func RegisterResourceServiceHandlerClient ¶
func RegisterResourceServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client ResourceServiceClient) error
RegisterResourceServiceHandlerClient registers the http handlers for service ResourceService to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "ResourceServiceClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "ResourceServiceClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "ResourceServiceClient" to call the correct interceptors.
func RegisterResourceServiceHandlerFromEndpoint ¶
func RegisterResourceServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)
RegisterResourceServiceHandlerFromEndpoint is same as RegisterResourceServiceHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.
func RegisterResourceServiceHandlerServer ¶
func RegisterResourceServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server ResourceServiceServer) error
RegisterResourceServiceHandlerServer registers the http handlers for service ResourceService to "mux". UnaryRPC :call ResourceServiceServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterResourceServiceHandlerFromEndpoint instead.
func RegisterResourceServiceServer ¶
func RegisterResourceServiceServer(s grpc.ServiceRegistrar, srv ResourceServiceServer)
Types ¶
type InitialConfiguration ¶
type InitialConfiguration struct { ResourceConfigs []*ResourceConfig `protobuf:"bytes,1,rep,name=resourceConfigs,proto3" json:"resourceConfigs,omitempty"` // list of resource configurations Networkattachments []*NetworkAttachment `protobuf:"bytes,2,rep,name=networkattachments,proto3" json:"networkattachments,omitempty"` // list of network attachments // contains filtered or unexported fields }
func (*InitialConfiguration) Descriptor
deprecated
func (*InitialConfiguration) Descriptor() ([]byte, []int)
Deprecated: Use InitialConfiguration.ProtoReflect.Descriptor instead.
func (*InitialConfiguration) GetNetworkattachments ¶
func (x *InitialConfiguration) GetNetworkattachments() []*NetworkAttachment
func (*InitialConfiguration) GetResourceConfigs ¶
func (x *InitialConfiguration) GetResourceConfigs() []*ResourceConfig
func (*InitialConfiguration) ProtoMessage ¶
func (*InitialConfiguration) ProtoMessage()
func (*InitialConfiguration) ProtoReflect ¶
func (x *InitialConfiguration) ProtoReflect() protoreflect.Message
func (*InitialConfiguration) Reset ¶
func (x *InitialConfiguration) Reset()
func (*InitialConfiguration) String ¶
func (x *InitialConfiguration) String() string
type NetworkAttachment ¶
type NetworkAttachment struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` ResourceName string `protobuf:"bytes,2,opt,name=resourceName,proto3" json:"resourceName,omitempty"` Config *_struct.Struct `protobuf:"bytes,3,opt,name=config,proto3" json:"config,omitempty"` // contains filtered or unexported fields }
func (*NetworkAttachment) Descriptor
deprecated
func (*NetworkAttachment) Descriptor() ([]byte, []int)
Deprecated: Use NetworkAttachment.ProtoReflect.Descriptor instead.
func (*NetworkAttachment) GetConfig ¶
func (x *NetworkAttachment) GetConfig() *_struct.Struct
func (*NetworkAttachment) GetName ¶
func (x *NetworkAttachment) GetName() string
func (*NetworkAttachment) GetResourceName ¶
func (x *NetworkAttachment) GetResourceName() string
func (*NetworkAttachment) ProtoMessage ¶
func (*NetworkAttachment) ProtoMessage()
func (*NetworkAttachment) ProtoReflect ¶
func (x *NetworkAttachment) ProtoReflect() protoreflect.Message
func (*NetworkAttachment) Reset ¶
func (x *NetworkAttachment) Reset()
func (*NetworkAttachment) String ¶
func (x *NetworkAttachment) String() string
type NetworkAttachmentName ¶
type NetworkAttachmentName struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // contains filtered or unexported fields }
func (*NetworkAttachmentName) Descriptor
deprecated
func (*NetworkAttachmentName) Descriptor() ([]byte, []int)
Deprecated: Use NetworkAttachmentName.ProtoReflect.Descriptor instead.
func (*NetworkAttachmentName) GetName ¶
func (x *NetworkAttachmentName) GetName() string
func (*NetworkAttachmentName) ProtoMessage ¶
func (*NetworkAttachmentName) ProtoMessage()
func (*NetworkAttachmentName) ProtoReflect ¶
func (x *NetworkAttachmentName) ProtoReflect() protoreflect.Message
func (*NetworkAttachmentName) Reset ¶
func (x *NetworkAttachmentName) Reset()
func (*NetworkAttachmentName) String ¶
func (x *NetworkAttachmentName) String() string
type NetworkAttachmentServiceClient ¶
type NetworkAttachmentServiceClient interface { CreateNetworkAttachment(ctx context.Context, in *NetworkAttachment, opts ...grpc.CallOption) (*empty.Empty, error) DeleteNetworkAttachment(ctx context.Context, in *NetworkAttachmentName, opts ...grpc.CallOption) (*empty.Empty, error) GetAllNetworkAttachments(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*NetworkAttachments, error) GetNetworkAttachment(ctx context.Context, in *NetworkAttachmentName, opts ...grpc.CallOption) (*NetworkAttachment, error) }
NetworkAttachmentServiceClient is the client API for NetworkAttachmentService 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 NewNetworkAttachmentServiceClient ¶
func NewNetworkAttachmentServiceClient(cc grpc.ClientConnInterface) NetworkAttachmentServiceClient
type NetworkAttachmentServiceServer ¶
type NetworkAttachmentServiceServer interface { CreateNetworkAttachment(context.Context, *NetworkAttachment) (*empty.Empty, error) DeleteNetworkAttachment(context.Context, *NetworkAttachmentName) (*empty.Empty, error) GetAllNetworkAttachments(context.Context, *empty.Empty) (*NetworkAttachments, error) GetNetworkAttachment(context.Context, *NetworkAttachmentName) (*NetworkAttachment, error) // contains filtered or unexported methods }
NetworkAttachmentServiceServer is the server API for NetworkAttachmentService service. All implementations must embed UnimplementedNetworkAttachmentServiceServer for forward compatibility
type NetworkAttachments ¶
type NetworkAttachments struct { Networkattachments []*NetworkAttachment `protobuf:"bytes,1,rep,name=networkattachments,proto3" json:"networkattachments,omitempty"` // contains filtered or unexported fields }
func (*NetworkAttachments) Descriptor
deprecated
func (*NetworkAttachments) Descriptor() ([]byte, []int)
Deprecated: Use NetworkAttachments.ProtoReflect.Descriptor instead.
func (*NetworkAttachments) GetNetworkattachments ¶
func (x *NetworkAttachments) GetNetworkattachments() []*NetworkAttachment
func (*NetworkAttachments) ProtoMessage ¶
func (*NetworkAttachments) ProtoMessage()
func (*NetworkAttachments) ProtoReflect ¶
func (x *NetworkAttachments) ProtoReflect() protoreflect.Message
func (*NetworkAttachments) Reset ¶
func (x *NetworkAttachments) Reset()
func (*NetworkAttachments) String ¶
func (x *NetworkAttachments) String() string
type NicSelector ¶
type NicSelector struct { Vendors []string `protobuf:"bytes,1,rep,name=vendors,proto3" json:"vendors,omitempty"` Drivers []string `protobuf:"bytes,2,rep,name=drivers,proto3" json:"drivers,omitempty"` Devices []string `protobuf:"bytes,3,rep,name=devices,proto3" json:"devices,omitempty"` PfNames []string `protobuf:"bytes,4,rep,name=pfNames,proto3" json:"pfNames,omitempty"` // contains filtered or unexported fields }
func (*NicSelector) Descriptor
deprecated
func (*NicSelector) Descriptor() ([]byte, []int)
Deprecated: Use NicSelector.ProtoReflect.Descriptor instead.
func (*NicSelector) GetDevices ¶
func (x *NicSelector) GetDevices() []string
func (*NicSelector) GetDrivers ¶
func (x *NicSelector) GetDrivers() []string
func (*NicSelector) GetPfNames ¶
func (x *NicSelector) GetPfNames() []string
func (*NicSelector) GetVendors ¶
func (x *NicSelector) GetVendors() []string
func (*NicSelector) ProtoMessage ¶
func (*NicSelector) ProtoMessage()
func (*NicSelector) ProtoReflect ¶
func (x *NicSelector) ProtoReflect() protoreflect.Message
func (*NicSelector) Reset ¶
func (x *NicSelector) Reset()
func (*NicSelector) String ¶
func (x *NicSelector) String() string
type Resource ¶
type Resource struct { Spec *ResourceSpec `protobuf:"bytes,1,opt,name=spec,proto3" json:"spec,omitempty"` // resource configuration spec Status []*ResourceStatus `protobuf:"bytes,2,rep,name=status,proto3" json:"status,omitempty"` // discovered status corresponding to the spec // contains filtered or unexported fields }
func (*Resource) Descriptor
deprecated
func (*Resource) GetSpec ¶
func (x *Resource) GetSpec() *ResourceSpec
func (*Resource) GetStatus ¶
func (x *Resource) GetStatus() []*ResourceStatus
func (*Resource) ProtoMessage ¶
func (*Resource) ProtoMessage()
func (*Resource) ProtoReflect ¶
func (x *Resource) ProtoReflect() protoreflect.Message
type ResourceConfig ¶
type ResourceConfig struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` Mtu uint32 `protobuf:"varint,2,opt,name=mtu,proto3" json:"mtu,omitempty"` NumVfs uint32 `protobuf:"varint,3,opt,name=numVfs,proto3" json:"numVfs,omitempty"` NeedVhostNet bool `protobuf:"varint,4,opt,name=needVhostNet,proto3" json:"needVhostNet,omitempty"` NicSelector *NicSelector `protobuf:"bytes,5,opt,name=nicSelector,proto3" json:"nicSelector,omitempty"` DeviceType string `protobuf:"bytes,6,opt,name=deviceType,proto3" json:"deviceType,omitempty"` // contains filtered or unexported fields }
func (*ResourceConfig) Descriptor
deprecated
func (*ResourceConfig) Descriptor() ([]byte, []int)
Deprecated: Use ResourceConfig.ProtoReflect.Descriptor instead.
func (*ResourceConfig) GetDeviceType ¶
func (x *ResourceConfig) GetDeviceType() string
func (*ResourceConfig) GetMtu ¶
func (x *ResourceConfig) GetMtu() uint32
func (*ResourceConfig) GetName ¶
func (x *ResourceConfig) GetName() string
func (*ResourceConfig) GetNeedVhostNet ¶
func (x *ResourceConfig) GetNeedVhostNet() bool
func (*ResourceConfig) GetNicSelector ¶
func (x *ResourceConfig) GetNicSelector() *NicSelector
func (*ResourceConfig) GetNumVfs ¶
func (x *ResourceConfig) GetNumVfs() uint32
func (*ResourceConfig) ProtoMessage ¶
func (*ResourceConfig) ProtoMessage()
func (*ResourceConfig) ProtoReflect ¶
func (x *ResourceConfig) ProtoReflect() protoreflect.Message
func (*ResourceConfig) Reset ¶
func (x *ResourceConfig) Reset()
func (*ResourceConfig) String ¶
func (x *ResourceConfig) String() string
type ResourceConfigs ¶
type ResourceConfigs struct { ResourceConfigs []*ResourceConfig `protobuf:"bytes,1,rep,name=resourceConfigs,proto3" json:"resourceConfigs,omitempty"` // contains filtered or unexported fields }
func (*ResourceConfigs) Descriptor
deprecated
func (*ResourceConfigs) Descriptor() ([]byte, []int)
Deprecated: Use ResourceConfigs.ProtoReflect.Descriptor instead.
func (*ResourceConfigs) GetResourceConfigs ¶
func (x *ResourceConfigs) GetResourceConfigs() []*ResourceConfig
func (*ResourceConfigs) ProtoMessage ¶
func (*ResourceConfigs) ProtoMessage()
func (*ResourceConfigs) ProtoReflect ¶
func (x *ResourceConfigs) ProtoReflect() protoreflect.Message
func (*ResourceConfigs) Reset ¶
func (x *ResourceConfigs) Reset()
func (*ResourceConfigs) String ¶
func (x *ResourceConfigs) String() string
type ResourceName ¶
type ResourceName struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // contains filtered or unexported fields }
func (*ResourceName) Descriptor
deprecated
func (*ResourceName) Descriptor() ([]byte, []int)
Deprecated: Use ResourceName.ProtoReflect.Descriptor instead.
func (*ResourceName) GetName ¶
func (x *ResourceName) GetName() string
func (*ResourceName) ProtoMessage ¶
func (*ResourceName) ProtoMessage()
func (*ResourceName) ProtoReflect ¶
func (x *ResourceName) ProtoReflect() protoreflect.Message
func (*ResourceName) Reset ¶
func (x *ResourceName) Reset()
func (*ResourceName) String ¶
func (x *ResourceName) String() string
type ResourceServiceClient ¶
type ResourceServiceClient interface { CreateResourceConfig(ctx context.Context, in *ResourceConfig, opts ...grpc.CallOption) (*Resource, error) DeleteResourceConfig(ctx context.Context, in *ResourceName, opts ...grpc.CallOption) (*empty.Empty, error) GetAllResourceConfigs(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*ResourceConfigs, error) GetResourceConfig(ctx context.Context, in *ResourceName, opts ...grpc.CallOption) (*ResourceConfig, error) GetAllResources(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*Resources, error) GetResource(ctx context.Context, in *ResourceName, opts ...grpc.CallOption) (*Resource, error) }
ResourceServiceClient is the client API for ResourceService 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 NewResourceServiceClient ¶
func NewResourceServiceClient(cc grpc.ClientConnInterface) ResourceServiceClient
type ResourceServiceServer ¶
type ResourceServiceServer interface { CreateResourceConfig(context.Context, *ResourceConfig) (*Resource, error) DeleteResourceConfig(context.Context, *ResourceName) (*empty.Empty, error) GetAllResourceConfigs(context.Context, *empty.Empty) (*ResourceConfigs, error) GetResourceConfig(context.Context, *ResourceName) (*ResourceConfig, error) GetAllResources(context.Context, *empty.Empty) (*Resources, error) GetResource(context.Context, *ResourceName) (*Resource, error) // contains filtered or unexported methods }
ResourceServiceServer is the server API for ResourceService service. All implementations must embed UnimplementedResourceServiceServer for forward compatibility
type ResourceSpec ¶
type ResourceSpec struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` Mtu uint32 `protobuf:"varint,2,opt,name=mtu,proto3" json:"mtu,omitempty"` NumVfs uint32 `protobuf:"varint,3,opt,name=numVfs,proto3" json:"numVfs,omitempty"` NeedVhostNet bool `protobuf:"varint,4,opt,name=needVhostNet,proto3" json:"needVhostNet,omitempty"` Devices []string `protobuf:"bytes,5,rep,name=devices,proto3" json:"devices,omitempty"` DeviceType string `protobuf:"bytes,6,opt,name=deviceType,proto3" json:"deviceType,omitempty"` // contains filtered or unexported fields }
func (*ResourceSpec) Descriptor
deprecated
func (*ResourceSpec) Descriptor() ([]byte, []int)
Deprecated: Use ResourceSpec.ProtoReflect.Descriptor instead.
func (*ResourceSpec) GetDeviceType ¶
func (x *ResourceSpec) GetDeviceType() string
func (*ResourceSpec) GetDevices ¶
func (x *ResourceSpec) GetDevices() []string
func (*ResourceSpec) GetMtu ¶
func (x *ResourceSpec) GetMtu() uint32
func (*ResourceSpec) GetName ¶
func (x *ResourceSpec) GetName() string
func (*ResourceSpec) GetNeedVhostNet ¶
func (x *ResourceSpec) GetNeedVhostNet() bool
func (*ResourceSpec) GetNumVfs ¶
func (x *ResourceSpec) GetNumVfs() uint32
func (*ResourceSpec) ProtoMessage ¶
func (*ResourceSpec) ProtoMessage()
func (*ResourceSpec) ProtoReflect ¶
func (x *ResourceSpec) ProtoReflect() protoreflect.Message
func (*ResourceSpec) Reset ¶
func (x *ResourceSpec) Reset()
func (*ResourceSpec) String ¶
func (x *ResourceSpec) String() string
type ResourceStatus ¶
type ResourceStatus struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` Mtu uint32 `protobuf:"varint,2,opt,name=mtu,proto3" json:"mtu,omitempty"` NumVfs uint32 `protobuf:"varint,3,opt,name=numVfs,proto3" json:"numVfs,omitempty"` Mac string `protobuf:"bytes,4,opt,name=mac,proto3" json:"mac,omitempty"` Vendor string `protobuf:"bytes,5,opt,name=vendor,proto3" json:"vendor,omitempty"` Driver string `protobuf:"bytes,6,opt,name=driver,proto3" json:"driver,omitempty"` Device string `protobuf:"bytes,7,opt,name=device,proto3" json:"device,omitempty"` Vfs []*VFResourceStatus `protobuf:"bytes,8,rep,name=vfs,proto3" json:"vfs,omitempty"` // contains filtered or unexported fields }
func (*ResourceStatus) Descriptor
deprecated
func (*ResourceStatus) Descriptor() ([]byte, []int)
Deprecated: Use ResourceStatus.ProtoReflect.Descriptor instead.
func (*ResourceStatus) GetDevice ¶
func (x *ResourceStatus) GetDevice() string
func (*ResourceStatus) GetDriver ¶
func (x *ResourceStatus) GetDriver() string
func (*ResourceStatus) GetMac ¶
func (x *ResourceStatus) GetMac() string
func (*ResourceStatus) GetMtu ¶
func (x *ResourceStatus) GetMtu() uint32
func (*ResourceStatus) GetName ¶
func (x *ResourceStatus) GetName() string
func (*ResourceStatus) GetNumVfs ¶
func (x *ResourceStatus) GetNumVfs() uint32
func (*ResourceStatus) GetVendor ¶
func (x *ResourceStatus) GetVendor() string
func (*ResourceStatus) GetVfs ¶
func (x *ResourceStatus) GetVfs() []*VFResourceStatus
func (*ResourceStatus) ProtoMessage ¶
func (*ResourceStatus) ProtoMessage()
func (*ResourceStatus) ProtoReflect ¶
func (x *ResourceStatus) ProtoReflect() protoreflect.Message
func (*ResourceStatus) Reset ¶
func (x *ResourceStatus) Reset()
func (*ResourceStatus) String ¶
func (x *ResourceStatus) String() string
type Resources ¶
type Resources struct { Resources []*Resource `protobuf:"bytes,1,rep,name=resources,proto3" json:"resources,omitempty"` // contains filtered or unexported fields }
func (*Resources) Descriptor
deprecated
func (*Resources) GetResources ¶
func (*Resources) ProtoMessage ¶
func (*Resources) ProtoMessage()
func (*Resources) ProtoReflect ¶
func (x *Resources) ProtoReflect() protoreflect.Message
type UnimplementedNetworkAttachmentServiceServer ¶
type UnimplementedNetworkAttachmentServiceServer struct { }
UnimplementedNetworkAttachmentServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedNetworkAttachmentServiceServer) CreateNetworkAttachment ¶
func (UnimplementedNetworkAttachmentServiceServer) CreateNetworkAttachment(context.Context, *NetworkAttachment) (*empty.Empty, error)
func (UnimplementedNetworkAttachmentServiceServer) DeleteNetworkAttachment ¶
func (UnimplementedNetworkAttachmentServiceServer) DeleteNetworkAttachment(context.Context, *NetworkAttachmentName) (*empty.Empty, error)
func (UnimplementedNetworkAttachmentServiceServer) GetAllNetworkAttachments ¶
func (UnimplementedNetworkAttachmentServiceServer) GetAllNetworkAttachments(context.Context, *empty.Empty) (*NetworkAttachments, error)
func (UnimplementedNetworkAttachmentServiceServer) GetNetworkAttachment ¶
func (UnimplementedNetworkAttachmentServiceServer) GetNetworkAttachment(context.Context, *NetworkAttachmentName) (*NetworkAttachment, error)
type UnimplementedResourceServiceServer ¶
type UnimplementedResourceServiceServer struct { }
UnimplementedResourceServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedResourceServiceServer) CreateResourceConfig ¶
func (UnimplementedResourceServiceServer) CreateResourceConfig(context.Context, *ResourceConfig) (*Resource, error)
func (UnimplementedResourceServiceServer) DeleteResourceConfig ¶
func (UnimplementedResourceServiceServer) DeleteResourceConfig(context.Context, *ResourceName) (*empty.Empty, error)
func (UnimplementedResourceServiceServer) GetAllResourceConfigs ¶
func (UnimplementedResourceServiceServer) GetAllResourceConfigs(context.Context, *empty.Empty) (*ResourceConfigs, error)
func (UnimplementedResourceServiceServer) GetAllResources ¶
func (UnimplementedResourceServiceServer) GetResource ¶
func (UnimplementedResourceServiceServer) GetResource(context.Context, *ResourceName) (*Resource, error)
func (UnimplementedResourceServiceServer) GetResourceConfig ¶
func (UnimplementedResourceServiceServer) GetResourceConfig(context.Context, *ResourceName) (*ResourceConfig, error)
type UnsafeNetworkAttachmentServiceServer ¶
type UnsafeNetworkAttachmentServiceServer interface {
// contains filtered or unexported methods
}
UnsafeNetworkAttachmentServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to NetworkAttachmentServiceServer will result in compilation errors.
type UnsafeResourceServiceServer ¶
type UnsafeResourceServiceServer interface {
// contains filtered or unexported methods
}
UnsafeResourceServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to ResourceServiceServer will result in compilation errors.
type VFResourceStatus ¶
type VFResourceStatus struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` Mac string `protobuf:"bytes,2,opt,name=mac,proto3" json:"mac,omitempty"` Vendor string `protobuf:"bytes,3,opt,name=vendor,proto3" json:"vendor,omitempty"` Driver string `protobuf:"bytes,4,opt,name=driver,proto3" json:"driver,omitempty"` Device string `protobuf:"bytes,5,opt,name=device,proto3" json:"device,omitempty"` // contains filtered or unexported fields }
func (*VFResourceStatus) Descriptor
deprecated
func (*VFResourceStatus) Descriptor() ([]byte, []int)
Deprecated: Use VFResourceStatus.ProtoReflect.Descriptor instead.
func (*VFResourceStatus) GetDevice ¶
func (x *VFResourceStatus) GetDevice() string
func (*VFResourceStatus) GetDriver ¶
func (x *VFResourceStatus) GetDriver() string
func (*VFResourceStatus) GetMac ¶
func (x *VFResourceStatus) GetMac() string
func (*VFResourceStatus) GetName ¶
func (x *VFResourceStatus) GetName() string
func (*VFResourceStatus) GetVendor ¶
func (x *VFResourceStatus) GetVendor() string
func (*VFResourceStatus) ProtoMessage ¶
func (*VFResourceStatus) ProtoMessage()
func (*VFResourceStatus) ProtoReflect ¶
func (x *VFResourceStatus) ProtoReflect() protoreflect.Message
func (*VFResourceStatus) Reset ¶
func (x *VFResourceStatus) Reset()
func (*VFResourceStatus) String ¶
func (x *VFResourceStatus) String() string