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