Documentation
¶
Index ¶
- func GetPSQLDatabasesClient(creds config.Credentials) (psql.DatabasesClient, error)
- type PSQLDatabaseClient
- func (c *PSQLDatabaseClient) CheckDatabaseNameAvailability(ctx context.Context, databasename string) (bool, error)
- func (c *PSQLDatabaseClient) CreateDatabaseIfValid(ctx context.Context, databasename string, servername string, ...) (*http.Response, error)
- func (p *PSQLDatabaseClient) Delete(ctx context.Context, obj runtime.Object, opts ...resourcemanager.ConfigOption) (bool, error)
- func (c *PSQLDatabaseClient) DeleteDatabase(ctx context.Context, databasename string, servername string, ...) (status string, err error)
- func (p *PSQLDatabaseClient) Ensure(ctx context.Context, obj runtime.Object, opts ...resourcemanager.ConfigOption) (bool, error)
- func (c *PSQLDatabaseClient) GetDatabase(ctx context.Context, resourcegroup string, servername string, ...) (db psql.Database, err error)
- func (p *PSQLDatabaseClient) GetParents(obj runtime.Object) ([]resourcemanager.KubeParent, error)
- func (p *PSQLDatabaseClient) GetStatus(obj runtime.Object) (*v1alpha1.ASOStatus, error)
- type PostgreSQLDatabaseManager
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetPSQLDatabasesClient ¶
func GetPSQLDatabasesClient(creds config.Credentials) (psql.DatabasesClient, error)
GetPSQLDatabasesClient retrieves the psqldabase
Types ¶
type PSQLDatabaseClient ¶
type PSQLDatabaseClient struct {
// contains filtered or unexported fields
}
func NewPSQLDatabaseClient ¶
func NewPSQLDatabaseClient(creds config.Credentials) *PSQLDatabaseClient
func (*PSQLDatabaseClient) CheckDatabaseNameAvailability ¶
func (*PSQLDatabaseClient) CreateDatabaseIfValid ¶
func (*PSQLDatabaseClient) Delete ¶
func (p *PSQLDatabaseClient) Delete(ctx context.Context, obj runtime.Object, opts ...resourcemanager.ConfigOption) (bool, error)
Delete removes the Postgres database
func (*PSQLDatabaseClient) DeleteDatabase ¶
func (*PSQLDatabaseClient) Ensure ¶
func (p *PSQLDatabaseClient) Ensure(ctx context.Context, obj runtime.Object, opts ...resourcemanager.ConfigOption) (bool, error)
Ensure ensures a Postgres database exists
func (*PSQLDatabaseClient) GetDatabase ¶
func (*PSQLDatabaseClient) GetParents ¶
func (p *PSQLDatabaseClient) GetParents(obj runtime.Object) ([]resourcemanager.KubeParent, error)
GetParents gets the database's parents
type PostgreSQLDatabaseManager ¶
type PostgreSQLDatabaseManager interface {
CheckDatabaseNameAvailability(ctx context.Context,
databasename string) (bool, error)
CreateDatabaseIfValid(ctx context.Context,
databasename string,
servername string,
resourcegroup string) (*http.Response, error)
DeleteDatabase(ctx context.Context,
databasename string,
servername string,
resourcegroup string) (string, error)
GetDatabase(ctx context.Context,
resourcegroup string,
servername string,
database string) (psql.Database, error)
// also embed async client methods
resourcemanager.ARMClient
}
Click to show internal directories.
Click to hide internal directories.