Documentation
¶
Index ¶
Constants ¶
View Source
const ( Prod = "production" Stage = "stage" Local = "local" CI = "ci" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Email ¶
type Email struct {
ApiKey string `mapstructure:"api_key"`
SendAs string `mapstructure:"send_as"`
VerifyEmailTemplateId string `mapstructure:"verify_template_id"`
ForgotPasswordTemplateId string `mapstructure:"forgot_password_template_id"`
WelcomeEmailTemplateId string `mapstructure:"welcome_template_id"`
Enabled bool `mapstructure:"enabled"`
}
type GithubOAuth ¶
type OAuth ¶
type OAuth struct {
Github GithubOAuth `mapstructure:"github"`
}
type OpenRegistryConfig ¶
type OpenRegistryConfig struct {
Registry *Registry `mapstructure:"registry"`
StoreConfig *Store `mapstructure:"database"`
AuthConfig *Auth `mapstructure:"auth"`
LogConfig *Log `mapstructure:"log_service"`
SkynetConfig *Skynet `mapstructure:"skynet"`
OAuth *OAuth `mapstructure:"oauth"`
Email *Email `mapstructure:"email"`
Environment string `mapstructure:"environment"`
WebAppEndpoint string `mapstructure:"web_app_url"`
WebAppRedirectURL string `mapstructure:"web_app_redirect_url"`
WebAppErrorRedirectPath string `mapstructure:"web_app_error_redirect_path"`
Debug bool `mapstructure:"debug"`
}
func ReadYamlConfig ¶
func ReadYamlConfig() (*OpenRegistryConfig, error)
func (*OpenRegistryConfig) Endpoint ¶
func (oc *OpenRegistryConfig) Endpoint() string
type Registry ¶
type Registry struct {
TLS TLS `mapstructure:"tls"`
DNSAddress string `mapstructure:"dns_address"`
FQDN string `mapstructure:"fqdn"`
SigningSecret string `mapstructure:"jwt_signing_secret"`
Host string `mapstructure:"host"`
Services []string `mapstructure:"services"`
Port uint `mapstructure:"port"`
}
Click to show internal directories.
Click to hide internal directories.