Documentation ¶
Index ¶
- Constants
- Variables
- func DataSource() *schema.Resource
- func FormatMongoDBMajorVersion(val any) string
- func HashCodeString(s string) int
- func HashFunctionForKeyValuePair(v any) int
- func IsSharedTier(instanceSize string) bool
- func MigrateBIConnectorConfig(rawState map[string]any) map[string]any
- func PluralDataSource() *schema.Resource
- func Resource() *schema.Resource
- func ResourceClusterListAdvancedRefreshFunc(ctx context.Context, projectID string, client ClusterService) retry.StateRefreshFunc
- func ResourceV0() *schema.Resource
- func SchemaAdvancedConfig() *schema.Schema
- func SchemaAdvancedConfigDS() *schema.Schema
- func SchemaConnectionStrings() *schema.Schema
- func UpgradeRefreshFunc(ctx context.Context, name, projectID string, client ClusterService) retry.StateRefreshFunc
- type ClusterService
- type ClusterServiceFromClient
- func (a *ClusterServiceFromClient) Get(ctx context.Context, groupID, clusterName string) (*admin.AdvancedClusterDescription, *http.Response, error)
- func (a *ClusterServiceFromClient) List(ctx context.Context, options *admin.ListClustersApiParams) (*admin.PaginatedAdvancedClusterDescription, *http.Response, error)
Constants ¶
View Source
const ( ErrorClusterSetting = "error setting `%s` for MongoDB Cluster (%s): %s" ErrorAdvancedConfRead = "error reading Advanced Configuration Option form MongoDB Cluster (%s): %s" ErrorClusterAdvancedSetting = "error setting `%s` for MongoDB ClusterAdvanced (%s): %s" ErrorAdvancedClusterListStatus = "error awaiting MongoDB ClusterAdvanced List IDLE: %s" )
Variables ¶
View Source
var ( DSTagsSchema = schema.Schema{ Type: schema.TypeSet, Computed: true, Elem: &schema.Resource{ Schema: map[string]*schema.Schema{ "key": { Type: schema.TypeString, Computed: true, }, "value": { Type: schema.TypeString, Computed: true, }, }, }, } RSTagsSchema = schema.Schema{ Type: schema.TypeSet, Optional: true, Elem: &schema.Resource{ Schema: map[string]*schema.Schema{ "key": { Type: schema.TypeString, Required: true, }, "value": { Type: schema.TypeString, Required: true, }, }, }, } )
Functions ¶
func DataSource ¶
func HashCodeString ¶
HashCodeString hashes a string to a unique hashcode.
crc32 returns a uint32, but for our use we need and non negative integer. Here we cast to an integer and invert it if the result is negative.
func IsSharedTier ¶
func PluralDataSource ¶
func ResourceClusterListAdvancedRefreshFunc ¶
func ResourceClusterListAdvancedRefreshFunc(ctx context.Context, projectID string, client ClusterService) retry.StateRefreshFunc
func ResourceV0 ¶
func SchemaAdvancedConfig ¶ added in v1.15.2
func SchemaAdvancedConfigDS ¶ added in v1.15.2
func SchemaConnectionStrings ¶ added in v1.15.2
func UpgradeRefreshFunc ¶ added in v1.15.2
func UpgradeRefreshFunc(ctx context.Context, name, projectID string, client ClusterService) retry.StateRefreshFunc
Types ¶
type ClusterService ¶ added in v1.15.0
type ClusterService interface { Get(ctx context.Context, groupID, clusterName string) (*admin.AdvancedClusterDescription, *http.Response, error) List(ctx context.Context, options *admin.ListClustersApiParams) (*admin.PaginatedAdvancedClusterDescription, *http.Response, error) }
func ServiceFromClient ¶ added in v1.15.0
func ServiceFromClient(client *admin.APIClient) ClusterService
type ClusterServiceFromClient ¶ added in v1.15.0
type ClusterServiceFromClient struct {
// contains filtered or unexported fields
}
func (*ClusterServiceFromClient) Get ¶ added in v1.15.0
func (a *ClusterServiceFromClient) Get(ctx context.Context, groupID, clusterName string) (*admin.AdvancedClusterDescription, *http.Response, error)
func (*ClusterServiceFromClient) List ¶ added in v1.15.0
func (a *ClusterServiceFromClient) List(ctx context.Context, options *admin.ListClustersApiParams) (*admin.PaginatedAdvancedClusterDescription, *http.Response, error)
Click to show internal directories.
Click to hide internal directories.