dynamic

package
v3.7.2 Latest Latest
Warning

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

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

Documentation

Overview

Package dynamic contains the dynamic storage registry

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(ctx context.Context, m map[string]any) (storage.Registry, error)

New returns an implementation of the storage.Registry interface that redirects requests to corresponding storage drivers.

Types

type Config added in v3.4.0

type Config struct {
	Rules           map[string]string `docs:"nil;A map from mountID to provider address"                          mapstructure:"rules"`
	Rewrites        map[string]string `docs:"nil;A map from a path to an template alias to use when resolving"    mapstructure:"rewrites"`
	IDAliases       map[string]string `docs:"nil;A map containing storageID aliases, can contain simple brackets" mapstructure:"aliases"`
	HomePath        string            `mapstructure:"home_path"`
	config.Database `mapstructure:",squash"`
}

func (*Config) ApplyDefaults added in v3.4.0

func (c *Config) ApplyDefaults()

Directories

Path Synopsis
Package rewriter contains the route rewriters
Package rewriter contains the route rewriters
Package routingtree contains the routing tree implementation.
Package routingtree contains the routing tree implementation.

Jump to

Keyboard shortcuts

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