manager

package
v0.2.0 Latest Latest
Warning

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

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

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.Reader) ([]schema.Meta, 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