Documentation ¶
Overview ¶
Package version defines the version service.
Index ¶
- Variables
- func RegisterVersionServer(s grpc.ServiceRegistrar, srv VersionServer)
- type UnimplementedVersionServer
- type UnsafeVersionServer
- type VersionClient
- type VersionResponse
- func (*VersionResponse) Descriptor() ([]byte, []int)deprecated
- func (x *VersionResponse) GetRevision() string
- func (x *VersionResponse) GetVersion() string
- func (*VersionResponse) ProtoMessage()
- func (x *VersionResponse) ProtoReflect() protoreflect.Message
- func (x *VersionResponse) Reset()
- func (x *VersionResponse) String() string
- type VersionServer
Constants ¶
This section is empty.
Variables ¶
var File_github_com_containerd_containerd_api_services_version_v1_version_proto protoreflect.FileDescriptor
var Version_ServiceDesc = grpc.ServiceDesc{ ServiceName: "containerd.services.version.v1.Version", HandlerType: (*VersionServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "Version", Handler: _Version_Version_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "github.com/containerd/containerd/api/services/version/v1/version.proto", }
Version_ServiceDesc is the grpc.ServiceDesc for Version service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterVersionServer ¶
func RegisterVersionServer(s grpc.ServiceRegistrar, srv VersionServer)
Types ¶
type UnimplementedVersionServer ¶ added in v1.4.0
type UnimplementedVersionServer struct { }
UnimplementedVersionServer must be embedded to have forward compatible implementations.
func (UnimplementedVersionServer) Version ¶ added in v1.4.0
func (UnimplementedVersionServer) Version(context.Context, *emptypb.Empty) (*VersionResponse, error)
type UnsafeVersionServer ¶ added in v1.7.0
type UnsafeVersionServer interface {
// contains filtered or unexported methods
}
UnsafeVersionServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to VersionServer will result in compilation errors.
type VersionClient ¶
type VersionClient interface {
Version(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*VersionResponse, error)
}
VersionClient is the client API for Version 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 NewVersionClient ¶
func NewVersionClient(cc grpc.ClientConnInterface) VersionClient
type VersionResponse ¶
type VersionResponse struct { Version string `protobuf:"bytes,1,opt,name=version,proto3" json:"version,omitempty"` Revision string `protobuf:"bytes,2,opt,name=revision,proto3" json:"revision,omitempty"` // contains filtered or unexported fields }
func (*VersionResponse) Descriptor
deprecated
func (*VersionResponse) Descriptor() ([]byte, []int)
Deprecated: Use VersionResponse.ProtoReflect.Descriptor instead.
func (*VersionResponse) GetRevision ¶ added in v1.7.0
func (x *VersionResponse) GetRevision() string
func (*VersionResponse) GetVersion ¶ added in v1.7.0
func (x *VersionResponse) GetVersion() string
func (*VersionResponse) ProtoMessage ¶
func (*VersionResponse) ProtoMessage()
func (*VersionResponse) ProtoReflect ¶ added in v1.7.0
func (x *VersionResponse) ProtoReflect() protoreflect.Message
func (*VersionResponse) Reset ¶
func (x *VersionResponse) Reset()
func (*VersionResponse) String ¶
func (x *VersionResponse) String() string
type VersionServer ¶
type VersionServer interface { Version(context.Context, *emptypb.Empty) (*VersionResponse, error) // contains filtered or unexported methods }
VersionServer is the server API for Version service. All implementations must embed UnimplementedVersionServer for forward compatibility