db

package
v0.0.0-...-8f7a178 Latest Latest
Warning

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

Go to latest
Published: Jul 31, 2023 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetConnectionString

func GetConnectionString(host, user, password, name string, port int) string

Types

type Database

type Database struct {
	// contains filtered or unexported fields
}

func NewClient

func NewClient(ctx context.Context, connString string, tables map[string]string) (*Database, error)

func (*Database) Close

func (pg *Database) Close(ctx context.Context)

func (*Database) GetProviderCluster

func (pg *Database) GetProviderCluster(ctx context.Context, clusterID string) (*types.ProviderCluster, error)

func (*Database) OnProvider

func (pg *Database) OnProvider(ctx context.Context, log logr.Logger, notifyExisting bool, fn func(providerName string)) error

Jump to

Keyboard shortcuts

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