Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LoadConfig ¶
func LoadConfig(configEntry interface{}) error
func LoadEnvFile ¶
func LoadEnvFile(envfile string)
Types ¶
type Config ¶
type Config struct { CraneAddr string `env:"CRANE_ADDR",required:"true"` SwarmManagerIP string `env:"CRANE_SWARM_MANAGER_IP",required:"true"` DockerEntryScheme string `required:"false"` DockerEntryPort string `env:"CRANE_DOCKER_ENTRY_PORT",required:"false"` DockerTlsVerify bool `env:"CRANE_DOCKER_TLS_VERIFY",required:"true"` DockerCertPath string `env:"CRANE_DOCKER_CERT_PATH",required:"true"` DockerApiVersion string `env:"CRANE_DOCKER_API_VERSION",required:"false"` DbDriver string `env:"CRANE_DB_DRIVER",required:"true"` DbDSN string `env:"CRANE_DB_DSN",required:"true"` FeatureFlags []string `env:"CRANE_FEATURE_FLAGS",required:"true"` // registry RegistryPrivateKeyPath string `env:"CRANE_REGISTRY_PRIVATE_KEY_PATH",required:"true"` RegistryAddr string `env:"CRANE_REGISTRY_ADDR",required:"true"` // account AccountAuthenticator string `env:"CRANE_ACCOUNT_AUTHENTICATOR",required:"false"` AccountTokenStore string `env:"CRANE_ACCOUNT_TOKEN_STORE",required:"false"` AccountEmailDefault string `env:"CRANE_ACCOUNT_EMAIL_DEFAULT",required:"false"` AccountPasswordDefault string `env:"CRANE_ACCOUNT_PASSWORD_DEFAULT",required:"false"` CatalogPath string `env:"CRANE_CATALOG_PATH",required:"false"` SearchLoadDataInterval uint16 `env:"CRANE_SEARCH_LOAD_DATA_INTERVAL",required:"false"` }
func (*Config) FeatureEnabled ¶
Click to show internal directories.
Click to hide internal directories.