Versions in this module Expand all Collapse all v1 v1.2.4 Feb 13, 2019 Changes in this version + var ErrIntOverflowLeases = fmt.Errorf("proto: integer overflow") + var ErrInvalidLengthLeases = fmt.Errorf("proto: negative length found during unmarshaling") + func RegisterLeasesServer(s *grpc.Server, srv LeasesServer) + type CreateRequest struct + ID string + Labels map[string]string + func (*CreateRequest) Descriptor() ([]byte, []int) + func (*CreateRequest) ProtoMessage() + func (m *CreateRequest) Marshal() (dAtA []byte, err error) + func (m *CreateRequest) MarshalTo(dAtA []byte) (int, error) + func (m *CreateRequest) Reset() + func (m *CreateRequest) Size() (n int) + func (m *CreateRequest) Unmarshal(dAtA []byte) error + func (this *CreateRequest) String() string + type CreateResponse struct + Lease *Lease + func (*CreateResponse) Descriptor() ([]byte, []int) + func (*CreateResponse) ProtoMessage() + func (m *CreateResponse) Marshal() (dAtA []byte, err error) + func (m *CreateResponse) MarshalTo(dAtA []byte) (int, error) + func (m *CreateResponse) Reset() + func (m *CreateResponse) Size() (n int) + func (m *CreateResponse) Unmarshal(dAtA []byte) error + func (this *CreateResponse) String() string + type DeleteRequest struct + ID string + Sync bool + func (*DeleteRequest) Descriptor() ([]byte, []int) + func (*DeleteRequest) ProtoMessage() + func (m *DeleteRequest) Marshal() (dAtA []byte, err error) + func (m *DeleteRequest) MarshalTo(dAtA []byte) (int, error) + func (m *DeleteRequest) Reset() + func (m *DeleteRequest) Size() (n int) + func (m *DeleteRequest) Unmarshal(dAtA []byte) error + func (this *DeleteRequest) String() string + type Lease struct + CreatedAt time.Time + ID string + Labels map[string]string + func (*Lease) Descriptor() ([]byte, []int) + func (*Lease) ProtoMessage() + func (m *Lease) Marshal() (dAtA []byte, err error) + func (m *Lease) MarshalTo(dAtA []byte) (int, error) + func (m *Lease) Reset() + func (m *Lease) Size() (n int) + func (m *Lease) Unmarshal(dAtA []byte) error + func (this *Lease) String() string + type LeasesClient interface + Create func(ctx context.Context, in *CreateRequest, opts ...grpc.CallOption) (*CreateResponse, error) + Delete func(ctx context.Context, in *DeleteRequest, opts ...grpc.CallOption) (*google_protobuf1.Empty, error) + List func(ctx context.Context, in *ListRequest, opts ...grpc.CallOption) (*ListResponse, error) + func NewLeasesClient(cc *grpc.ClientConn) LeasesClient + type LeasesServer interface + Create func(context.Context, *CreateRequest) (*CreateResponse, error) + Delete func(context.Context, *DeleteRequest) (*google_protobuf1.Empty, error) + List func(context.Context, *ListRequest) (*ListResponse, error) + type ListRequest struct + Filters []string + func (*ListRequest) Descriptor() ([]byte, []int) + func (*ListRequest) ProtoMessage() + func (m *ListRequest) Marshal() (dAtA []byte, err error) + func (m *ListRequest) MarshalTo(dAtA []byte) (int, error) + func (m *ListRequest) Reset() + func (m *ListRequest) Size() (n int) + func (m *ListRequest) Unmarshal(dAtA []byte) error + func (this *ListRequest) String() string + type ListResponse struct + Leases []*Lease + func (*ListResponse) Descriptor() ([]byte, []int) + func (*ListResponse) ProtoMessage() + func (m *ListResponse) Marshal() (dAtA []byte, err error) + func (m *ListResponse) MarshalTo(dAtA []byte) (int, error) + func (m *ListResponse) Reset() + func (m *ListResponse) Size() (n int) + func (m *ListResponse) Unmarshal(dAtA []byte) error + func (this *ListResponse) String() string