postgres

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: 10 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PostgresPlugin

type PostgresPlugin atlas.PostgresPlugin

func Convert

func Convert(a *atlas.PostgresPlugin) *PostgresPlugin

func (*PostgresPlugin) CreatePod

func (p *PostgresPlugin) 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 (*PostgresPlugin) DatabasePlugin

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

func (*PostgresPlugin) DeleteDatabase

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

func (*PostgresPlugin) DiffPod

func (p *PostgresPlugin) 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 (*PostgresPlugin) Dsn

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

func (*PostgresPlugin) Name

func (p *PostgresPlugin) Name() string

func (*PostgresPlugin) SyncDatabase

func (p *PostgresPlugin) 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