Documentation ¶
Index ¶
- type MySQLPlugin
- func (p *MySQLPlugin) CreatePod(key string, s *atlas.DatabaseServer) *corev1.Pod
- func (p *MySQLPlugin) DatabasePlugin() plugin.DatabasePlugin
- func (p *MySQLPlugin) DeleteDatabase(db *atlas.Database) error
- func (p *MySQLPlugin) DiffPod(key string, s *atlas.DatabaseServer, pod *corev1.Pod) string
- func (p *MySQLPlugin) Dsn(userName string, password string, db *atlas.Database, s *atlas.DatabaseServer) string
- func (p *MySQLPlugin) Name() string
- func (p *MySQLPlugin) SyncDatabase(db *atlas.Database, dsn string) (string, error)
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 ¶
Click to show internal directories.
Click to hide internal directories.