package
2.1.0+incompatible
Repository: https://github.com/branthz/vitess.git
Documentation: pkg.go.dev

# Functions

GetCredentialsServer returns the current CredentialsServer.
Init will initialize app, allprivs, dba, filtered and repl configs.
RegisterFlags registers the flags for the given DBConfigFlag.
WithCredentials returns a copy of the provided ConnParams that we can use to connect, after going through the CredentialsServer.

# Constants

AllPrivs user should have more privileges than App (should include possibility to do schema changes and write to internal Vitess tables), but it shouldn't have SUPER privilege like Dba has.
config flags.
config flags.
config flags.
config flags.
config flags.

# Variables

AllCredentialsServers contains all the known CredentialsServer implementations.
ErrUnknownUser is returned by credential server when the user doesn't exist.

# Structs

DBConfigs is all we need for a smart tablet server: - App access with db name for serving app queries - AllPrivs access for administrative actions (like schema changes) that should be done without SUPER privilege - Dba access for any dba-type operation (db creation, replication, ...) - Filtered access for filtered replication - Replication access to change master - SidecarDBName for storing operational metadata.
FileCredentialsServer is a simple implementation of CredentialsServer using a json file.

# Interfaces

CredentialsServer is the interface for a credential server.

# Type aliases

DBConfigFlag describes which flags we need.