Documentation
¶
Index ¶
- type Manager
- func (manager *Manager) Backend(name string) backend.Backend
- func (manager *Manager) Backends() []string
- func (manager *Manager) CreateObject(ctx context.Context, name string, req schema.CreateObjectRequest) (obj *schema.Object, err error)
- func (manager *Manager) DeleteObject(ctx context.Context, name string, req schema.DeleteObjectRequest) (obj *schema.Object, err error)
- func (manager *Manager) DeleteObjects(ctx context.Context, name string, req schema.DeleteObjectsRequest) (resp *schema.DeleteObjectsResponse, err error)
- func (manager *Manager) GetObject(ctx context.Context, name string, req schema.GetObjectRequest) (obj *schema.Object, err error)
- func (manager *Manager) ListObjects(ctx context.Context, name string, req schema.ListObjectsRequest) (resp *schema.ListObjectsResponse, err error)
- func (manager *Manager) QueueIndexTask(ctx context.Context, objects ...schema.Object) error
- func (manager *Manager) ReadObject(ctx context.Context, name string, req schema.ReadObjectRequest) (r io.ReadCloser, obj *schema.Object, err error)
- func (manager *Manager) Run(ctx context.Context) (err error)
- func (manager *Manager) RunIndexer(ctx context.Context, payload json.RawMessage) (any, error)
- func (manager *Manager) Tracer() trace.Tracer
- type Opt
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Manager ¶
func New ¶
func New(ctx context.Context, pool pg.PoolConn, queue *queuemanager.Manager, opts ...Opt) (result *Manager, err error)
New creates a new filer manager.
func (*Manager) CreateObject ¶
func (*Manager) DeleteObject ¶
func (*Manager) DeleteObjects ¶
func (manager *Manager) DeleteObjects(ctx context.Context, name string, req schema.DeleteObjectsRequest) (resp *schema.DeleteObjectsResponse, err error)
func (*Manager) ListObjects ¶
func (manager *Manager) ListObjects(ctx context.Context, name string, req schema.ListObjectsRequest) (resp *schema.ListObjectsResponse, err error)
func (*Manager) QueueIndexTask ¶
func (*Manager) ReadObject ¶
func (*Manager) RunIndexer ¶
type Opt ¶
type Opt func(*opt) error
Opt is a functional option for filer manager configuration.
func WithBackend ¶
WithBackend adds a blob backend (mem://, file://, s3://) to the filer. The url should be in the format "scheme://bucket" (e.g., "mem://mybucket", "s3://mybucket"). Returns an error if a backend with the same name already exists.
func WithFileBackend ¶
WithFileBackend is a convenience option that adds a file:// backend. name must be a valid identifier; dir must be an absolute path.
func WithTracer ¶
WithTracer sets the tracer used for tracing operations.
Click to show internal directories.
Click to hide internal directories.