Documentation ¶
Index ¶
- Constants
- type ActorInfo
- type EventKind
- type KeyManager
- type RepoEvent
- type RepoHead
- type RepoManager
- func (rm *RepoManager) BatchWrite(ctx context.Context, user models.Uid, ...) error
- func (rm *RepoManager) CarStore() carstore.CarStore
- func (rm *RepoManager) CheckRepoSig(ctx context.Context, r *repo.Repo, expdid string) error
- func (rm *RepoManager) CreateRecord(ctx context.Context, user models.Uid, collection string, rec cbg.CBORMarshaler) (string, cid.Cid, error)
- func (rm *RepoManager) DeleteRecord(ctx context.Context, user models.Uid, collection, rkey string) error
- func (rm *RepoManager) GetProfile(ctx context.Context, uid models.Uid) (*bsky.ActorProfile, error)
- func (rm *RepoManager) GetRecord(ctx context.Context, user models.Uid, collection string, rkey string, ...) (cid.Cid, cbg.CBORMarshaler, error)
- func (rm *RepoManager) GetRecordProof(ctx context.Context, user models.Uid, collection string, rkey string) (cid.Cid, []blocks.Block, error)
- func (rm *RepoManager) GetRepoRev(ctx context.Context, user models.Uid) (string, error)
- func (rm *RepoManager) GetRepoRoot(ctx context.Context, user models.Uid) (cid.Cid, error)
- func (rm *RepoManager) HandleExternalUserEvent(ctx context.Context, pdsid uint, uid models.Uid, did string, since *string, ...) error
- func (rm *RepoManager) ImportNewRepo(ctx context.Context, user models.Uid, repoDid string, r io.Reader, rev *string) error
- func (rm *RepoManager) InitNewActor(ctx context.Context, user models.Uid, handle, did, displayname string, ...) error
- func (rm *RepoManager) ReadRepo(ctx context.Context, user models.Uid, since string, w io.Writer) error
- func (rm *RepoManager) ResetRepo(ctx context.Context, uid models.Uid) error
- func (rm *RepoManager) SetEventHandler(cb func(context.Context, *RepoEvent), hydrateRecords bool)
- func (rm *RepoManager) TakeDownRepo(ctx context.Context, uid models.Uid) error
- func (rm *RepoManager) UpdateRecord(ctx context.Context, user models.Uid, collection, rkey string, ...) (cid.Cid, error)
- func (rm *RepoManager) VerifyRepo(ctx context.Context, uid models.Uid) error
- type RepoOp
Constants ¶
View Source
const ( EvtKindCreateRecord = EventKind("create") EvtKindUpdateRecord = EventKind("update") EvtKindDeleteRecord = EventKind("delete") )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type KeyManager ¶
type RepoManager ¶
type RepoManager struct {
// contains filtered or unexported fields
}
func NewRepoManager ¶
func NewRepoManager(cs carstore.CarStore, kmgr KeyManager) *RepoManager
func (*RepoManager) BatchWrite ¶
func (rm *RepoManager) BatchWrite(ctx context.Context, user models.Uid, writes []*atproto.RepoApplyWrites_Input_Writes_Elem) error
func (*RepoManager) CarStore ¶
func (rm *RepoManager) CarStore() carstore.CarStore
func (*RepoManager) CheckRepoSig ¶
func (*RepoManager) CreateRecord ¶
func (rm *RepoManager) CreateRecord(ctx context.Context, user models.Uid, collection string, rec cbg.CBORMarshaler) (string, cid.Cid, error)
func (*RepoManager) DeleteRecord ¶
func (*RepoManager) GetProfile ¶
func (rm *RepoManager) GetProfile(ctx context.Context, uid models.Uid) (*bsky.ActorProfile, error)
func (*RepoManager) GetRecord ¶
func (rm *RepoManager) GetRecord(ctx context.Context, user models.Uid, collection string, rkey string, maybeCid cid.Cid) (cid.Cid, cbg.CBORMarshaler, error)
func (*RepoManager) GetRecordProof ¶
func (*RepoManager) GetRepoRev ¶
func (*RepoManager) GetRepoRoot ¶
func (*RepoManager) HandleExternalUserEvent ¶
func (*RepoManager) ImportNewRepo ¶
func (*RepoManager) InitNewActor ¶
func (*RepoManager) SetEventHandler ¶
func (rm *RepoManager) SetEventHandler(cb func(context.Context, *RepoEvent), hydrateRecords bool)
func (*RepoManager) TakeDownRepo ¶
func (*RepoManager) UpdateRecord ¶
func (rm *RepoManager) UpdateRecord(ctx context.Context, user models.Uid, collection, rkey string, rec cbg.CBORMarshaler) (cid.Cid, error)
func (*RepoManager) VerifyRepo ¶
Click to show internal directories.
Click to hide internal directories.