Versions in this module Expand all Collapse all v0 v0.15.2 Mar 22, 2023 v0.15.1 Dec 16, 2021 Changes in this version + const EnvApiNamespacesExclude + const EnvGrafanaAPIKey + const EnvGrafanaDisplayLink + const EnvGrafanaPassword + const EnvGrafanaService + const EnvGrafanaServiceDashboardPattern + const EnvGrafanaServiceNamespace + const EnvGrafanaURL + const EnvGrafanaUsername + const EnvGrafanaVarNamespace + const EnvGrafanaVarService + const EnvGrafanaVarWorkload + const EnvGrafanaWorkloadDashboardPattern + const EnvIdentityCertFile + const EnvIdentityPrivateKeyFile + const EnvInCluster + const EnvIstioIdentityDomain + const EnvIstioLabelNameApp + const EnvIstioLabelNameVersion + const EnvIstioNamespace + const EnvIstioSidecarAnnotation + const EnvIstioUrlServiceVersion + const EnvJaegerService + const EnvJaegerURL + const EnvKubernetesBurst + const EnvKubernetesCacheDuration + const EnvKubernetesCacheEnabled + const EnvKubernetesQPS + const EnvLoginTokenExpirationSeconds + const EnvLoginTokenSigningKey + const EnvPrometheusCustomMetricsURL + const EnvPrometheusServiceURL + const EnvServerAddress + const EnvServerAllowAnonymousAccess + const EnvServerAuditLog + const EnvServerCORSAllowAll + const EnvServerCredentialsPassword + const EnvServerCredentialsUsername + const EnvServerPort + const EnvServerStaticContentRootDirectory + const EnvWebRoot + const IstioVersionSupported + const MaistraVersionSupported + func AuthenticationHandler(next http.Handler) http.Handler + func Marshal(conf *Config) (yamlString string, err error) + func SaveToFile(filename string, conf *Config) (err error) + func Set(conf *Config) + func ValidateToken(tokenString string) (string, error) + type ApiConfig struct + Namespaces ApiNamespacesConfig + type ApiNamespacesConfig struct + Exclude []string + type Config struct + API ApiConfig + ExternalServices ExternalServices + Identity security.Identity + InCluster bool + IstioLabels IstioLabels + IstioNamespace string + KubernetesConfig KubernetesConfig + LoginToken LoginToken + Server Server + func Get() (conf *Config) + func LoadFromFile(filename string) (conf *Config, err error) + func NewConfig() (c *Config) + func Unmarshal(yamlString string) (conf *Config, err error) + func (conf Config) String() (str string) + type ExternalServices struct + Grafana GrafanaConfig + Istio IstioConfig + Jaeger JaegerConfig + PrometheusCustomMetricsURL string + PrometheusServiceURL string + type GrafanaConfig struct + APIKey string + DisplayLink bool + Password string + Service string + ServiceDashboardPattern string + ServiceNamespace string + URL string + Username string + VarNamespace string + VarService string + VarWorkload string + WorkloadDashboardPattern string + type IstioConfig struct + IstioIdentityDomain string + IstioSidecarAnnotation string + UrlServiceVersion string + type IstioLabels struct + AppLabelName string + VersionLabelName string + type JaegerConfig struct + Service string + URL string + type KubernetesConfig struct + Burst int + CacheDuration int64 + CacheEnabled bool + QPS float32 + type LoginToken struct + ExpirationSeconds int64 + SigningKey []byte + type Server struct + Address string + AuditLog bool + CORSAllowAll bool + Credentials security.Credentials + Port int + StaticContentRootDirectory string + WebRoot string + type TokenClaim struct + User string + type TokenGenerated struct + ExpiredAt string + Token string + func GenerateToken(username string) (TokenGenerated, error) v0.15.1-bug Mar 22, 2023