kctlutils

package
v1.10.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 18, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

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 New

func New(c client.Reader, serviceNS string) *Client

func (*Client) GetConnDSN

func (c *Client) GetConnDSN(ctx context.Context, dbClaim *v1.DatabaseClaim) (string, error)

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

func (*Client) GetMasterDSN

func (c *Client) GetMasterDSN(ctx context.Context, secretName, databaseName, sslMode string) (string, error)

MasterCreds reads the master credentials that crossplane has stored in the secret Returns a DSN

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL