Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewRedshiftClient ¶
NewRedshiftClient loads AWS Config and creds, and returns an Redshift client
Types ¶
type DBClusterResult ¶
DBInstanceResult is wrapper around a DBInstance or error as a result of listing RDS Instances
type RDSClient ¶
type RDSClient interface { GetPostgresInstances(ctx context.Context) <-chan DBClusterResult NewAuthToken(ctx context.Context, host, region, user string) (string, error) RegionForInstance(inst types.DBCluster) (string, error) }
RDSClient is our wrapper around the RDS library, allows us to mock this for testing
type RedshiftClient ¶
type RedshiftClient interface { GetRedshiftInstances(ctx context.Context) <-chan RedshiftClusterResult NewAuthToken(ctx context.Context, clusterId, region, user string) (string, error) RegionForInstance(inst types.Cluster) (string, error) }
RedshiftClient is our wrapper around the Redshift library, allows us to mock this for testing
type RedshiftClusterResult ¶
RedshiftClusterResult is wrapper around a DBInstance or error as a result of listing Redshift cluster
Click to show internal directories.
Click to hide internal directories.