Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var LocalBackendTypes = []string{"local"}
LocalBackendTypes local backend storage
View Source
var RemoteBackendTypes = []string{"s3", "azblob", "gs"}
RemoteBackendTypes allowed remote storage
View Source
var StateBackendTypes = append(RemoteBackendTypes, LocalBackendTypes...)
StateBackendTypes all state backend storage types
Functions ¶
func GetLogger ¶
GetLogger returns a logger for logging manager processes Logs are also persisted to file
func SetVerboseLogging ¶
func SetVerboseLogging()
SetVerboseLogging sets logging to be in DEBUG mode
Types ¶
type Config ¶
type Config struct { Name string Providers []string Timezone string RefreshInterval int32 LogPath string Verbose bool Database *DatabaseConfig Web struct { // Authentication Details to login to Reka Auth struct { Username string Password string } } // Exclude block prevents certain resources from been tracked or affected by reka. Exclude []*ExcludeRule // StateBackend is how state is stored (read & write) // State files contain details used for infrastructure resumption and history of // infrastructural management StateBackend *Backend // Rules block define how reka should behave given certain resources. These rules // usually target resources based on tags/labels which are attached to the resources Rules []*Rule // AWS Config Aws *aws.Config // Gcp configuration Gcp Gcp // contains filtered or unexported fields }
Config : The Config values passed to application
type DatabaseConfig ¶
DatabaseConfig Config for Dabatabase
func (*DatabaseConfig) GetConnectionString ¶
func (db *DatabaseConfig) GetConnectionString() string
GetConnectionString the connection string for database
func (*DatabaseConfig) SqliteDefaultPath ¶
func (db *DatabaseConfig) SqliteDefaultPath() string
SqliteDefaultPath the default database path to use for sqlite
type ExcludeRule ¶
type Gcp ¶
type Gcp struct {
ProjectId string
}
Gcp config stores all gcp related config for a project
Click to show internal directories.
Click to hide internal directories.