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.
Click to show internal directories.
Click to hide internal directories.