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