Package rds contains Wire providers that are common across RDS.
var CertFetcherSet = wire.NewSet( wire.Struct(new(CertFetcher), "Client"), wire.Bind(new(CertPoolProvider), new(*CertFetcher)), )
CertFetcherSet is a Wire provider set that provides the RDS certificate pool by pulling from Amazon's servers.
type CertFetcher ¶
CertFetcher pulls the RDS CA certificates from Amazon's servers. The zero value will fetch certificates using the default HTTP client.
Fetch fetches the RDS CA certificates. It is safe to call from multiple goroutines.