Versions in this module Expand all Collapse all v11 v11.3.3 Dec 13, 2022 Changes in this version + type ClusterDetails struct + Location string + Name string + ProjectID string + func (c *ClusterDetails) CheckAndSetDefaults() error + type GKEClient interface + GetClusterRestConfig func(ctx context.Context, cfg ClusterDetails) (*rest.Config, time.Time, error) + ListClusters func(ctx context.Context, projectID string, location string) ([]GKECluster, error) + func NewGKEClient(ctx context.Context) (GKEClient, error) + func NewGKEClientWithConfig(ctx context.Context, cfg GKEClientConfig) (GKEClient, error) + type GKEClientConfig struct + ClusterClient gcpGKEClient + TokenSource oauth2.TokenSource + func (c *GKEClientConfig) CheckAndSetDefaults(ctx context.Context) (err error) + type GKECluster struct + Description string + Labels map[string]string + Location string + Name string + ProjectID string + Status containerpb.Cluster_Status + type SQLAdminClient interface + GenerateEphemeralCert func(ctx context.Context, db types.Database, identity tlsca.Identity) (*tls.Certificate, error) + GetDatabaseInstance func(ctx context.Context, db types.Database) (*sqladmin.DatabaseInstance, error) + UpdateUser func(ctx context.Context, db types.Database, dbUser string, user *sqladmin.User) error + func NewSQLAdminClient(ctx context.Context) (SQLAdminClient, error)