rds

package
v0.0.0-...-5b98f1e Latest Latest
Warning

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

Go to latest
Published: Jan 7, 2025 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CommandSet

func CommandSet() *commander.CommandSet

Types

type IXEnv

type IXEnv struct {
	EnvName     string `env:"IX_ENV"`
	ClusterName string `env:"IX_CLUSTER"`
	AWSRegion   string `env:"AWS_REGION"`
	// contains filtered or unexported fields
}

func (*IXEnv) AWS

func (ix *IXEnv) AWS(ctx context.Context) (aws.Config, error)

func (*IXEnv) MustAWS

func (ix *IXEnv) MustAWS(ctx context.Context) aws.Config

type ServerCfg

type ServerCfg struct {
	IXEnv
	ServerName string `flag:"server" default:"default" description:"DB provider name"`
}

func (*ServerCfg) Cluster

func (cfg *ServerCfg) Cluster(ctx context.Context) (*types.DBCluster, error)

func (*ServerCfg) LoginIAM

func (cfg *ServerCfg) LoginIAM(ctx context.Context, cluster *types.DBCluster, username, dbname string) (string, error)

Jump to

Keyboard shortcuts

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