manager

package
v0.2.21 Latest Latest
Warning

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

Go to latest
Published: Jul 5, 2026 License: Apache-2.0 Imports: 14 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EtagForPath

func EtagForPath(path string) (string, error)

EtagForPath returns a deterministic etag for the file contents at path. The value is a lowercase SHA-256 hex digest.

Types

type Manager

type Manager struct {
	// contains filtered or unexported fields
}

func New

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

New creates a new manager object

func (*Manager) Get

func (m *Manager) Get(ctx context.Context, mimeType string, r io.ReadSeeker) ([]schema.Meta, []*schema.ArtworkMeta, error)

func (*Manager) GetMeta added in v0.2.3

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

type Opt

type Opt func(*opt) error

Opt is a functional option for filer manager configuration.

func WithMeter

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