postgres

package
v2.0.2 Latest Latest
Warning

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

Go to latest
Published: Jun 30, 2025 License: MIT Imports: 33 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddUser

func AddUser(ctx context.Context, appName, username, password string, cluster flag.Context, namespace flag.Namespace, privilege string, out cli.Output) error

func EnableAuditLogging

func EnableAuditLogging(ctx context.Context, appName string, cluster flag.Context, namespace flag.Namespace) error

func GrantAndCreateSQLUser

func GrantAndCreateSQLUser(ctx context.Context, appName string, cluster flag.Context, namespace flag.Namespace, out cli.Output) error

func ListUsers

func ListUsers(ctx context.Context, appName string, cluster flag.Context, namespace flag.Namespace, out cli.Output) error

func PrepareAccess

func PrepareAccess(ctx context.Context, appName string, namespace flag.Namespace, cluster flag.Context, schema string, allPrivs bool) error

func RevokeAccess

func RevokeAccess(ctx context.Context, appName string, namespace flag.Namespace, cluster flag.Context, schema string) error

func RotatePassword

func RotatePassword(ctx context.Context, appName string, cluster flag.Context, namespace flag.Namespace, out cli.Output) error

func RunPSQL

func RunPSQL(ctx context.Context, appName string, cluster flag.Context, namespace flag.Namespace, verbose bool, out cli.Output) error

func RunProxy

func RunProxy(ctx context.Context, appName string, cluster flag.Context, namespace flag.Namespace, host string, port uint, verbose bool, out cli.Output) error

Types

type ConnectionInfo

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

func (*ConnectionInfo) ProxyConnectionString

func (c *ConnectionInfo) ProxyConnectionString() string

func (*ConnectionInfo) SetPassword

func (c *ConnectionInfo) SetPassword(password string)

type DBInfo

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

func NewDBInfo

func NewDBInfo(appName string, namespace flag.Namespace, context flag.Context) (*DBInfo, error)

func (*DBInfo) ConnectionName

func (i *DBInfo) ConnectionName(ctx context.Context) (string, error)

func (*DBInfo) DBConnection

func (i *DBInfo) DBConnection(ctx context.Context) (*ConnectionInfo, error)

func (*DBInfo) ProjectID

func (i *DBInfo) ProjectID(ctx context.Context) (string, error)

Directories

Path Synopsis
ui

Jump to

Keyboard shortcuts

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