Documentation
¶
Index ¶
- type Filer
- func (filer *Filer) CreateArtwork(ctx context.Context, req schema.ArtworkMeta, object *schema.ObjectKey) (_ *schema.Artwork, err error)
- func (filer *Filer) CreateLLMProvider(ctx context.Context, req schema.LLMProviderCreate) (_ *schema.LLMProvider, err error)
- func (filer *Filer) CreateObject(ctx context.Context, req schema.CreateObjectRequest, attr schema.ObjectAttr) (_ *schema.Object, _ bool, err error)
- func (filer *Filer) CreateVolume(ctx context.Context, url *url.URL, meta schema.VolumeMeta) (_ *schema.Volume, err error)
- func (filer *Filer) DeleteVolume(ctx context.Context, name string) (_ *schema.Volume, err error)
- func (filer *Filer) GetArtwork(ctx context.Context, req schema.GetArtworkRequest) (_ *schema.Artwork, err error)
- func (filer *Filer) GetMetadata(ctx context.Context, r io.Reader) (_ *schema.ObjectMeta, err error)
- func (filer *Filer) GetObject(ctx context.Context, req schema.ObjectKey) (_ *schema.Object, err error)
- func (filer *Filer) GetVolume(ctx context.Context, name string) (_ *schema.Volume, err error)
- func (filer *Filer) LinkArtwork(ctx context.Context, object schema.ObjectKey, artwork schema.ArtworkKey) (_ *schema.ObjectArtwork, err error)
- func (filer *Filer) ListObjects(ctx context.Context, req schema.ObjectListRequest) (_ *schema.ObjectList, err error)
- func (filer *Filer) ListVolumes(ctx context.Context, req schema.VolumeListRequest) (_ *schema.VolumeList, err error)
- func (filer *Filer) ReadObject(ctx context.Context, req schema.ObjectKey, attr schema.ObjectAttr) (_ io.ReadCloser, _ *schema.Object, err error)
- func (filer *Filer) RegisterVolumeMetrics(name string) (err error)
- func (filer *Filer) ReindexVolume(ctx context.Context, name string, req schema.ObjectListFilters, force bool, ...) (err error)
- func (filer *Filer) Run(ctx context.Context, logger *slog.Logger) (err error)
- func (filer *Filer) Search(ctx context.Context, req schema.SearchListRequest) (_ *schema.SearchList, err error)
- func (filer *Filer) UnlinkArtwork(ctx context.Context, object schema.ObjectKey, artwork schema.ArtworkKey) (_ *schema.ObjectArtwork, err error)
- func (filer *Filer) UpdateVolume(ctx context.Context, name string, meta schema.VolumeMeta) (_ *schema.Volume, err error)
- type Opt
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Filer ¶ added in v0.2.20
type Filer struct {
pg.PoolConn
*credential.Credentials
// contains filtered or unexported fields
}
func (*Filer) CreateArtwork ¶ added in v0.2.20
func (*Filer) CreateLLMProvider ¶ added in v0.2.20
func (filer *Filer) CreateLLMProvider(ctx context.Context, req schema.LLMProviderCreate) (_ *schema.LLMProvider, err error)
CreateLLMProvider creates a new LLM provider which can be used for extracting metadata whilst indexing objects
func (*Filer) CreateObject ¶ added in v0.2.24
func (*Filer) CreateVolume ¶ added in v0.2.20
func (filer *Filer) CreateVolume(ctx context.Context, url *url.URL, meta schema.VolumeMeta) (_ *schema.Volume, err error)
CreateVolume creates a new volume record in the database, and returns the created record.
func (*Filer) DeleteVolume ¶ added in v0.2.20
DeleteVolume deletes a volume record from the database, and returns the deleted record.
func (*Filer) GetArtwork ¶ added in v0.2.20
func (*Filer) GetMetadata ¶ added in v0.2.20
func (*Filer) LinkArtwork ¶ added in v0.2.20
func (filer *Filer) LinkArtwork(ctx context.Context, object schema.ObjectKey, artwork schema.ArtworkKey) (_ *schema.ObjectArtwork, err error)
func (*Filer) ListObjects ¶ added in v0.2.20
func (filer *Filer) ListObjects(ctx context.Context, req schema.ObjectListRequest) (_ *schema.ObjectList, err error)
func (*Filer) ListVolumes ¶ added in v0.2.20
func (filer *Filer) ListVolumes(ctx context.Context, req schema.VolumeListRequest) (_ *schema.VolumeList, err error)
ListVolumes returns all volumes as a list.
func (*Filer) ReadObject ¶ added in v0.2.25
func (*Filer) RegisterVolumeMetrics ¶ added in v0.2.20
func (*Filer) ReindexVolume ¶ added in v0.2.20
func (filer *Filer) ReindexVolume(ctx context.Context, name string, req schema.ObjectListFilters, force bool, callback func(total uint64)) (err error)
ReindexVolume reindexes objects in a volume according to the provided object filters.
func (*Filer) Search ¶ added in v0.2.20
func (filer *Filer) Search(ctx context.Context, req schema.SearchListRequest) (_ *schema.SearchList, err error)
func (*Filer) UnlinkArtwork ¶ added in v0.2.20
func (filer *Filer) UnlinkArtwork(ctx context.Context, object schema.ObjectKey, artwork schema.ArtworkKey) (_ *schema.ObjectArtwork, err error)
type Opt ¶
type Opt func(*opt) error
Opt is a functional option for filer manager configuration.
func WithIndexer ¶ added in v0.2.0
WithIndexer uses this instance as an indexer of content
func WithLLMClientOpts ¶ added in v0.2.10
WithLLMClientOpts sets options for the LLM provider registry's HTTP clients.
func WithPassphrase ¶ added in v0.2.7
WithPassphrase registers an in-memory storage passphrase for a certificate passphrase version. Versions are uint64 and passphrases must be non-empty.
func WithSchema ¶ added in v0.2.20
WithSchema sets the database schema used for storing filer objects.
func WithTracer ¶
WithTracer sets the tracer used for tracing operations.