Documentation ¶
Index ¶
- Variables
- func RegisterLabelerServer(s *grpc.Server, srv LabelerServer)
- type LabelerClient
- type LabelerServer
- type MockLabelerClient
- type NewMockLabelerClientT
- type SetLabelsReply
- type SetLabelsRequest
- func (*SetLabelsRequest) Descriptor() ([]byte, []int)deprecated
- func (x *SetLabelsRequest) GetFeatures() *v1alpha1.Features
- func (x *SetLabelsRequest) GetLabels() map[string]string
- func (x *SetLabelsRequest) GetNfdVersion() string
- func (x *SetLabelsRequest) GetNodeName() string
- func (*SetLabelsRequest) ProtoMessage()
- func (x *SetLabelsRequest) ProtoReflect() protoreflect.Message
- func (x *SetLabelsRequest) Reset()
- func (x *SetLabelsRequest) String() string
- type UnimplementedLabelerServer
Constants ¶
This section is empty.
Variables ¶
var File_labeler_proto protoreflect.FileDescriptor
Functions ¶
func RegisterLabelerServer ¶
func RegisterLabelerServer(s *grpc.Server, srv LabelerServer)
Types ¶
type LabelerClient ¶
type LabelerClient interface {
SetLabels(ctx context.Context, in *SetLabelsRequest, opts ...grpc.CallOption) (*SetLabelsReply, error)
}
LabelerClient is the client API for Labeler service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewLabelerClient ¶
func NewLabelerClient(cc grpc.ClientConnInterface) LabelerClient
type LabelerServer ¶
type LabelerServer interface {
SetLabels(context.Context, *SetLabelsRequest) (*SetLabelsReply, error)
}
LabelerServer is the server API for Labeler service.
type MockLabelerClient ¶
MockLabelerClient is an autogenerated mock type for the LabelerClient type
func NewMockLabelerClient ¶ added in v0.12.0
func NewMockLabelerClient(t NewMockLabelerClientT) *MockLabelerClient
NewMockLabelerClient creates a new instance of MockLabelerClient. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*MockLabelerClient) SetLabels ¶
func (_m *MockLabelerClient) SetLabels(ctx context.Context, in *SetLabelsRequest, opts ...grpc.CallOption) (*SetLabelsReply, error)
SetLabels provides a mock function with given fields: ctx, in, opts
type NewMockLabelerClientT ¶ added in v0.12.0
type SetLabelsReply ¶
type SetLabelsReply struct {
// contains filtered or unexported fields
}
func (*SetLabelsReply) Descriptor
deprecated
func (*SetLabelsReply) Descriptor() ([]byte, []int)
Deprecated: Use SetLabelsReply.ProtoReflect.Descriptor instead.
func (*SetLabelsReply) ProtoMessage ¶
func (*SetLabelsReply) ProtoMessage()
func (*SetLabelsReply) ProtoReflect ¶ added in v0.9.0
func (x *SetLabelsReply) ProtoReflect() protoreflect.Message
func (*SetLabelsReply) Reset ¶
func (x *SetLabelsReply) Reset()
func (*SetLabelsReply) String ¶
func (x *SetLabelsReply) String() string
type SetLabelsRequest ¶
type SetLabelsRequest struct { NfdVersion string `protobuf:"bytes,1,opt,name=nfd_version,json=nfdVersion,proto3" json:"nfd_version,omitempty"` NodeName string `protobuf:"bytes,2,opt,name=node_name,json=nodeName,proto3" json:"node_name,omitempty"` Labels map[string]string `` /* 153-byte string literal not displayed */ Features *v1alpha1.Features `protobuf:"bytes,4,opt,name=features,proto3" json:"features,omitempty"` // contains filtered or unexported fields }
func (*SetLabelsRequest) Descriptor
deprecated
func (*SetLabelsRequest) Descriptor() ([]byte, []int)
Deprecated: Use SetLabelsRequest.ProtoReflect.Descriptor instead.
func (*SetLabelsRequest) GetFeatures ¶ added in v0.10.0
func (x *SetLabelsRequest) GetFeatures() *v1alpha1.Features
func (*SetLabelsRequest) GetLabels ¶
func (x *SetLabelsRequest) GetLabels() map[string]string
func (*SetLabelsRequest) GetNfdVersion ¶
func (x *SetLabelsRequest) GetNfdVersion() string
func (*SetLabelsRequest) GetNodeName ¶
func (x *SetLabelsRequest) GetNodeName() string
func (*SetLabelsRequest) ProtoMessage ¶
func (*SetLabelsRequest) ProtoMessage()
func (*SetLabelsRequest) ProtoReflect ¶ added in v0.9.0
func (x *SetLabelsRequest) ProtoReflect() protoreflect.Message
func (*SetLabelsRequest) Reset ¶
func (x *SetLabelsRequest) Reset()
func (*SetLabelsRequest) String ¶
func (x *SetLabelsRequest) String() string
type UnimplementedLabelerServer ¶ added in v0.9.0
type UnimplementedLabelerServer struct { }
UnimplementedLabelerServer can be embedded to have forward compatible implementations.
func (*UnimplementedLabelerServer) SetLabels ¶ added in v0.9.0
func (*UnimplementedLabelerServer) SetLabels(context.Context, *SetLabelsRequest) (*SetLabelsReply, error)