Documentation ¶
Index ¶
Constants ¶
View Source
const ( EnvDBHost = "MYSQL_HOST" EnvDBPort = "MYSQL_PORT" EnvDBDatabase = "MYSQL_DB_NAME" EnvDBUser = "MYSQL_USER" EnvDBPassword = "MYSQL_PASSWORD" EnvLogMode = "MYSQL_LOGMODE" )
Constants down below defines configurations to initialize a mysql backend storage service, user should set sls environment variables in Dockerfile or deployment manifests files, for security user should better init environment variables by referencing Secret key as down below: spec:
containers: - name: xxx-container image: xxx env: - name: MYSQL_HOST valueFrom: secretKeyRef: name: my-mysql-secret key: host
Variables ¶
This section is empty.
Functions ¶
func GetMysqlDBSource ¶
func NewMysqlBackendService ¶
func NewMysqlBackendService() backends.ObjectStorageBackend
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.