Documentation
¶
Overview ¶
Package pg is an index store in a Postgres database, which isn't implemented yet (#72): each of its methods returns ErrNotImplemented
Index ¶
- type Store
- func (self *Store) Changed(context.Context, string, string, string, int) ([]store.Seen, error)
- func (self *Store) Claim(context.Context, string, []store.Kind, int, time.Duration) ([]store.Work, error)
- func (self *Store) CountChanged(context.Context, string, string) (uint64, error)
- func (self *Store) CountObjects(context.Context, string, store.ListRequest) (uint64, error)
- func (self *Store) CreateVolume(context.Context, schema.VolumeMeta) (*schema.Volume, error)
- func (self *Store) DeleteMetadata(context.Context, string, string) error
- func (self *Store) DeleteObject(context.Context, string, string) error
- func (self *Store) DeleteUnlinkedArtwork(context.Context) (int, error)
- func (self *Store) DeleteVolume(context.Context, string) error
- func (self *Store) Done(context.Context, string, ...store.Work) error
- func (self *Store) Failed(context.Context, string, store.Work, error, time.Duration) error
- func (self *Store) GetArtwork(context.Context, string, bool) (*schema.Artwork, error)
- func (self *Store) GetObject(context.Context, string, string) (*schema.Object, error)
- func (self *Store) GetVolume(context.Context, string) (*schema.Volume, error)
- func (self *Store) Kinds(context.Context, string) (map[string]uint64, error)
- func (self *Store) ListObjects(context.Context, string, store.ListRequest) ([]*schema.Object, error)
- func (self *Store) ListVolumes(context.Context) ([]*schema.Volume, error)
- func (self *Store) ObjectArtwork(context.Context, string, string) ([]*schema.Artwork, error)
- func (self *Store) Pending(context.Context, string, string) (bool, error)
- func (self *Store) PendingBeneath(context.Context, string, string) (bool, error)
- func (self *Store) Push(context.Context, string, ...store.Work) error
- func (self *Store) PushStale(context.Context, string, string, store.Kind) error
- func (self *Store) PutObject(context.Context, string, ...*schema.Object) error
- func (self *Store) Revisions(context.Context, string, string, bool) (map[string]string, error)
- func (self *Store) Search(context.Context, schema.SearchRequest) (*schema.SearchResponse, error)
- func (self *Store) Seen(context.Context, string, map[string]string) error
- func (self *Store) SetMetadata(context.Context, string, string, string, *schema.ObjectAttr, schema.TaskMeta) error
- func (self *Store) SetObjectArtwork(context.Context, string, string, ...schema.ArtworkMeta) ([]*schema.Artwork, error)
- func (self *Store) SetRevisions(context.Context, string, map[string]string) error
- func (self *Store) SetState(context.Context, string, schema.IndexState) error
- func (self *Store) State(context.Context, string) (schema.IndexState, error)
- func (self *Store) Sweep(context.Context, string, string) error
- func (self *Store) Tasks(context.Context, string, store.Kind) (schema.TaskState, error)
- func (self *Store) UnlinkVolumeArtwork(context.Context, string) error
- func (self *Store) Unsee(context.Context, string, string) error
- func (self *Store) UpdateVolume(context.Context, schema.VolumeMeta) (*schema.Volume, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Store ¶
type Store struct {
// contains filtered or unexported fields
}
Store is an index in a Postgres database, of a pool of its connections
func New ¶
New returns an index store of a pool of connections to its database, such as go-pg's pkg/cmd PostgresFlags' Connect returns, which its owner closes
func (*Store) CountChanged ¶
func (*Store) CountObjects ¶
func (*Store) CreateVolume ¶
func (*Store) DeleteMetadata ¶
func (*Store) DeleteUnlinkedArtwork ¶ added in v0.6.0
func (*Store) GetArtwork ¶ added in v0.6.0
func (*Store) ListObjects ¶
func (*Store) ListVolumes ¶
func (*Store) ObjectArtwork ¶ added in v0.6.0
func (*Store) PendingBeneath ¶
func (*Store) Search ¶
func (self *Store) Search(context.Context, schema.SearchRequest) (*schema.SearchResponse, error)