package
0.16.2
Repository: https://github.com/memoio/console.git
Documentation: pkg.go.dev

# Packages

No description provided by the author

# Functions

No description provided by the author
DifferenceArrays returns the elements in `a` that aren't in `b`.
No description provided by the author
FileServerMiddleware serves files from the static folder.
GetAdminInfo invokes admin info and returns a parsed `UsageInfo` structure.
GetConsoleHTTPClient will initialize the console HTTP Client with fully populated custom TLS Transport that with loads certs at - ${HOME}/.console/certs/CAs - ${HOME}/.minio/certs/CAs.
GetHostname gets console hostname set on env variable, default one or defined on run command.
No description provided by the author
GetPort gets console por set on env variable or default one.
Get secure middleware env variable configurations.
AllowedHostsAreRegex determines, if the provided AllowedHosts slice contains valid regular expressions.
If BrowserXssFilter is true, adds the X-XSS-Protection header with the value `1; mode=block`.
ContentSecurityPolicy allows the Content-Security-Policy header value to be set with a custom value.
ContentSecurityPolicyReportOnly allows the Content-Security-Policy-Report-Only header value to be set with a custom value.
If ContentTypeNosniff is true, adds the X-Content-Type-Options header with the value `nosniff`.
No description provided by the author
FeaturePolicy allows the Feature-Policy header with the value to be set with a custom value.
STS header is only included when the connection is HTTPS.
If FrameDeny is set to true, adds the X-Frame-Options header with the value of `DENY`.
HostsProxyHeaders is a set of header keys that may hold a proxied hostname value for the request.
PublicKey implements HPKP to prevent MITM attacks with forged certificates.
ReferrerPolicy allows the Referrer-Policy header with the value to be set with a custom value.
If STSIncludeSubdomains is set to true, the `includeSubdomains` will be appended to the Strict-Transport-Security header.
If STSPreload is set to true, the `preload` flag will be appended to the Strict-Transport-Security header.
STSSeconds is the max-age of the Strict-Transport-Security header.
TLSHost is the host name that is used to redirect HTTP requests to HTTPS.
If TLSTemporaryRedirect is true, the a 302 will be used while redirecting.
GetSubnetHTTPClient will return a client with proxy if configured, otherwise will return the default console http client.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
GetTLSPort gets console tls port set on env variable or default one.
If GetTLSRedirect is set to true, then only allow HTTPS requests.
IsElementInArray returns true if the string belongs to the slice.
NewAdminClientWithInsecure gives a new madmin client interface either secure or insecure based on parameter.
No description provided by the author
No description provided by the author
NewServer creates a new api console server but does not configure it.
No description provided by the author
PrepareConsoleHTTPClient returns an http.Client with custom configurations need it by *credentials.STSAssumeRole custom configurations include the use of CA certificates.
No description provided by the author
No description provided by the author
RejectS3Middleware will reject requests that have AWS S3 specific headers.
SanitizeEncodedPrefix replaces spaces for + since those are lost when you do GET parameters.
No description provided by the author
No description provided by the author
No description provided by the author
UniqueKeys returns an array without duplicated keys.

# Constants

Policy evaluated constants.
list of all console environment constants.
list of all console environment constants.
list of all console environment constants.
list of all console environment constants.
Constants for common configuration.
list of all console environment constants.
Constants for Secure middleware.
list of all console environment constants.
list of all console environment constants.
list of all console environment constants.
list of all console environment constants.
list of all console environment constants.
list of all console environment constants.
list of all console environment constants.
list of all console environment constants.
list of all console environment constants.
list of all console environment constants.
list of all console environment constants.
list of all console environment constants.
list of all console environment constants.
list of all console environment constants.
list of all console environment constants.
list of all console environment constants.
list of all console environment constants.
list of all console environment constants.
list of all console environment constants.
list of all console environment constants.
list of all console environment constants.
Policy evaluated constants.
list of all console environment constants.
list of all console environment constants.
list of all console environment constants.
list of all console environment constants.
Policy evaluated constants.
No description provided by the author
No description provided by the author

# Variables

No description provided by the author
ErrorGeneric is a generic error message.
ErrorGenericNotFound Generic error for not found.
FlatSwaggerJSON embedded flattened version of the swagger document used at generation time.
GlobalPublicCerts has certificates Console will use to serve clients.
GlobalRootCAs is CA root certificates, a nil value means system certs pool will be used.
GlobalTLSCertsManager custom TLS Manager for SNI support.
Hostname console hostname avoid listening on 0.0.0.0 by default instead listen on all IPv4 and IPv6 - Hostname should be empty.
globally changeable logger styles.
globally changeable logger styles.
Port console default port.
SwaggerJSON embedded version of the swagger document used at generation time.
TLSPort console tls port.
TLSRedirect console tls redirect rule.

# Structs

Interface implementation Define the structure of a minIO Client and define the functions that are actually used from minIO api.
Interface implementation.
Context captures all command line flags values.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
Server for the console API.
No description provided by the author
No description provided by the author
Types for trace request.
No description provided by the author
No description provided by the author
No description provided by the author

# Interfaces

ConsoleCredentialsI interface with all functions to be implemented by mock when testing, it should include all needed consoleCredentials.Login api calls that are used within this project.
ConsoleWebsocket interface of a Websocket Client.
ConsoleWebsocketAdmin interface of a Websocket Client.
MCClient interface with all functions to be implemented by mock when testing, it should include all mc/S3Client respective api calls that are used within this project.
MinioAdmin interface with all functions to be implemented by mock when testing, it should include all MinioAdmin respective api calls that are used within this project.
MinioClient interface with all functions to be implemented by mock when testing, it should include all MinioClient respective api calls that are used within this project.
WSConn interface with all functions to be implemented by mock when testing, it should include all websocket.Conn respective api calls that are used within this project.

# Type aliases

No description provided by the author