labeler

package
v0.14.3 Latest Latest
Warning

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

Go to latest
Published: Oct 23, 2023 License: Apache-2.0 Imports: 11 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
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

type MockLabelerClient struct {
	mock.Mock
}

MockLabelerClient is an autogenerated mock type for the LabelerClient type

func NewMockLabelerClient added in v0.12.0

func NewMockLabelerClient(t interface {
	mock.TestingT
	Cleanup(func())
}) *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. The first argument is typically a *testing.T value.

func (*MockLabelerClient) SetLabels

SetLabels provides a mock function with given fields: ctx, in, opts

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

Jump to

Keyboard shortcuts

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