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

# Packages

# Functions

BucketAlreadyExistsError is used when attempting to create a user with a name that already exists.
CorruptURMError is used when the config cannot be unmarshalled from the bytes stored in the kv.
ErrBucketNotFoundByName is used when the user is not found.
ErrCorruptBucket is used when the user cannot be unmarshalled from the bytes stored in the kv.
ErrCorruptOrg is used when the user cannot be unmarshalled from the bytes stored in the kv.
ErrUnprocessableBucket is used when a org is not able to be processed.
ErrUnprocessableMapping is used when a user resource mapping is not able to be converted to JSON.
ErrUnprocessableOrg is used when a org is not able to be processed.
InvalidOrgIDError is used when a service was provided an invalid ID.
IsPasswordStrong checks if a password is strong enough.
NewAggregateError returns a new AggregateError.
NewAuthedBucketService constructs an instance of an authorizing bucket service.
NewAuthedOnboardSvc constructs an instance of an authorizing org service.
NewAuthedOrgService constructs an instance of an authorizing org service.
NewAuthedPasswordService wraps an existing password service with auth middleware.
NewAuthedUserService constructs an instance of an authorizing user service.
NewBucketLogger returns a logging service middleware for the Bucket Service.
NewBucketMetrics returns a metrics service middleware for the Bucket Service.
NewHTTPBucketHandler constructs a new http server.
NewHTTPOnboardHandler constructs a new http server.
NewHTTPOrgHandler constructs a new http server.
NewHTTPUserHandler constructs a new http server.
NewOnboardingLogger returns a logging service middleware for the Bucket Service.
NewOnboardingMetrics returns a metrics service middleware for the User Service.
NewOpLogService constructs and configures a new op log service.
NewOrgLogger returns a logging service middleware for the Organization Service.
NewOrgMetrics returns a metrics service middleware for the Organization Service.
NewPasswordLogger returns a logging service middleware for the Password Service.
NewPasswordMetrics returns a metrics service middleware for the Password Service.
NewService creates a new base tenant service.
creates a new Service with logging and metrics middleware wrappers.
NewURMHandler generates a mountable handler for URMs.
NewUrmLogger returns a logging service middleware for the User Resource Mapping Service.
NewUrmMetrics returns a metrics service middleware for the User Resource Mapping Service.
NewUserLogger returns a logging service middleware for the User Service.
NewUserMetrics returns a metrics service middleware for the User Service.
NonUniqueMappingError is an internal error when a user already has been mapped to a resource.
OrgAlreadyExistsError is used when creating a new organization with a name that has already been used.
UnavailableURMServiceError is used if we aren't able to interact with the store, it means the store is not available at the moment (e.g.
WithAlwaysAllowInitialUser configures the OnboardService to always return true for IsOnboarding to allow multiple initial onboard requests.

# Constants

# Variables

ErrFailureGeneratingID occurs ony when the random number generator cannot generate an ID in MaxIDGenerationN times.
ErrIDNotUnique is used when attempting to create an org or bucket that already exists.
ErrInvalidURMID is used when the service was provided an invalid ID format.
ErrNameisEmpty is when a name is empty.
ErrOnboardingNotAllowed occurs when request to onboard comes in and we are not allowing this request.
ErrOrgNotFound is used when the user is not found.
ErrURMNotFound is used when the user resource mapping is not found.

# Structs

AggregateError enables composing multiple errors.
AuthedBucketService wraps a influxdb.BucketService and authorizes actions against it appropriately.
AuthedOnboardSvc wraps a influxdb.OnboardingService and authorizes actions against it appropriately.
AuthedOrgService wraps a influxdb.OrganizationService and authorizes actions against it appropriately.
AuthedPasswordService is a new authorization middleware for a password service.
AuthedUserService wraps a influxdb.UserService and authorizes actions against it appropriately.
BucketClientService connects to Influx via HTTP using tokens to manage buckets.
BucketHandler represents an HTTP API handler for users.
MeHandler represents an HTTP API handler for /me routes.
OnboardClientService connects to Influx via HTTP to perform onboarding operations.
OnboardHandler represents an HTTP API handler for users.
OpLogService is a type which stores operation logs for buckets, users and orgs.
OrgClientService connects to Influx via HTTP using tokens to manage organizations.
OrgHandler represents an HTTP API handler for organizations.
PasswordClientService is an http client to speak to the password service.
SpecificURMSvc is a URM client that speaks to a specific resource with a specified user type.
UserService connects to Influx via HTTP using tokens to manage users.
UserHandler represents an HTTP API handler for users.

# Interfaces

OpLogStore is a type which persists and reports operation log entries on a backing kv store transaction.

# Type aliases