Documentation
¶
Overview ¶
Package mysql provides a dbmanager implementation that uses a MySQL database for persistence. See kubevoltracker/dbmanager for method documentation.
Index ¶
- Constants
- func GetAccessModeString(accessModes []api.PersistentVolumeAccessMode) string
- func New(username, password, dbAddr string) dbmanager.DBManager
- func NewForDB(username, password, dbAddr, dbName string) dbmanager.DBManager
- func NewParams(username, password, dbAddr, dbName string, params string) dbmanager.DBManager
Constants ¶
View Source
const ErrDuplicateKey = 1062
View Source
const (
SQLTimeFormat = "2006-01-02 15:04:05"
)
Variables ¶
This section is empty.
Functions ¶
func GetAccessModeString ¶
func GetAccessModeString(accessModes []api.PersistentVolumeAccessMode) string
func NewForDB ¶
NewForDB wraps NewForParams, using a default set of connection parameters ("parseTime=true")
func NewParams ¶
NewParams returns a DBManager instance backed by a MySQL database, using the supplied parameter string to modify the connection, as described here: https://github.com/go-sql-driver/mysql The connnection is established with the supplied username and password to the database specified in dbName at the IP address in dbAddr.
Types ¶
This section is empty.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.