mysql

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2020 License: Apache-2.0 Imports: 17 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
View Source
const (

	// Expanded object statuses only used in persistent layer.
	PodStopped = "Stopped"
	JobStopped = "Stopped"
)

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