Documentation ¶
Index ¶
- type Client
- func (c *Client) GetConnDSN(ctx context.Context, dbClaim *v1.DatabaseClaim) (string, error)
- func (c *Client) GetConnSecret(ctx context.Context, dbClaim *v1.DatabaseClaim) (*v1.DatabaseClaimConnectionInfo, error)
- func (c *Client) GetMasterCredsDeprecated(ctx context.Context, secretName, databaseName string, sslMode string) (v1.DatabaseClaimConnectionInfo, error)
- func (c *Client) GetMasterDSN(ctx context.Context, secretName, databaseName, sslMode string) (string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) GetConnDSN ¶
GetConnDSN reads the connection secret created by db-controller
func (*Client) GetConnSecret ¶
func (c *Client) GetConnSecret(ctx context.Context, dbClaim *v1.DatabaseClaim) (*v1.DatabaseClaimConnectionInfo, error)
GetConnSecret reads the connection secret created by db-controller
func (*Client) GetMasterCredsDeprecated ¶
func (c *Client) GetMasterCredsDeprecated(ctx context.Context, secretName, databaseName string, sslMode string) (v1.DatabaseClaimConnectionInfo, error)
GetMasterCredsDeprecated reads the master credentials FIXME: switch to the new GetMasterDSN
Click to show internal directories.
Click to hide internal directories.