package
0.0.0-20240420182116-ac96246ab101
Repository: https://github.com/f110/github-400-test.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.
GenerateAccessKey returns a new access key generated randomly using the given io.Reader.
GenerateCredentials - creates randomly generated credentials of maximum allowed length.
GenerateSecretKey returns a new secret key generated randomly using the given io.Reader.
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

AnonymousCredentials simply points to empty credentials.
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.
Common errors generated for access and secret key validation.
Common errors generated for access and secret key validation.

# Structs

Credentials holds access and secret keys.