package
0.0.0-20221121043126-298dde518304
Repository: https://github.com/nitrictech/minio.git
Documentation: pkg.go.dev
# Functions
CreateCredentials returns new credential with the given access key and secret key.
CreateNewCredentialsWithMetadata - creates new credentials using the specified access & secret keys and generate a session token if a secret token is provided.
ExpToInt64 - convert input interface value to int64.
ExtractClaims extracts JWT claims from a security token using a secret key.
GenerateCredentials - creates randomly generated credentials of maximum allowed length.
GetNewCredentials generates and returns new credential.
GetNewCredentialsWithMetadata generates and returns new credential with expiry.
IsAccessKeyValid - validate access key for right length.
IsSecretKeyValid - validate secret key for right length.
JWTSignWithAccessKey - generates a session token.
# Constants
AccountOff indicates that credentials are disabled.
AccountOn indicates that credentials are enabled.
Default access and secret keys.
Default access and secret keys.
# Variables
Default access credentials.
Common errors generated for access and secret key validation.
ErrInvalidDuration invalid token expiry.
Common errors generated for access and secret key validation.
# Structs
Credentials holds access and secret keys.