package
2.7.11
Repository: https://github.com/influxdata/influxdb.git
Documentation: pkg.go.dev

# Packages

Package mocks is a generated GoMock package.

# Functions

ErrInvalidAuthIDError is used when a service was provided an invalid ID.
NewAuthedPasswordService wraps an existing PasswordService with authorization middleware.
NewHTTPAuthHandler constructs a new http server.
NewService constructs a new Service.
UnavailablePasswordServiceError is used if we aren't able to add the password to the store, it means the store is not available at the moment (e.g.
UnexpectedAuthIndexError is used when the error comes from an internal system.

# Constants

SaltBytes is the number of bytes used for salts.

# Variables

ErrAuthNotFound is used when the specified auth cannot be found.
ErrBucketNotFound is used when attempting to create an authorization with a bucket id that does not exist.
ErrFailureGeneratingID occurs ony when the random number generator cannot generate an ID in MaxIDGenerationN times.
ErrInvalidAuthID is used when the Authorization's ID cannot be encoded.
ErrTokenAlreadyExistsError is used when attempting to create an authorization with a token that already exists.
NotUniqueIDError occurs when attempting to create an Authorization with an ID that already belongs to another one.

# Structs

AuthedPasswordService is middleware for authorizing requests to the inner PasswordService.
A type that is used to verify credentials.
An implementation of influxdb.PasswordsService that will perform ComparePassword requests at a reduced cost under certain conditions.
Client connects to Influx via HTTP using tokens to manage authorizations.

# Interfaces

TenantService is used to look up the Organization and User for an Authorization.