package
3.0.0-rc.3+incompatible
Repository: https://github.com/vitessio/vitess.git
Documentation: pkg.go.dev

# Functions

GetCredentialsServer returns the current CredentialsServer.
HasConnectionParams returns true if connection parameters were specified in the command-line.
Init will initialize all the necessary connection parameters.
NewTestDBConfigs returns a DBConfigs meant for testing.
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

All can be used to register all flags: RegisterFlags(All...).
AllCredentialsServers contains all the known CredentialsServer implementations.
ErrUnknownUser is returned by credential server when the user doesn't exist.

# Structs

DBConfigs stores all the data needed to build various connection parameters for the db.
FileCredentialsServer is a simple implementation of CredentialsServer using a json file.

# Interfaces

CredentialsServer is the interface for a credential server.