Documentation
¶
Index ¶
Constants ¶
View Source
const ( KeyDatabaseUrl = `database_url` KeyGithubToken = `github_token` KeyConcurrency = `concurrency` KeyTaskMode = `task_mode` )
View Source
const ( DefaultProjectFilepath = `.groundskeeper.yml` ScratchMigrationPath = `.gk_migrations` )
View Source
const ServiceName = `groundskeeper`
Variables ¶
View Source
var ConfigBackend *viper.Viper = GetViper()
Functions ¶
func AddProjectConfigFlag ¶
func DatabaseURL ¶
func DatabaseURL() string
func GithubToken ¶
func GithubToken() string
func IsTaskMode ¶
func IsTaskMode() bool
func MaxConcurrency ¶
func MaxConcurrency() int
func SetDefaults ¶
Types ¶
type ProjectConfig ¶
type ProjectConfig struct {
MigrationsPath string `yaml:"path,omitempty"`
}
func DefaultProjectConfig ¶
func DefaultProjectConfig() *ProjectConfig
func LoadProjectConfig ¶
func LoadProjectConfig(fs afero.Fs, path string) (*ProjectConfig, error)
func (ProjectConfig) MarshalYAML ¶
func (c ProjectConfig) MarshalYAML() (any, error)
Click to show internal directories.
Click to hide internal directories.