Versions in this module Expand all Collapse all v0 v0.16.2 Aug 12, 2022 v0.16.1 Jun 8, 2022 v0.16.0 Apr 15, 2022 v0.15.9 Aug 26, 2022 v0.15.8 Mar 29, 2022 v0.15.7 Mar 23, 2022 v0.15.6 Mar 21, 2022 v0.15.5 Mar 21, 2022 Changes in this version + const Allow + const ConsoleHostname + const ConsoleLogQueryAuthToken + const ConsoleLogQueryURL + const ConsoleMinIORegion + const ConsoleMinIOServer + const ConsolePort + const ConsoleSecureAllowedHosts + const ConsoleSecureAllowedHostsAreRegex + const ConsoleSecureBrowserXSSFilter + const ConsoleSecureContentSecurityPolicy + const ConsoleSecureContentSecurityPolicyReportOnly + const ConsoleSecureContentTypeNoSniff + const ConsoleSecureExpectCTHeader + const ConsoleSecureFeaturePolicy + const ConsoleSecureForceSTSHeader + const ConsoleSecureFrameDeny + const ConsoleSecureHostsProxyHeaders + const ConsoleSecurePublicKey + const ConsoleSecureReferrerPolicy + const ConsoleSecureSTSIncludeSubdomains + const ConsoleSecureSTSPreload + const ConsoleSecureSTSSeconds + const ConsoleSecureTLSHost + const ConsoleSecureTLSRedirect + const ConsoleSecureTLSTemporaryRedirect + const ConsoleSubnetLicense + const ConsoleSubnetProxy + const ConsoleTLSPort + const Deny + const LogSearchQueryAuthToken + const PrometheusJobID + const PrometheusURL + const SlashSeparator + const Unknown + var ConsoleResourceName = "console-ui" + var ErrorGeneric = errors.New("an error occurred, please try again") + var ErrorGenericNotFound = errors.New("not found") + var FlatSwaggerJSON json.RawMessage + var GlobalPublicCerts []*x509.Certificate + var GlobalRootCAs *x509.CertPool + var GlobalTLSCertsManager *xcerts.Manager + var Hostname = "" + var LogError = logError + var LogInfo = logInfo + var Port = "9090" + var SwaggerJSON json.RawMessage + var TLSPort = "9443" + var TLSRedirect = "on" + func AuthenticationMiddleware(next http.Handler) http.Handler + func DifferenceArrays(a, b []string) []string + func ExpireSessionCookie() http.Cookie + func FileServerMiddleware(next http.Handler) http.Handler + func GetConsoleHTTPClient() *http.Client + func GetHostname() string + func GetMinIORegion() string + func GetPort() int + func GetSecureAllowedHosts() []string + func GetSecureAllowedHostsAreRegex() bool + func GetSecureBrowserXSSFilter() bool + func GetSecureContentSecurityPolicy() string + func GetSecureContentSecurityPolicyReportOnly() string + func GetSecureContentTypeNonSniff() bool + func GetSecureExpectCTHeader() string + func GetSecureFeaturePolicy() string + func GetSecureForceSTSHeader() bool + func GetSecureFrameDeny() bool + func GetSecureHostsProxyHeaders() []string + func GetSecurePublicKey() string + func GetSecureReferrerPolicy() string + func GetSecureSTSIncludeSubdomains() bool + func GetSecureSTSPreload() bool + func GetSecureSTSSeconds() int64 + func GetSecureTLSHost() string + func GetSecureTLSTemporaryRedirect() bool + func GetSubnetHTTPClient(ctx context.Context, minioClient MinioAdmin) (*utils.HTTPClient, error) + func GetSubnetInfoResponse(session *models.Principal) (*models.License, *models.Error) + func GetSubnetKeyFromMinIOConfig(ctx context.Context, minioClient MinioAdmin) (*subnet.LicenseTokenConfig, error) + func GetSubnetLoginResponse(session *models.Principal, params admin_api.SubnetLoginParams) (*models.SubnetLoginResponse, *models.Error) + func GetSubnetLoginWithMFAResponse(session *models.Principal, params admin_api.SubnetLoginMFAParams) (*models.SubnetLoginResponse, *models.Error) + func GetSubnetRegToken(ctx context.Context, minioClient MinioAdmin) (string, error) + func GetSubnetRegTokenResponse(session *models.Principal) (*models.SubnetRegTokenResponse, *models.Error) + func GetSubnetRegister(ctx context.Context, minioClient MinioAdmin, httpClient utils.HTTPClientI, ...) error + func GetSubnetRegisterResponse(session *models.Principal, params admin_api.SubnetRegisterParams) *models.Error + func GetTLSPort() int + func GetTLSRedirect() string + func IsElementInArray(a []string, b string) bool + func NewAdminClientWithInsecure(url, accessKey, secretKey, sessionToken string, insecure bool) (*madmin.AdminClient, *probe.Error) + func NewConsoleCredentials(accessKey, secretKey, location string) (*credentials.Credentials, error) + func NewMinioAdminClient(sessionClaims *models.Principal) (*madmin.AdminClient, error) + func NewSessionCookieForConsole(token string) http.Cookie + func PrepareConsoleHTTPClient(insecure bool) *http.Client + func RandomCharString(n int) string + func RandomCharStringWithAlphabet(n int, alphabet string) string + func RejectS3Middleware(next http.Handler) http.Handler + func SanitizeEncodedPrefix(rawPrefix string) string + func SubnetLogin(client utils.HTTPClientI, username, password string) (string, string, error) + func SubnetLoginWithMFA(client utils.HTTPClientI, username, mfaToken, otp string) (*models.SubnetLoginResponse, error) + func SubnetRegisterWithAPIKey(ctx context.Context, minioClient MinioAdmin, apiKey string) (bool, error) + func UniqueKeys(a []string) []string + type AdminClient struct + Client *madmin.AdminClient + func (ac AdminClient) AccountInfo(ctx context.Context) (madmin.AccountInfo, error) + type ConsoleCredentials struct + AccountAccessKey string + ConsoleCredentials *credentials.Credentials + func (c ConsoleCredentials) Expire() + func (c ConsoleCredentials) Get() (credentials.Value, error) + func (c ConsoleCredentials) GetAccountAccessKey() string + type ConsoleCredentialsI interface + Expire func() + Get func() (credentials.Value, error) + GetAccountAccessKey func() string + type ConsoleWebsocket interface + type ConsoleWebsocketAdmin interface + type Context struct + HTTPPort int + HTTPSPort int + Host string + TLSCertificate string + TLSKey string + TLSRedirect string + TLSca string + func (c *Context) Load(ctx *cli.Context) error + type DataResult struct + Metric map[string]string + Values []interface{} + type GridPos struct + H int32 + W int32 + X int32 + Y int32 + type LabelResponse struct + Data []string + Status string + type LabelResults struct + Label string + Response LabelResponse + type MCClient interface + type Metric struct + GridPos GridPos + ID int32 + MaxDataPoints int32 + Options MetricOptions + Targets []Target + Title string + Type string + type MetricOptions struct + ReduceOptions ReduceOptions + type MinioAdmin interface + AccountInfo func(ctx context.Context) (madmin.AccountInfo, error) + type MinioClient interface + GetBucketTagging func(ctx context.Context, bucketName string) (*tags.Tags, error) + RemoveBucketTagging func(ctx context.Context, bucketName string) error + SetBucketTagging func(ctx context.Context, bucketName string, tags *tags.Tags) error + type MultiLifecycleResult struct + BucketName string + Error string + type PromResp struct + Data PromRespData + Status string + type PromRespData struct + Result []DataResult + ResultType string + type ReduceOptions struct + Calcs []string + type RemoteBucketResult struct + Error string + OriginBucket string + TargetBucket string + type Server struct + CleanupTimeout time.Duration + EnabledListeners []string + GracefulTimeout time.Duration + Host string + KeepAlive time.Duration + ListenLimit int + MaxHeaderSize flagext.ByteSize + Port int + ReadTimeout time.Duration + SocketPath flags.Filename + TLSCACertificate flags.Filename + TLSCertificate flags.Filename + TLSCertificateKey flags.Filename + TLSHost string + TLSKeepAlive time.Duration + TLSListenLimit int + TLSPort int + TLSReadTimeout time.Duration + TLSWriteTimeout time.Duration + WriteTimeout time.Duration + func NewServer(api *operations.ConsoleAPI) *Server + func (s *Server) ConfigureAPI() + func (s *Server) ConfigureFlags() + func (s *Server) Fatalf(f string, args ...interface{}) + func (s *Server) GetHandler() http.Handler + func (s *Server) HTTPListener() (net.Listener, error) + func (s *Server) Listen() error + func (s *Server) Logf(f string, args ...interface{}) + func (s *Server) Serve() (err error) + func (s *Server) SetAPI(api *operations.ConsoleAPI) + func (s *Server) SetHandler(handler http.Handler) + func (s *Server) Shutdown() error + func (s *Server) TLSListener() (net.Listener, error) + func (s *Server) UnixListener() (net.Listener, error) + type SubnetRegistration struct + AccessToken string + MFAToken string + Organizations []models.SubnetOrganization + type Target struct + Expr string + Interval string + LegendFormat string + Step int32 + type TraceRequest struct + type UsageInfo struct + Buckets int64 + DisksUsage int64 + EndpointNotReady bool + Objects int64 + Servers []*models.ServerProperties + Usage int64 + func GetAdminInfo(ctx context.Context, client MinioAdmin) (*UsageInfo, error) + type VersionState string + const VersionEnable + const VersionSuspend + type WSConn interface + type Widget struct + Title string + Type string + type WidgetLabel struct + Name string