Versions in this module Expand all Collapse all v0 v0.17.0 Apr 5, 2019 Changes in this version + const EnvInstallationTag type Config + InstallationTag string v0.16.2 Mar 21, 2019 v0.16.0 Dec 15, 2021 Changes in this version + const AuthStrategyAnonymous + const AuthStrategyLogin + const AuthStrategyLoginIssuer + const AuthStrategyOpenshift + const AuthStrategyOpenshiftIssuer + const EnvApiNamespacesExclude + const EnvAuthStrategy + 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 EnvServerAuditLog + const EnvServerCORSAllowAll + const EnvServerMetricsEnabled + const EnvServerMetricsPort + const EnvServerPort + const EnvServerStaticContentRootDirectory + const EnvWebRoot + const IstioVersionSupported + const LoginSecretPassphrase + const LoginSecretUsername + const MaistraVersionSupported + const TokenCookieName + func GetSignedTokenString(claims jwt.Claims) (string, error) + 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 AuthConfig struct + Strategy string + type Config struct + API ApiConfig + Auth AuthConfig + 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 IanaClaims struct + SessionId string + func GetTokenClaimsIfValid(tokenString string) (*IanaClaims, error) + 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 + MetricsEnabled bool + MetricsPort int + Port int + StaticContentRootDirectory string + WebRoot string + type TokenGenerated struct + ExpiresOn time.Time + Token string + Username string + func GenerateToken(username string) (TokenGenerated, error)