Documentation ¶
Index ¶
Constants ¶
View Source
const ( DefaultConfigExt = ".json" DefaultConfig = "config" + DefaultConfigExt )
Variables ¶
This section is empty.
Functions ¶
func WriteConfig ¶
WriteConfig writes a CAS config file to a given path. It will add an name of default config if the specified path ends with a separator. It will also guess a file extension if it was not specified.
Types ¶
type Config ¶
type Config struct { // Storage is a config for a primary storage used in this CAS. Storage storage.Config }
Config stores all configuration of a CAS.
func ReadConfig ¶
ReadConfig reads a CAS config file from a given path. It will add an name of default config if the specified path ends with a separator. It will also guess a file extension if it was not specified.
Click to show internal directories.
Click to hide internal directories.