Documentation ¶
Index ¶
- type PSQLServerClient
- func (c *PSQLServerClient) AddServerCredsToSecrets(ctx context.Context, secretClient secrets.SecretClient, data map[string][]byte, ...) error
- func (c *PSQLServerClient) CheckServerNameAvailability(ctx context.Context, servername string) (bool, error)
- func (c *PSQLServerClient) CreateServerIfValid(ctx context.Context, instance v1alpha2.PostgreSQLServer, ...) (pollingURL string, server psql.Server, err error)
- func (c *PSQLServerClient) Delete(ctx context.Context, obj runtime.Object, opts ...resourcemanager.ConfigOption) (bool, error)
- func (c *PSQLServerClient) DeleteServer(ctx context.Context, resourcegroup string, servername string) (status string, err error)
- func (c *PSQLServerClient) Ensure(ctx context.Context, obj runtime.Object, opts ...resourcemanager.ConfigOption) (bool, error)
- func (c *PSQLServerClient) GetOrPrepareSecret(ctx context.Context, secretClient secrets.SecretClient, ...) (map[string][]byte, error)
- func (c *PSQLServerClient) GetParents(obj runtime.Object) ([]resourcemanager.KubeParent, error)
- func (c *PSQLServerClient) GetServer(ctx context.Context, resourcegroup string, servername string) (server psql.Server, err error)
- func (c *PSQLServerClient) GetStatus(obj runtime.Object) (*v1alpha1.ASOStatus, error)
- func (c *PSQLServerClient) UpdateSecretWithFullServerName(ctx context.Context, secretClient secrets.SecretClient, data map[string][]byte, ...) error
- type PostgreSQLServerManager
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PSQLServerClient ¶
type PSQLServerClient struct { Creds config.Credentials SecretClient secrets.SecretClient Scheme *runtime.Scheme }
func NewPSQLServerClient ¶
func NewPSQLServerClient(creds config.Credentials, secretclient secrets.SecretClient, scheme *runtime.Scheme) *PSQLServerClient
func (*PSQLServerClient) AddServerCredsToSecrets ¶
func (c *PSQLServerClient) AddServerCredsToSecrets(ctx context.Context, secretClient secrets.SecretClient, data map[string][]byte, instance *v1alpha2.PostgreSQLServer) error
func (*PSQLServerClient) CheckServerNameAvailability ¶
func (*PSQLServerClient) CreateServerIfValid ¶
func (*PSQLServerClient) Delete ¶
func (c *PSQLServerClient) Delete(ctx context.Context, obj runtime.Object, opts ...resourcemanager.ConfigOption) (bool, error)
Delete deletes the Postgres server
func (*PSQLServerClient) DeleteServer ¶
func (*PSQLServerClient) Ensure ¶
func (c *PSQLServerClient) Ensure(ctx context.Context, obj runtime.Object, opts ...resourcemanager.ConfigOption) (bool, error)
Ensure creates the Postgres server
func (*PSQLServerClient) GetOrPrepareSecret ¶
func (c *PSQLServerClient) GetOrPrepareSecret(ctx context.Context, secretClient secrets.SecretClient, instance *v1alpha2.PostgreSQLServer) (map[string][]byte, error)
func (*PSQLServerClient) GetParents ¶
func (c *PSQLServerClient) GetParents(obj runtime.Object) ([]resourcemanager.KubeParent, error)
GetParents gets the resource's parents
func (*PSQLServerClient) UpdateSecretWithFullServerName ¶
func (c *PSQLServerClient) UpdateSecretWithFullServerName(ctx context.Context, secretClient secrets.SecretClient, data map[string][]byte, instance *v1alpha2.PostgreSQLServer, fullServerName string) error
type PostgreSQLServerManager ¶
type PostgreSQLServerManager interface { CheckServerNameAvailability(ctx context.Context, servername string) (bool, error) CreateServerIfValid(ctx context.Context, instance v1alpha2.PostgreSQLServer, tags map[string]*string, skuInfo psql.Sku, adminlogin string, adminpassword string, createmode string) (string, psql.Server, error) DeleteServer(ctx context.Context, resourcegroup string, servername string) (string, error) GetServer(ctx context.Context, resourcegroup string, servername string) (psql.Server, error) AddServerCredsToSecrets(ctx context.Context, secretName string, data map[string][]byte, instance *v1alpha2.PostgreSQLServer) error GetOrPrepareSecret(ctx context.Context, instance *v1alpha2.PostgreSQLServer) (map[string][]byte, error) // also embed async client methods resourcemanager.ARMClient }
Click to show internal directories.
Click to hide internal directories.