registry

package
v0.8.9 Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Overview

Package registry carries the registry of available storage implementations. This is a separate package to ensure it is fully initialized before the parent package looks at the store.

Index

Constants

This section is empty.

Variables

View Source
var Stores = store.Registry{
	"file": func(ctx context.Context, addr string) (blob.Store, error) {
		if strings.HasSuffix(addr, ".zip") {
			zf, err := zip.OpenReader(addr)
			if err != nil {
				return nil, err
			}
			return zipstore.New(zf, nil), nil
		}
		return filestore.Opener(ctx, addr)
	},
	"memory": memstore.Opener,
}

Stores enumerates the storage implementations are built in by default. To include other stores, build with -tags set to their names. The known implementations are in the store_*.go files.

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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