manager

package
v0.2.6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 19, 2026 License: Apache-2.0 Imports: 25 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Manager

type Manager struct {
	pg.PoolConn
	// contains filtered or unexported fields
}

func New

func New(ctx context.Context, pool pg.PoolConn, opts ...Opt) (_ *Manager, err error)

New creates a new manager object

func (*Manager) CreateVolume added in v0.2.0

func (manager *Manager) CreateVolume(ctx context.Context, url *url.URL, meta schema.VolumeMeta) (_ *schema.Volume, err error)

func (*Manager) GetMetadata added in v0.2.3

func (manager *Manager) GetMetadata(ctx context.Context, r io.Reader) (_ *schema.ObjectMeta, err error)

func (*Manager) GetObject

func (manager *Manager) GetObject(ctx context.Context, req schema.ObjectKey) (_ *schema.Object, err error)

func (*Manager) ListObjects

func (manager *Manager) ListObjects(ctx context.Context, req schema.ObjectListRequest) (_ *schema.ObjectList, err error)

func (*Manager) ListVolumes added in v0.2.0

func (manager *Manager) ListVolumes(ctx context.Context, req schema.VolumeListRequest) (_ *schema.VolumeList, err error)

ListVolumes returns all volumes as a list.

func (*Manager) Run

func (manager *Manager) Run(ctx context.Context, logger *slog.Logger) error

type Opt

type Opt func(*opt) error

Opt is a functional option for filer manager configuration.

func WithIndexer added in v0.2.0

func WithIndexer(indexer bool) Opt

WithIndexer uses this instance as an indexer of content

func WithMeter added in v0.2.0

func WithMeter(meter metric.Meter) Opt

WithMeter sets the OpenTelemetry meter used for manager metrics.

func WithTracer

func WithTracer(tracer trace.Tracer) Opt

WithTracer sets the tracer used for tracing operations.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL