mysql

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Aug 14, 2018 License: Apache-2.0 Imports: 9 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MySQLPlugin

type MySQLPlugin atlas.MySQLPlugin

func Convert

func Convert(a *atlas.MySQLPlugin) *MySQLPlugin

func (*MySQLPlugin) CreatePod

func (p *MySQLPlugin) CreatePod(key string, s *atlas.DatabaseServer) *corev1.Pod

CreatePod creates a new Pod for a DatabaseServer resource. It also sets the appropriate OwnerReferences on the resource so handleObject can discover the DatabaseServer resource that 'owns' it.

func (*MySQLPlugin) DatabasePlugin

func (p *MySQLPlugin) DatabasePlugin() plugin.DatabasePlugin

func (*MySQLPlugin) DeleteDatabase

func (p *MySQLPlugin) DeleteDatabase(db *atlas.Database) error

func (*MySQLPlugin) DiffPod

func (p *MySQLPlugin) DiffPod(key string, s *atlas.DatabaseServer, pod *corev1.Pod) string

DiffPod returns a string describing differences between the spec and the pod, or the empty string if there are no differences

func (*MySQLPlugin) Dsn

func (p *MySQLPlugin) Dsn(userName string, password string, db *atlas.Database, s *atlas.DatabaseServer) string

func (*MySQLPlugin) Name

func (p *MySQLPlugin) Name() string

func (*MySQLPlugin) SyncDatabase

func (p *MySQLPlugin) SyncDatabase(db *atlas.Database, dsn string) (string, error)

Jump to

Keyboard shortcuts

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