confighelpers

package
v0.0.0-...-0fdad32 Latest Latest
Warning

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

Go to latest
Published: Nov 14, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ChooseContentStoreType

func ChooseContentStoreType(cfg config.ContentStoreConfig) (contentstore.Store, error)

ChooseContentStoreType inspects the type of store provided by environment variables. If a match can be found, a contentstore of that type will be created. If no value is provided, a deprecation warning is returned instead (See: errors.go :: DeprecationWarning). If an unknown type is provided, then an error is raised.

func DefaultDevStore

func DefaultDevStore() (contentstore.Store, error)

DefaultDevStore creates a local file store. This is only used for the dev environment.

func DefaultS3Store

func DefaultS3Store() (contentstore.Store, error)

DefaultS3Store creates a content store that points to S3. Notably, this has a fallback to deprecated environment variables, to help aid adoption of the more modern configuration

Types

This section is empty.

Jump to

Keyboard shortcuts

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