mysql

package
v0.4.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 10, 2022 License: Apache-2.0 Imports: 19 Imported by: 0

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 GetMysqlDBSource() (dbSource, logMode string, err error)

func NewMysqlBackendService

func NewMysqlBackendService() backends.ObjectStorageBackend

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL