Documentation ¶
Index ¶
- func AbsPath(inPath string) string
- func CleanupTests() error
- func GetSpaces() []string
- func GetVirtualSpace(spaceName string) (*base.VirtualSpace, error)
- func GetVirtualSpaces() []string
- func IsVirtualSpace(spaceName string) bool
- func PrepareSpaces(initStorage bool) error
- func ReadFile(file, defaultFile string) error
- func SetDefaults()
- func SetupForTests() error
- func SetupLogger(opts LoggerOptions)
- func SetupServices() error
- func Validate() error
- type LoggerOptions
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CleanupTests ¶
func CleanupTests() error
CleanupTests can be used to clean all the CouchDB databases used for tests.
func GetVirtualSpace ¶
func GetVirtualSpace(spaceName string) (*base.VirtualSpace, error)
func GetVirtualSpaces ¶
func GetVirtualSpaces() []string
func IsVirtualSpace ¶
IsVirtualSpace returns true if the given space name matches a virtual space.
func PrepareSpaces ¶
PrepareSpaces makes sure that the CouchDB databases and Swift containers for the spaces exist and have their index/views.
func SetupForTests ¶
func SetupForTests() error
SetupForTests can be used to setup the services with in-memory implementations for tests.
func SetupServices ¶
func SetupServices() error
SetupServices connects the cache, database and storage services.
Types ¶
type LoggerOptions ¶
type LoggerOptions struct {
Syslog bool
}
LoggerOptions is a struct with the options for initializing the logger.
Click to show internal directories.
Click to hide internal directories.