Versions in this module Expand all Collapse all v1 v1.6.1 Oct 23, 2022 Changes in this version + var File_github_com_containerd_containerd_api_services_leases_v1_leases_proto protoreflect.FileDescriptor + var Leases_ServiceDesc = grpc.ServiceDesc + func RegisterLeasesServer(s grpc.ServiceRegistrar, srv LeasesServer) + type AddResourceRequest struct + ID string + Resource *Resource + func (*AddResourceRequest) Descriptor() ([]byte, []int) + func (*AddResourceRequest) ProtoMessage() + func (x *AddResourceRequest) GetID() string + func (x *AddResourceRequest) GetResource() *Resource + func (x *AddResourceRequest) ProtoReflect() protoreflect.Message + func (x *AddResourceRequest) Reset() + func (x *AddResourceRequest) String() string + type CreateRequest struct + ID string + Labels map[string]string + func (*CreateRequest) Descriptor() ([]byte, []int) + func (*CreateRequest) ProtoMessage() + func (x *CreateRequest) GetID() string + func (x *CreateRequest) GetLabels() map[string]string + func (x *CreateRequest) ProtoReflect() protoreflect.Message + func (x *CreateRequest) Reset() + func (x *CreateRequest) String() string + type CreateResponse struct + Lease *Lease + func (*CreateResponse) Descriptor() ([]byte, []int) + func (*CreateResponse) ProtoMessage() + func (x *CreateResponse) GetLease() *Lease + func (x *CreateResponse) ProtoReflect() protoreflect.Message + func (x *CreateResponse) Reset() + func (x *CreateResponse) String() string + type DeleteRequest struct + ID string + Sync bool + func (*DeleteRequest) Descriptor() ([]byte, []int) + func (*DeleteRequest) ProtoMessage() + func (x *DeleteRequest) GetID() string + func (x *DeleteRequest) GetSync() bool + func (x *DeleteRequest) ProtoReflect() protoreflect.Message + func (x *DeleteRequest) Reset() + func (x *DeleteRequest) String() string + type DeleteResourceRequest struct + ID string + Resource *Resource + func (*DeleteResourceRequest) Descriptor() ([]byte, []int) + func (*DeleteResourceRequest) ProtoMessage() + func (x *DeleteResourceRequest) GetID() string + func (x *DeleteResourceRequest) GetResource() *Resource + func (x *DeleteResourceRequest) ProtoReflect() protoreflect.Message + func (x *DeleteResourceRequest) Reset() + func (x *DeleteResourceRequest) String() string + type Lease struct + CreatedAt *timestamppb.Timestamp + ID string + Labels map[string]string + func (*Lease) Descriptor() ([]byte, []int) + func (*Lease) ProtoMessage() + func (x *Lease) GetCreatedAt() *timestamppb.Timestamp + func (x *Lease) GetID() string + func (x *Lease) GetLabels() map[string]string + func (x *Lease) ProtoReflect() protoreflect.Message + func (x *Lease) Reset() + func (x *Lease) String() string + type LeasesClient interface + AddResource func(ctx context.Context, in *AddResourceRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) + Create func(ctx context.Context, in *CreateRequest, opts ...grpc.CallOption) (*CreateResponse, error) + Delete func(ctx context.Context, in *DeleteRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) + DeleteResource func(ctx context.Context, in *DeleteResourceRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) + List func(ctx context.Context, in *ListRequest, opts ...grpc.CallOption) (*ListResponse, error) + ListResources func(ctx context.Context, in *ListResourcesRequest, opts ...grpc.CallOption) (*ListResourcesResponse, error) + func NewLeasesClient(cc grpc.ClientConnInterface) LeasesClient + type LeasesServer interface + AddResource func(context.Context, *AddResourceRequest) (*emptypb.Empty, error) + Create func(context.Context, *CreateRequest) (*CreateResponse, error) + Delete func(context.Context, *DeleteRequest) (*emptypb.Empty, error) + DeleteResource func(context.Context, *DeleteResourceRequest) (*emptypb.Empty, error) + List func(context.Context, *ListRequest) (*ListResponse, error) + ListResources func(context.Context, *ListResourcesRequest) (*ListResourcesResponse, error) + type ListRequest struct + Filters []string + func (*ListRequest) Descriptor() ([]byte, []int) + func (*ListRequest) ProtoMessage() + func (x *ListRequest) GetFilters() []string + func (x *ListRequest) ProtoReflect() protoreflect.Message + func (x *ListRequest) Reset() + func (x *ListRequest) String() string + type ListResourcesRequest struct + ID string + func (*ListResourcesRequest) Descriptor() ([]byte, []int) + func (*ListResourcesRequest) ProtoMessage() + func (x *ListResourcesRequest) GetID() string + func (x *ListResourcesRequest) ProtoReflect() protoreflect.Message + func (x *ListResourcesRequest) Reset() + func (x *ListResourcesRequest) String() string + type ListResourcesResponse struct + Resources []*Resource + func (*ListResourcesResponse) Descriptor() ([]byte, []int) + func (*ListResourcesResponse) ProtoMessage() + func (x *ListResourcesResponse) GetResources() []*Resource + func (x *ListResourcesResponse) ProtoReflect() protoreflect.Message + func (x *ListResourcesResponse) Reset() + func (x *ListResourcesResponse) String() string + type ListResponse struct + Leases []*Lease + func (*ListResponse) Descriptor() ([]byte, []int) + func (*ListResponse) ProtoMessage() + func (x *ListResponse) GetLeases() []*Lease + func (x *ListResponse) ProtoReflect() protoreflect.Message + func (x *ListResponse) Reset() + func (x *ListResponse) String() string + type Resource struct + ID string + Type string + func (*Resource) Descriptor() ([]byte, []int) + func (*Resource) ProtoMessage() + func (x *Resource) GetID() string + func (x *Resource) GetType() string + func (x *Resource) ProtoReflect() protoreflect.Message + func (x *Resource) Reset() + func (x *Resource) String() string + type UnimplementedLeasesServer struct + func (UnimplementedLeasesServer) AddResource(context.Context, *AddResourceRequest) (*emptypb.Empty, error) + func (UnimplementedLeasesServer) Create(context.Context, *CreateRequest) (*CreateResponse, error) + func (UnimplementedLeasesServer) Delete(context.Context, *DeleteRequest) (*emptypb.Empty, error) + func (UnimplementedLeasesServer) DeleteResource(context.Context, *DeleteResourceRequest) (*emptypb.Empty, error) + func (UnimplementedLeasesServer) List(context.Context, *ListRequest) (*ListResponse, error) + func (UnimplementedLeasesServer) ListResources(context.Context, *ListResourcesRequest) (*ListResourcesResponse, error) + type UnsafeLeasesServer interface Other modules containing this package github.com/goodbaikin/containerd