Documentation ¶
Index ¶
- Variables
- type Door
- type EncodedObject
- func (o *EncodedObject) Hash() plumbing.Hash
- func (o *EncodedObject) PBEncodeObject() *pb.EncodedObject
- func (o *EncodedObject) Reader() (io.ReadCloser, error)
- func (o *EncodedObject) SetSize(s int64)
- func (o *EncodedObject) SetType(t plumbing.ObjectType)
- func (o *EncodedObject) Size() int64
- func (o *EncodedObject) Type() plumbing.ObjectType
- func (o *EncodedObject) UUID() string
- func (o *EncodedObject) Writer() (io.WriteCloser, error)
- type EncodedObjectIterExt
- type Object
- type ObjectCache
- type ServerCommand
- type Store
- func (s *Store) CheckAndSetReference(ctx context.Context, params *pb.SetReferenceParams) (*pb.None, error)
- func (s *Store) CountLooseRefs(ctx context.Context, none *pb.None) (*pb.Int64, error)
- func (s *Store) EncodedObjectClose(ctx context.Context, none *pb.None) (*pb.None, error)
- func (s *Store) EncodedObjectEntity(ctx context.Context, objEntity *pb.GetEncodeObject) (*pb.EncodedObject, error)
- func (s *Store) EncodedObjectForEach(none *pb.None, stream pb.Storer_EncodedObjectForEachServer) error
- func (s *Store) EncodedObjectHash(ctx context.Context, none *pb.None) (*pb.Hash, error)
- func (s *Store) EncodedObjectNext(ctx context.Context, none *pb.None) (*pb.EncodedObject, error)
- func (s *Store) EncodedObjectRWStream(stream pb.Storer_EncodedObjectRWStreamServer) error
- func (s *Store) EncodedObjectSize(ctx context.Context, none *pb.None) (*pb.Int64, error)
- func (s *Store) EncodedObjectType(ctx context.Context, none *pb.None) (*pb.Int, error)
- func (s *Store) GetConfig(ctx context.Context, none *pb.None) (*pb.Config, error)
- func (s *Store) GetIndex(ctx context.Context, none *pb.None) (*pb.Index, error)
- func (s *Store) GetReference(ctx context.Context, name *pb.ReferenceName) (*pb.Reference, error)
- func (s *Store) GetReferences(ctx context.Context, none *pb.None) (*pb.References, error)
- func (s *Store) Modules(ctx context.Context, none *pb.None) (*pb.ModuleNames, error)
- func (s *Store) NewEncodedObject(ctx context.Context, none *pb.None) (*pb.UUID, error)
- func (s *Store) NewEncodedObjectIter(ctx context.Context, tp *pb.ObjectType) (*pb.None, error)
- func (s *Store) PackRefs(ctx context.Context, none *pb.None) (*pb.None, error)
- func (s *Store) RemoveReference(ctx context.Context, name *pb.ReferenceName) (*pb.None, error)
- func (s *Store) SetConfig(ctx context.Context, c *pb.Config) (*pb.None, error)
- func (s *Store) SetEncodedObject(ctx context.Context, uuid *pb.UUID) (*pb.Hash, error)
- func (s *Store) SetEncodedObjectSetSize(ctx context.Context, i *pb.Int64) (*pb.None, error)
- func (s *Store) SetEncodedObjectType(ctx context.Context, i *pb.Int) (*pb.None, error)
- func (s *Store) SetIndex(ctx context.Context, idx *pb.Index) (*pb.None, error)
- func (s *Store) SetReference(ctx context.Context, reference *pb.Reference) (*pb.None, error)
- func (s *Store) SetShallow(ctx context.Context, hashs *pb.Hashs) (*pb.None, error)
- func (s *Store) Shallow(ctx context.Context, none *pb.None) (*pb.Hashs, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrNotFoundObject = errors.New("Not found object") ErrNotFoundIter = errors.New("Not found iter") )
Functions ¶
This section is empty.
Types ¶
type Door ¶
type Door struct { *pb.UnimplementedDoorServer // contains filtered or unexported fields }
type EncodedObject ¶
type EncodedObject struct {
// contains filtered or unexported fields
}
func NewEncodedObject ¶
func NewEncodedObject(ctx context.Context, uuid, repoPath string, obj plumbing.EncodedObject) *EncodedObject
func (*EncodedObject) Hash ¶
func (o *EncodedObject) Hash() plumbing.Hash
func (*EncodedObject) PBEncodeObject ¶
func (o *EncodedObject) PBEncodeObject() *pb.EncodedObject
func (*EncodedObject) Reader ¶
func (o *EncodedObject) Reader() (io.ReadCloser, error)
func (*EncodedObject) SetSize ¶
func (o *EncodedObject) SetSize(s int64)
func (*EncodedObject) SetType ¶
func (o *EncodedObject) SetType(t plumbing.ObjectType)
func (*EncodedObject) Size ¶
func (o *EncodedObject) Size() int64
func (*EncodedObject) Type ¶
func (o *EncodedObject) Type() plumbing.ObjectType
func (*EncodedObject) UUID ¶
func (o *EncodedObject) UUID() string
func (*EncodedObject) Writer ¶
func (o *EncodedObject) Writer() (io.WriteCloser, error)
type EncodedObjectIterExt ¶
type EncodedObjectIterExt struct { storer.EncodedObjectIter // contains filtered or unexported fields }
func (*EncodedObjectIterExt) UUID ¶
func (e *EncodedObjectIterExt) UUID() string
type ObjectCache ¶
type ObjectCache struct {
// contains filtered or unexported fields
}
func NewObjectCache ¶
func NewObjectCache(objectTimeout time.Duration) *ObjectCache
func (*ObjectCache) Set ¶
func (c *ObjectCache) Set(obj Object)
type ServerCommand ¶
type ServerCommand struct {
// contains filtered or unexported fields
}
ServerCommand is used for a single server command execution.
func (*ServerCommand) Close ¶
func (s *ServerCommand) Close() error
type Store ¶
type Store struct { *pb.UnimplementedStorerServer // contains filtered or unexported fields }
func (*Store) CheckAndSetReference ¶
func (*Store) CountLooseRefs ¶
func (*Store) EncodedObjectClose ¶
func (*Store) EncodedObjectEntity ¶
func (s *Store) EncodedObjectEntity(ctx context.Context, objEntity *pb.GetEncodeObject) (*pb.EncodedObject, error)
func (*Store) EncodedObjectForEach ¶
func (*Store) EncodedObjectHash ¶
func (*Store) EncodedObjectNext ¶
EncodedObjectNext(context.Context, *None) (*EncodedObject, error)
func (*Store) EncodedObjectRWStream ¶
func (s *Store) EncodedObjectRWStream(stream pb.Storer_EncodedObjectRWStreamServer) error
func (*Store) EncodedObjectSize ¶
func (*Store) EncodedObjectType ¶
func (*Store) GetReference ¶
func (*Store) GetReferences ¶
func (*Store) NewEncodedObject ¶
func (*Store) NewEncodedObjectIter ¶
func (*Store) RemoveReference ¶
func (*Store) SetEncodedObject ¶
func (*Store) SetEncodedObjectSetSize ¶
func (*Store) SetEncodedObjectType ¶
func (*Store) SetReference ¶
func (*Store) SetShallow ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.