Documentation ¶
Index ¶
- func AppendGCPClientCert(ctx context.Context, sessionCtx *common.Session, ...) error
- func GetGCPRequireSSL(ctx context.Context, sessionCtx *common.Session, ...) (requireSSL bool, err error)
- type ElastiCacheMock
- func (m *ElastiCacheMock) AddMockUser(user *elasticache.User, tagsMap map[string]string)
- func (m *ElastiCacheMock) DescribeCacheClustersPagesWithContext(aws.Context, *elasticache.DescribeCacheClustersInput, ...) error
- func (m *ElastiCacheMock) DescribeCacheSubnetGroupsPagesWithContext(aws.Context, *elasticache.DescribeCacheSubnetGroupsInput, ...) error
- func (m *ElastiCacheMock) DescribeReplicationGroupsPagesWithContext(_ aws.Context, _ *elasticache.DescribeReplicationGroupsInput, ...) error
- func (m *ElastiCacheMock) DescribeReplicationGroupsWithContext(_ aws.Context, input *elasticache.DescribeReplicationGroupsInput, ...) (*elasticache.DescribeReplicationGroupsOutput, error)
- func (m *ElastiCacheMock) DescribeUsersPagesWithContext(_ aws.Context, _ *elasticache.DescribeUsersInput, ...) error
- func (m *ElastiCacheMock) ListTagsForResourceWithContext(_ aws.Context, input *elasticache.ListTagsForResourceInput, ...) (*elasticache.TagListMessage, error)
- func (m *ElastiCacheMock) ModifyUserWithContext(_ aws.Context, input *elasticache.ModifyUserInput, opts ...request.Option) (*elasticache.ModifyUserOutput, error)
- type GCPSQLAdminClientMock
- func (g *GCPSQLAdminClientMock) GenerateEphemeralCert(ctx context.Context, db types.Database, identity tlsca.Identity) (*tls.Certificate, error)
- func (g *GCPSQLAdminClientMock) GetDatabaseInstance(ctx context.Context, db types.Database) (*sqladmin.DatabaseInstance, error)
- func (g *GCPSQLAdminClientMock) UpdateUser(ctx context.Context, db types.Database, dbUser string, user *sqladmin.User) error
- type IAM
- type IAMConfig
- type IAMErrorMock
- func (m *IAMErrorMock) GetRolePolicyWithContext(ctx aws.Context, input *iam.GetRolePolicyInput, options ...request.Option) (*iam.GetRolePolicyOutput, error)
- func (m *IAMErrorMock) GetUserPolicyWithContext(ctx aws.Context, input *iam.GetUserPolicyInput, options ...request.Option) (*iam.GetUserPolicyOutput, error)
- func (m *IAMErrorMock) PutRolePolicyWithContext(ctx aws.Context, input *iam.PutRolePolicyInput, options ...request.Option) (*iam.PutRolePolicyOutput, error)
- func (m *IAMErrorMock) PutUserPolicyWithContext(ctx aws.Context, input *iam.PutUserPolicyInput, options ...request.Option) (*iam.PutUserPolicyOutput, error)
- type IAMMock
- func (m *IAMMock) DeleteRolePolicyWithContext(ctx aws.Context, input *iam.DeleteRolePolicyInput, options ...request.Option) (*iam.DeleteRolePolicyOutput, error)
- func (m *IAMMock) DeleteUserPolicyWithContext(ctx aws.Context, input *iam.DeleteUserPolicyInput, options ...request.Option) (*iam.DeleteUserPolicyOutput, error)
- func (m *IAMMock) GetRolePolicyWithContext(ctx aws.Context, input *iam.GetRolePolicyInput, options ...request.Option) (*iam.GetRolePolicyOutput, error)
- func (m *IAMMock) GetUserPolicyWithContext(ctx aws.Context, input *iam.GetUserPolicyInput, options ...request.Option) (*iam.GetUserPolicyOutput, error)
- func (m *IAMMock) PutRolePolicyWithContext(ctx aws.Context, input *iam.PutRolePolicyInput, options ...request.Option) (*iam.PutRolePolicyOutput, error)
- func (m *IAMMock) PutUserPolicyWithContext(ctx aws.Context, input *iam.PutUserPolicyInput, options ...request.Option) (*iam.PutUserPolicyOutput, error)
- type MemoryDBMock
- func (m *MemoryDBMock) AddMockUser(user *memorydb.User, tagsMap map[string]string)
- func (m *MemoryDBMock) DescribeClustersWithContext(_ aws.Context, input *memorydb.DescribeClustersInput, _ ...request.Option) (*memorydb.DescribeClustersOutput, error)
- func (m *MemoryDBMock) DescribeSubnetGroupsWithContext(aws.Context, *memorydb.DescribeSubnetGroupsInput, ...request.Option) (*memorydb.DescribeSubnetGroupsOutput, error)
- func (m *MemoryDBMock) DescribeUsersWithContext(aws.Context, *memorydb.DescribeUsersInput, ...request.Option) (*memorydb.DescribeUsersOutput, error)
- func (m *MemoryDBMock) ListTagsWithContext(_ aws.Context, input *memorydb.ListTagsInput, _ ...request.Option) (*memorydb.ListTagsOutput, error)
- func (m *MemoryDBMock) UpdateUserWithContext(_ aws.Context, input *memorydb.UpdateUserInput, opts ...request.Option) (*memorydb.UpdateUserOutput, error)
- type Metadata
- type MetadataConfig
- type RDSMock
- func (m *RDSMock) DescribeDBClustersPagesWithContext(aws aws.Context, input *rds.DescribeDBClustersInput, ...) error
- func (m *RDSMock) DescribeDBClustersWithContext(ctx aws.Context, input *rds.DescribeDBClustersInput, options ...request.Option) (*rds.DescribeDBClustersOutput, error)
- func (m *RDSMock) DescribeDBInstancesPagesWithContext(ctx aws.Context, input *rds.DescribeDBInstancesInput, ...) error
- func (m *RDSMock) DescribeDBInstancesWithContext(ctx aws.Context, input *rds.DescribeDBInstancesInput, ...) (*rds.DescribeDBInstancesOutput, error)
- func (m *RDSMock) ModifyDBClusterWithContext(ctx aws.Context, input *rds.ModifyDBClusterInput, options ...request.Option) (*rds.ModifyDBClusterOutput, error)
- func (m *RDSMock) ModifyDBInstanceWithContext(ctx aws.Context, input *rds.ModifyDBInstanceInput, options ...request.Option) (*rds.ModifyDBInstanceOutput, error)
- type RDSMockByDBType
- func (m *RDSMockByDBType) DescribeDBClustersPagesWithContext(aws aws.Context, input *rds.DescribeDBClustersInput, ...) error
- func (m *RDSMockByDBType) DescribeDBClustersWithContext(ctx aws.Context, input *rds.DescribeDBClustersInput, options ...request.Option) (*rds.DescribeDBClustersOutput, error)
- func (m *RDSMockByDBType) DescribeDBInstancesPagesWithContext(ctx aws.Context, input *rds.DescribeDBInstancesInput, ...) error
- func (m *RDSMockByDBType) DescribeDBInstancesWithContext(ctx aws.Context, input *rds.DescribeDBInstancesInput, ...) (*rds.DescribeDBInstancesOutput, error)
- func (m *RDSMockByDBType) ModifyDBClusterWithContext(ctx aws.Context, input *rds.ModifyDBClusterInput, options ...request.Option) (*rds.ModifyDBClusterOutput, error)
- func (m *RDSMockByDBType) ModifyDBInstanceWithContext(ctx aws.Context, input *rds.ModifyDBInstanceInput, options ...request.Option) (*rds.ModifyDBInstanceOutput, error)
- type RDSMockUnauth
- func (m *RDSMockUnauth) DescribeDBClustersPagesWithContext(aws aws.Context, input *rds.DescribeDBClustersInput, ...) error
- func (m *RDSMockUnauth) DescribeDBClustersWithContext(ctx aws.Context, input *rds.DescribeDBClustersInput, options ...request.Option) (*rds.DescribeDBClustersOutput, error)
- func (m *RDSMockUnauth) DescribeDBInstancesPagesWithContext(ctx aws.Context, input *rds.DescribeDBInstancesInput, ...) error
- func (m *RDSMockUnauth) DescribeDBInstancesWithContext(ctx aws.Context, input *rds.DescribeDBInstancesInput, ...) (*rds.DescribeDBInstancesOutput, error)
- func (m *RDSMockUnauth) ModifyDBClusterWithContext(ctx aws.Context, input *rds.ModifyDBClusterInput, options ...request.Option) (*rds.ModifyDBClusterOutput, error)
- func (m *RDSMockUnauth) ModifyDBInstanceWithContext(ctx aws.Context, input *rds.ModifyDBInstanceInput, options ...request.Option) (*rds.ModifyDBInstanceOutput, error)
- type RedshiftMock
- type RedshiftMockUnauth
- type STSMock
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AppendGCPClientCert ¶
func AppendGCPClientCert(ctx context.Context, sessionCtx *common.Session, gcpClient cloud.GCPSQLAdminClient, tlsConfig *tls.Config) error
AppendGCPClientCert calls the GCP API to generate an ephemeral certificate and adds it to the TLS config. An access denied error is returned when the generate call fails.
func GetGCPRequireSSL ¶
func GetGCPRequireSSL(ctx context.Context, sessionCtx *common.Session, gcpClient cloud.GCPSQLAdminClient) (requireSSL bool, err error)
GetGCPRequireSSL requests settings for the project/instance in session from GCP and returns true when the instance requires SSL. An access denied error is returned when an unauthorized error is returned from GCP.
Types ¶
type ElastiCacheMock ¶
type ElastiCacheMock struct { elasticacheiface.ElastiCacheAPI ReplicationGroups []*elasticache.ReplicationGroup Users []*elasticache.User TagsByARN map[string][]*elasticache.Tag }
ElastiCache mocks AWS ElastiCache API.
func (*ElastiCacheMock) AddMockUser ¶
func (m *ElastiCacheMock) AddMockUser(user *elasticache.User, tagsMap map[string]string)
func (*ElastiCacheMock) DescribeCacheClustersPagesWithContext ¶
func (m *ElastiCacheMock) DescribeCacheClustersPagesWithContext(aws.Context, *elasticache.DescribeCacheClustersInput, func(*elasticache.DescribeCacheClustersOutput, bool) bool, ...request.Option) error
func (*ElastiCacheMock) DescribeCacheSubnetGroupsPagesWithContext ¶
func (m *ElastiCacheMock) DescribeCacheSubnetGroupsPagesWithContext(aws.Context, *elasticache.DescribeCacheSubnetGroupsInput, func(*elasticache.DescribeCacheSubnetGroupsOutput, bool) bool, ...request.Option) error
func (*ElastiCacheMock) DescribeReplicationGroupsPagesWithContext ¶
func (m *ElastiCacheMock) DescribeReplicationGroupsPagesWithContext(_ aws.Context, _ *elasticache.DescribeReplicationGroupsInput, fn func(*elasticache.DescribeReplicationGroupsOutput, bool) bool, _ ...request.Option) error
func (*ElastiCacheMock) DescribeReplicationGroupsWithContext ¶
func (m *ElastiCacheMock) DescribeReplicationGroupsWithContext(_ aws.Context, input *elasticache.DescribeReplicationGroupsInput, opts ...request.Option) (*elasticache.DescribeReplicationGroupsOutput, error)
func (*ElastiCacheMock) DescribeUsersPagesWithContext ¶
func (m *ElastiCacheMock) DescribeUsersPagesWithContext(_ aws.Context, _ *elasticache.DescribeUsersInput, fn func(*elasticache.DescribeUsersOutput, bool) bool, _ ...request.Option) error
func (*ElastiCacheMock) ListTagsForResourceWithContext ¶
func (m *ElastiCacheMock) ListTagsForResourceWithContext(_ aws.Context, input *elasticache.ListTagsForResourceInput, _ ...request.Option) (*elasticache.TagListMessage, error)
func (*ElastiCacheMock) ModifyUserWithContext ¶
func (m *ElastiCacheMock) ModifyUserWithContext(_ aws.Context, input *elasticache.ModifyUserInput, opts ...request.Option) (*elasticache.ModifyUserOutput, error)
type GCPSQLAdminClientMock ¶
type GCPSQLAdminClientMock struct { // DatabaseInstance is returned from GetDatabaseInstance. DatabaseInstance *sqladmin.DatabaseInstance // EphemeralCert is returned from GenerateEphemeralCert. EphemeralCert *tls.Certificate }
GCPSQLAdminClientMock implements the common.GCPSQLAdminClient interface for tests.
func (*GCPSQLAdminClientMock) GenerateEphemeralCert ¶
func (g *GCPSQLAdminClientMock) GenerateEphemeralCert(ctx context.Context, db types.Database, identity tlsca.Identity) (*tls.Certificate, error)
func (*GCPSQLAdminClientMock) GetDatabaseInstance ¶
func (g *GCPSQLAdminClientMock) GetDatabaseInstance(ctx context.Context, db types.Database) (*sqladmin.DatabaseInstance, error)
type IAM ¶
type IAM struct {
// contains filtered or unexported fields
}
IAM is a service that manages IAM policies for cloud databases.
A semaphore lock has to be acquired by the this service before making changes to the IAM inline policy as database agents may share the same the same policy. These tasks are processed in a background goroutine to avoid blocking callers when acquiring the locks with retries.
type IAMConfig ¶
type IAMConfig struct { // Clock is used to control time. Clock clockwork.Clock // AccessPoint is a caching client connected to the Auth Server. AccessPoint auth.DatabaseAccessPoint // Clients is an interface for retrieving cloud clients. Clients cloud.Clients // HostID is the host identified where this agent is running. // DELETE IN 11.0. HostID string // contains filtered or unexported fields }
IAMConfig is the IAM configurator config.
type IAMErrorMock ¶
IAMErrorMock is a mock IAM client that returns the provided Error to all APIs. If Error is not provided, all APIs returns trace.AccessDenied by default.
func (*IAMErrorMock) GetRolePolicyWithContext ¶
func (m *IAMErrorMock) GetRolePolicyWithContext(ctx aws.Context, input *iam.GetRolePolicyInput, options ...request.Option) (*iam.GetRolePolicyOutput, error)
func (*IAMErrorMock) GetUserPolicyWithContext ¶
func (m *IAMErrorMock) GetUserPolicyWithContext(ctx aws.Context, input *iam.GetUserPolicyInput, options ...request.Option) (*iam.GetUserPolicyOutput, error)
func (*IAMErrorMock) PutRolePolicyWithContext ¶
func (m *IAMErrorMock) PutRolePolicyWithContext(ctx aws.Context, input *iam.PutRolePolicyInput, options ...request.Option) (*iam.PutRolePolicyOutput, error)
func (*IAMErrorMock) PutUserPolicyWithContext ¶
func (m *IAMErrorMock) PutUserPolicyWithContext(ctx aws.Context, input *iam.PutUserPolicyInput, options ...request.Option) (*iam.PutUserPolicyOutput, error)
type IAMMock ¶
IAMMock mocks AWS IAM API.
func (*IAMMock) DeleteRolePolicyWithContext ¶
func (m *IAMMock) DeleteRolePolicyWithContext(ctx aws.Context, input *iam.DeleteRolePolicyInput, options ...request.Option) (*iam.DeleteRolePolicyOutput, error)
func (*IAMMock) DeleteUserPolicyWithContext ¶
func (m *IAMMock) DeleteUserPolicyWithContext(ctx aws.Context, input *iam.DeleteUserPolicyInput, options ...request.Option) (*iam.DeleteUserPolicyOutput, error)
func (*IAMMock) GetRolePolicyWithContext ¶
func (m *IAMMock) GetRolePolicyWithContext(ctx aws.Context, input *iam.GetRolePolicyInput, options ...request.Option) (*iam.GetRolePolicyOutput, error)
func (*IAMMock) GetUserPolicyWithContext ¶
func (m *IAMMock) GetUserPolicyWithContext(ctx aws.Context, input *iam.GetUserPolicyInput, options ...request.Option) (*iam.GetUserPolicyOutput, error)
func (*IAMMock) PutRolePolicyWithContext ¶
func (m *IAMMock) PutRolePolicyWithContext(ctx aws.Context, input *iam.PutRolePolicyInput, options ...request.Option) (*iam.PutRolePolicyOutput, error)
func (*IAMMock) PutUserPolicyWithContext ¶
func (m *IAMMock) PutUserPolicyWithContext(ctx aws.Context, input *iam.PutUserPolicyInput, options ...request.Option) (*iam.PutUserPolicyOutput, error)
type MemoryDBMock ¶
type MemoryDBMock struct { memorydbiface.MemoryDBAPI Clusters []*memorydb.Cluster Users []*memorydb.User TagsByARN map[string][]*memorydb.Tag }
MemoryDBMock mocks AWS MemoryDB API.
func (*MemoryDBMock) AddMockUser ¶
func (m *MemoryDBMock) AddMockUser(user *memorydb.User, tagsMap map[string]string)
func (*MemoryDBMock) DescribeClustersWithContext ¶
func (m *MemoryDBMock) DescribeClustersWithContext(_ aws.Context, input *memorydb.DescribeClustersInput, _ ...request.Option) (*memorydb.DescribeClustersOutput, error)
func (*MemoryDBMock) DescribeSubnetGroupsWithContext ¶
func (m *MemoryDBMock) DescribeSubnetGroupsWithContext(aws.Context, *memorydb.DescribeSubnetGroupsInput, ...request.Option) (*memorydb.DescribeSubnetGroupsOutput, error)
func (*MemoryDBMock) DescribeUsersWithContext ¶
func (m *MemoryDBMock) DescribeUsersWithContext(aws.Context, *memorydb.DescribeUsersInput, ...request.Option) (*memorydb.DescribeUsersOutput, error)
func (*MemoryDBMock) ListTagsWithContext ¶
func (m *MemoryDBMock) ListTagsWithContext(_ aws.Context, input *memorydb.ListTagsInput, _ ...request.Option) (*memorydb.ListTagsOutput, error)
func (*MemoryDBMock) UpdateUserWithContext ¶
func (m *MemoryDBMock) UpdateUserWithContext(_ aws.Context, input *memorydb.UpdateUserInput, opts ...request.Option) (*memorydb.UpdateUserOutput, error)
type Metadata ¶
type Metadata struct {
// contains filtered or unexported fields
}
Metadata is a service that fetches cloud databases metadata.
func NewMetadata ¶
func NewMetadata(config MetadataConfig) (*Metadata, error)
NewMetadata returns a new cloud metadata service.
type MetadataConfig ¶
type MetadataConfig struct { // Clients is an interface for retrieving cloud clients. Clients cloud.Clients }
MetadataConfig is the cloud metadata service config.
func (*MetadataConfig) Check ¶
func (c *MetadataConfig) Check() error
Check validates the metadata service config.
type RDSMock ¶
RDSMock mocks AWS RDS API.
func (*RDSMock) DescribeDBClustersPagesWithContext ¶
func (*RDSMock) DescribeDBClustersWithContext ¶
func (m *RDSMock) DescribeDBClustersWithContext(ctx aws.Context, input *rds.DescribeDBClustersInput, options ...request.Option) (*rds.DescribeDBClustersOutput, error)
func (*RDSMock) DescribeDBInstancesPagesWithContext ¶
func (*RDSMock) DescribeDBInstancesWithContext ¶
func (m *RDSMock) DescribeDBInstancesWithContext(ctx aws.Context, input *rds.DescribeDBInstancesInput, options ...request.Option) (*rds.DescribeDBInstancesOutput, error)
func (*RDSMock) ModifyDBClusterWithContext ¶
func (m *RDSMock) ModifyDBClusterWithContext(ctx aws.Context, input *rds.ModifyDBClusterInput, options ...request.Option) (*rds.ModifyDBClusterOutput, error)
func (*RDSMock) ModifyDBInstanceWithContext ¶
func (m *RDSMock) ModifyDBInstanceWithContext(ctx aws.Context, input *rds.ModifyDBInstanceInput, options ...request.Option) (*rds.ModifyDBInstanceOutput, error)
type RDSMockByDBType ¶
type RDSMockByDBType struct { rdsiface.RDSAPI DBInstances rdsiface.RDSAPI DBClusters rdsiface.RDSAPI }
RDSMockByDBType is a mock RDS client that mocks API calls by DB type
func (*RDSMockByDBType) DescribeDBClustersPagesWithContext ¶
func (m *RDSMockByDBType) DescribeDBClustersPagesWithContext(aws aws.Context, input *rds.DescribeDBClustersInput, fn func(*rds.DescribeDBClustersOutput, bool) bool, options ...request.Option) error
func (*RDSMockByDBType) DescribeDBClustersWithContext ¶
func (m *RDSMockByDBType) DescribeDBClustersWithContext(ctx aws.Context, input *rds.DescribeDBClustersInput, options ...request.Option) (*rds.DescribeDBClustersOutput, error)
func (*RDSMockByDBType) DescribeDBInstancesPagesWithContext ¶
func (m *RDSMockByDBType) DescribeDBInstancesPagesWithContext(ctx aws.Context, input *rds.DescribeDBInstancesInput, fn func(*rds.DescribeDBInstancesOutput, bool) bool, options ...request.Option) error
func (*RDSMockByDBType) DescribeDBInstancesWithContext ¶
func (m *RDSMockByDBType) DescribeDBInstancesWithContext(ctx aws.Context, input *rds.DescribeDBInstancesInput, options ...request.Option) (*rds.DescribeDBInstancesOutput, error)
func (*RDSMockByDBType) ModifyDBClusterWithContext ¶
func (m *RDSMockByDBType) ModifyDBClusterWithContext(ctx aws.Context, input *rds.ModifyDBClusterInput, options ...request.Option) (*rds.ModifyDBClusterOutput, error)
func (*RDSMockByDBType) ModifyDBInstanceWithContext ¶
func (m *RDSMockByDBType) ModifyDBInstanceWithContext(ctx aws.Context, input *rds.ModifyDBInstanceInput, options ...request.Option) (*rds.ModifyDBInstanceOutput, error)
type RDSMockUnauth ¶
RDSMockUnauth is a mock RDS client that returns access denied to each call.
func (*RDSMockUnauth) DescribeDBClustersPagesWithContext ¶
func (m *RDSMockUnauth) DescribeDBClustersPagesWithContext(aws aws.Context, input *rds.DescribeDBClustersInput, fn func(*rds.DescribeDBClustersOutput, bool) bool, options ...request.Option) error
func (*RDSMockUnauth) DescribeDBClustersWithContext ¶
func (m *RDSMockUnauth) DescribeDBClustersWithContext(ctx aws.Context, input *rds.DescribeDBClustersInput, options ...request.Option) (*rds.DescribeDBClustersOutput, error)
func (*RDSMockUnauth) DescribeDBInstancesPagesWithContext ¶
func (m *RDSMockUnauth) DescribeDBInstancesPagesWithContext(ctx aws.Context, input *rds.DescribeDBInstancesInput, fn func(*rds.DescribeDBInstancesOutput, bool) bool, options ...request.Option) error
func (*RDSMockUnauth) DescribeDBInstancesWithContext ¶
func (m *RDSMockUnauth) DescribeDBInstancesWithContext(ctx aws.Context, input *rds.DescribeDBInstancesInput, options ...request.Option) (*rds.DescribeDBInstancesOutput, error)
func (*RDSMockUnauth) ModifyDBClusterWithContext ¶
func (m *RDSMockUnauth) ModifyDBClusterWithContext(ctx aws.Context, input *rds.ModifyDBClusterInput, options ...request.Option) (*rds.ModifyDBClusterOutput, error)
func (*RDSMockUnauth) ModifyDBInstanceWithContext ¶
func (m *RDSMockUnauth) ModifyDBInstanceWithContext(ctx aws.Context, input *rds.ModifyDBInstanceInput, options ...request.Option) (*rds.ModifyDBInstanceOutput, error)
type RedshiftMock ¶
type RedshiftMock struct { redshiftiface.RedshiftAPI Clusters []*redshift.Cluster }
RedshiftMock mocks AWS Redshift API.
func (*RedshiftMock) DescribeClustersPagesWithContext ¶
func (m *RedshiftMock) DescribeClustersPagesWithContext(ctx aws.Context, input *redshift.DescribeClustersInput, fn func(*redshift.DescribeClustersOutput, bool) bool, options ...request.Option) error
func (*RedshiftMock) DescribeClustersWithContext ¶
func (m *RedshiftMock) DescribeClustersWithContext(ctx aws.Context, input *redshift.DescribeClustersInput, options ...request.Option) (*redshift.DescribeClustersOutput, error)
type RedshiftMockUnauth ¶
type RedshiftMockUnauth struct {
redshiftiface.RedshiftAPI
}
RedshiftMockUnauth is a mock Redshift client that returns access denied to each call.
func (*RedshiftMockUnauth) DescribeClustersWithContext ¶
func (m *RedshiftMockUnauth) DescribeClustersWithContext(ctx aws.Context, input *redshift.DescribeClustersInput, options ...request.Option) (*redshift.DescribeClustersOutput, error)