Documentation ¶
Index ¶
- func GetMongoBiConnectorData(d *schema.ResourceData) *mongo.BiConnectorProperties
- func GetMongoClusterBackupData(d *schema.ResourceData) *mongo.BackupProperties
- func GetMongoClusterConnectionsData(d *schema.ResourceData) (*[]mongo.Connection, error)
- func GetMongoClusterFromBackupData(d *schema.ResourceData) (*mongo.CreateRestoreRequest, error)
- func GetMongoClusterMaintenanceWindowData(d *schema.ResourceData) *mongo.MaintenanceWindow
- func GetPgSqlClusterDataCreate(d *schema.ResourceData) (*psql.CreateClusterRequest, error)
- func GetPgSqlClusterDataUpdate(d *schema.ResourceData) (*psql.PatchClusterRequest, diag.Diagnostics)
- func GetPsqlClusterConnectionsData(d *schema.ResourceData) *[]psql.Connection
- func GetPsqlClusterCredentialsData(d *schema.ResourceData) *psql.DBUser
- func GetPsqlClusterFromBackupData(d *schema.ResourceData) (*psql.CreateRestoreRequest, error)
- func GetPsqlClusterMaintenanceWindowData(d *schema.ResourceData) *psql.MaintenanceWindow
- func MongoClusterCheckRequiredFieldsSet(d *schema.ResourceData) error
- func SetConnectionProperties(vdcConnection psql.Connection) map[string]interface{}
- func SetDatabasePgSqlData(d *schema.ResourceData, database *pgsql.DatabaseResource) error
- func SetMaintenanceWindowProperties(maintenanceWindow psql.MaintenanceWindow) map[string]interface{}
- func SetMongoBiConnectorProperties(biConnectorProperties mongo.BiConnectorProperties) map[string]interface{}
- func SetMongoClusterCreateProperties(d *schema.ResourceData) (*mongo.CreateClusterRequest, error)
- func SetMongoClusterPatchProperties(d *schema.ResourceData) *mongo.PatchClusterRequest
- func SetMongoConnectionProperties(vdcConnection mongo.Connection) map[string]interface{}
- func SetMongoDBClusterData(d *schema.ResourceData, cluster mongo.ClusterResponse) error
- func SetMongoDBTemplateData(d *schema.ResourceData, template mongo.TemplateResponse) error
- func SetMongoMaintenanceWindowProperties(maintenanceWindow mongo.MaintenanceWindow) map[string]interface{}
- func SetPgSqlClusterBackupData(d *schema.ResourceData, clusterBackups *dbaas.ClusterBackupList) diag.Diagnostics
- func SetPgSqlClusterData(d *schema.ResourceData, cluster psql.ClusterResponse) error
- func SetPgSqlVersionsData(d *schema.ResourceData, postgresVersions dbaas.PostgresVersionList) diag.Diagnostics
- func SetUserMongoData(d *schema.ResourceData, user *mongo.User) error
- func SetUserPgSqlData(d *schema.ResourceData, user *pgsql.UserResource) error
- type MongoClient
- func (c *MongoClient) CreateCluster(ctx context.Context, cluster mongo.CreateClusterRequest) (mongo.ClusterResponse, *mongo.APIResponse, error)
- func (c *MongoClient) CreateUser(ctx context.Context, clusterID string, user mongo.User) (mongo.User, utils.ApiResponseInfo, error)
- func (c *MongoClient) DeleteCluster(ctx context.Context, clusterId string) (mongo.ClusterResponse, *mongo.APIResponse, error)
- func (c *MongoClient) DeleteUser(ctx context.Context, clusterID, username string) (utils.ApiResponseInfo, error)
- func (c *MongoClient) FindUserByUsername(ctx context.Context, clusterID, username string) (mongo.User, utils.ApiResponseInfo, error)
- func (c *MongoClient) GetCluster(ctx context.Context, clusterId string) (mongo.ClusterResponse, *mongo.APIResponse, error)
- func (c *MongoClient) GetTemplates(ctx context.Context) (mongo.TemplateList, *mongo.APIResponse, error)
- func (c *MongoClient) GetUsers(ctx context.Context, clusterID string) (mongo.UsersList, utils.ApiResponseInfo, error)
- func (c *MongoClient) IsClusterDeleted(ctx context.Context, d *schema.ResourceData) (bool, error)
- func (c *MongoClient) IsClusterReady(ctx context.Context, d *schema.ResourceData) (bool, error)
- func (c *MongoClient) IsUserDeleted(ctx context.Context, d *schema.ResourceData) (bool, error)
- func (c *MongoClient) IsUserReady(ctx context.Context, d *schema.ResourceData) (bool, error)
- func (c *MongoClient) ListClusters(ctx context.Context, filterName string) (mongo.ClusterList, *mongo.APIResponse, error)
- func (c *MongoClient) UpdateCluster(ctx context.Context, clusterId string, cluster mongo.PatchClusterRequest) (mongo.ClusterResponse, *mongo.APIResponse, error)
- func (c *MongoClient) UpdateUser(ctx context.Context, clusterID, username string, ...) (mongo.User, utils.ApiResponseInfo, error)
- type PsqlClient
- func (c *PsqlClient) CreateCluster(ctx context.Context, cluster psql.CreateClusterRequest) (psql.ClusterResponse, *psql.APIResponse, error)
- func (c *PsqlClient) CreateDatabase(ctx context.Context, clusterId string, database pgsql.Database) (pgsql.DatabaseResource, utils.ApiResponseInfo, error)
- func (c *PsqlClient) CreateUser(ctx context.Context, clusterID string, user pgsql.User) (pgsql.UserResource, utils.ApiResponseInfo, error)
- func (c *PsqlClient) DeleteCluster(ctx context.Context, clusterId string) (psql.ClusterResponse, *psql.APIResponse, error)
- func (c *PsqlClient) DeleteDatabase(ctx context.Context, clusterId, name string) (utils.ApiResponseInfo, error)
- func (c *PsqlClient) DeleteUser(ctx context.Context, clusterID, username string) (utils.ApiResponseInfo, error)
- func (c *PsqlClient) FindDatabaseByName(ctx context.Context, clusterId, name string) (pgsql.DatabaseResource, utils.ApiResponseInfo, error)
- func (c *PsqlClient) FindUserByUsername(ctx context.Context, clusterID, username string) (pgsql.UserResource, utils.ApiResponseInfo, error)
- func (c *PsqlClient) GetAllBackups(ctx context.Context) (dbaas.ClusterBackupList, *dbaas.APIResponse, error)
- func (c *PsqlClient) GetAllVersions(ctx context.Context) (dbaas.PostgresVersionList, *dbaas.APIResponse, error)
- func (c *PsqlClient) GetCluster(ctx context.Context, clusterId string) (psql.ClusterResponse, *psql.APIResponse, error)
- func (c *PsqlClient) GetClusterBackups(ctx context.Context, clusterId string) (dbaas.ClusterBackupList, *dbaas.APIResponse, error)
- func (c *PsqlClient) GetClusterVersions(ctx context.Context, clusterId string) (dbaas.PostgresVersionList, *dbaas.APIResponse, error)
- func (c *PsqlClient) GetDatabases(ctx context.Context, clusterId string) (pgsql.DatabaseList, utils.ApiResponseInfo, error)
- func (c *PsqlClient) IsClusterDeleted(ctx context.Context, d *schema.ResourceData) (bool, error)
- func (c *PsqlClient) IsClusterReady(ctx context.Context, d *schema.ResourceData) (bool, error)
- func (c *PsqlClient) IsUserDeleted(ctx context.Context, d *schema.ResourceData) (bool, error)
- func (c *PsqlClient) ListClusters(ctx context.Context, filterName string) (psql.ClusterList, *psql.APIResponse, error)
- func (c *PsqlClient) UpdateCluster(ctx context.Context, clusterId string, cluster psql.PatchClusterRequest) (psql.ClusterResponse, *psql.APIResponse, error)
- func (c *PsqlClient) UpdateUser(ctx context.Context, clusterID, username string, ...) (pgsql.UserResource, utils.ApiResponseInfo, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetMongoBiConnectorData ¶ added in v6.4.7
func GetMongoBiConnectorData(d *schema.ResourceData) *mongo.BiConnectorProperties
func GetMongoClusterBackupData ¶ added in v6.4.7
func GetMongoClusterBackupData(d *schema.ResourceData) *mongo.BackupProperties
func GetMongoClusterConnectionsData ¶ added in v6.4.7
func GetMongoClusterConnectionsData(d *schema.ResourceData) (*[]mongo.Connection, error)
func GetMongoClusterFromBackupData ¶ added in v6.4.7
func GetMongoClusterFromBackupData(d *schema.ResourceData) (*mongo.CreateRestoreRequest, error)
func GetMongoClusterMaintenanceWindowData ¶ added in v6.4.7
func GetMongoClusterMaintenanceWindowData(d *schema.ResourceData) *mongo.MaintenanceWindow
func GetPgSqlClusterDataCreate ¶ added in v6.4.7
func GetPgSqlClusterDataCreate(d *schema.ResourceData) (*psql.CreateClusterRequest, error)
func GetPgSqlClusterDataUpdate ¶ added in v6.4.7
func GetPgSqlClusterDataUpdate(d *schema.ResourceData) (*psql.PatchClusterRequest, diag.Diagnostics)
func GetPsqlClusterConnectionsData ¶ added in v6.4.7
func GetPsqlClusterConnectionsData(d *schema.ResourceData) *[]psql.Connection
func GetPsqlClusterCredentialsData ¶ added in v6.4.7
func GetPsqlClusterCredentialsData(d *schema.ResourceData) *psql.DBUser
func GetPsqlClusterFromBackupData ¶ added in v6.4.7
func GetPsqlClusterFromBackupData(d *schema.ResourceData) (*psql.CreateRestoreRequest, error)
func GetPsqlClusterMaintenanceWindowData ¶ added in v6.4.7
func GetPsqlClusterMaintenanceWindowData(d *schema.ResourceData) *psql.MaintenanceWindow
func MongoClusterCheckRequiredFieldsSet ¶ added in v6.4.7
func MongoClusterCheckRequiredFieldsSet(d *schema.ResourceData) error
MongoClusterCheckRequiredFieldsSet Checks if required fields are set in the cluster resource
func SetConnectionProperties ¶
func SetConnectionProperties(vdcConnection psql.Connection) map[string]interface{}
func SetDatabasePgSqlData ¶ added in v6.4.4
func SetDatabasePgSqlData(d *schema.ResourceData, database *pgsql.DatabaseResource) error
func SetMaintenanceWindowProperties ¶
func SetMaintenanceWindowProperties(maintenanceWindow psql.MaintenanceWindow) map[string]interface{}
func SetMongoBiConnectorProperties ¶ added in v6.4.7
func SetMongoBiConnectorProperties(biConnectorProperties mongo.BiConnectorProperties) map[string]interface{}
func SetMongoClusterCreateProperties ¶ added in v6.3.4
func SetMongoClusterCreateProperties(d *schema.ResourceData) (*mongo.CreateClusterRequest, error)
func SetMongoClusterPatchProperties ¶ added in v6.3.4
func SetMongoClusterPatchProperties(d *schema.ResourceData) *mongo.PatchClusterRequest
func SetMongoConnectionProperties ¶ added in v6.3.2
func SetMongoConnectionProperties(vdcConnection mongo.Connection) map[string]interface{}
func SetMongoDBClusterData ¶ added in v6.4.7
func SetMongoDBClusterData(d *schema.ResourceData, cluster mongo.ClusterResponse) error
func SetMongoDBTemplateData ¶ added in v6.3.4
func SetMongoDBTemplateData(d *schema.ResourceData, template mongo.TemplateResponse) error
func SetMongoMaintenanceWindowProperties ¶ added in v6.3.2
func SetMongoMaintenanceWindowProperties(maintenanceWindow mongo.MaintenanceWindow) map[string]interface{}
func SetPgSqlClusterBackupData ¶
func SetPgSqlClusterBackupData(d *schema.ResourceData, clusterBackups *dbaas.ClusterBackupList) diag.Diagnostics
func SetPgSqlClusterData ¶ added in v6.4.7
func SetPgSqlClusterData(d *schema.ResourceData, cluster psql.ClusterResponse) error
func SetPgSqlVersionsData ¶
func SetPgSqlVersionsData(d *schema.ResourceData, postgresVersions dbaas.PostgresVersionList) diag.Diagnostics
func SetUserMongoData ¶ added in v6.3.4
func SetUserMongoData(d *schema.ResourceData, user *mongo.User) error
func SetUserPgSqlData ¶ added in v6.4.4
func SetUserPgSqlData(d *schema.ResourceData, user *pgsql.UserResource) error
Types ¶
type MongoClient ¶ added in v6.3.2
type MongoClient struct {
// contains filtered or unexported fields
}
func NewMongoClient ¶ added in v6.3.4
func NewMongoClient(username, password, token, url, version, terraformVersion string, insecure bool) *MongoClient
func (*MongoClient) CreateCluster ¶ added in v6.3.2
func (c *MongoClient) CreateCluster(ctx context.Context, cluster mongo.CreateClusterRequest) (mongo.ClusterResponse, *mongo.APIResponse, error)
func (*MongoClient) CreateUser ¶ added in v6.3.4
func (*MongoClient) DeleteCluster ¶ added in v6.3.2
func (c *MongoClient) DeleteCluster(ctx context.Context, clusterId string) (mongo.ClusterResponse, *mongo.APIResponse, error)
func (*MongoClient) DeleteUser ¶ added in v6.3.4
func (c *MongoClient) DeleteUser(ctx context.Context, clusterID, username string) (utils.ApiResponseInfo, error)
func (*MongoClient) FindUserByUsername ¶ added in v6.3.4
func (c *MongoClient) FindUserByUsername(ctx context.Context, clusterID, username string) (mongo.User, utils.ApiResponseInfo, error)
func (*MongoClient) GetCluster ¶ added in v6.3.2
func (c *MongoClient) GetCluster(ctx context.Context, clusterId string) (mongo.ClusterResponse, *mongo.APIResponse, error)
func (*MongoClient) GetTemplates ¶ added in v6.3.4
func (c *MongoClient) GetTemplates(ctx context.Context) (mongo.TemplateList, *mongo.APIResponse, error)
func (*MongoClient) GetUsers ¶ added in v6.3.4
func (c *MongoClient) GetUsers(ctx context.Context, clusterID string) (mongo.UsersList, utils.ApiResponseInfo, error)
func (*MongoClient) IsClusterDeleted ¶ added in v6.3.4
func (c *MongoClient) IsClusterDeleted(ctx context.Context, d *schema.ResourceData) (bool, error)
func (*MongoClient) IsClusterReady ¶ added in v6.3.4
func (c *MongoClient) IsClusterReady(ctx context.Context, d *schema.ResourceData) (bool, error)
func (*MongoClient) IsUserDeleted ¶ added in v6.3.4
func (c *MongoClient) IsUserDeleted(ctx context.Context, d *schema.ResourceData) (bool, error)
func (*MongoClient) IsUserReady ¶ added in v6.3.4
func (c *MongoClient) IsUserReady(ctx context.Context, d *schema.ResourceData) (bool, error)
IsUserReady - checks the cluster, as it will move to busy while the user is created or updated There is no metadata state on the user
func (*MongoClient) ListClusters ¶ added in v6.3.2
func (c *MongoClient) ListClusters(ctx context.Context, filterName string) (mongo.ClusterList, *mongo.APIResponse, error)
func (*MongoClient) UpdateCluster ¶ added in v6.3.4
func (c *MongoClient) UpdateCluster(ctx context.Context, clusterId string, cluster mongo.PatchClusterRequest) (mongo.ClusterResponse, *mongo.APIResponse, error)
func (*MongoClient) UpdateUser ¶ added in v6.3.4
func (c *MongoClient) UpdateUser(ctx context.Context, clusterID, username string, patchUserReq mongo.PatchUserRequest) (mongo.User, utils.ApiResponseInfo, error)
type PsqlClient ¶ added in v6.3.2
type PsqlClient struct {
// contains filtered or unexported fields
}
func NewPsqlClient ¶ added in v6.3.4
func NewPsqlClient(username, password, token, url, version, terraformVersion string, insecure bool) *PsqlClient
func (*PsqlClient) CreateCluster ¶ added in v6.3.2
func (c *PsqlClient) CreateCluster(ctx context.Context, cluster psql.CreateClusterRequest) (psql.ClusterResponse, *psql.APIResponse, error)
func (*PsqlClient) CreateDatabase ¶ added in v6.4.4
func (c *PsqlClient) CreateDatabase(ctx context.Context, clusterId string, database pgsql.Database) (pgsql.DatabaseResource, utils.ApiResponseInfo, error)
func (*PsqlClient) CreateUser ¶ added in v6.4.4
func (c *PsqlClient) CreateUser(ctx context.Context, clusterID string, user pgsql.User) (pgsql.UserResource, utils.ApiResponseInfo, error)
func (*PsqlClient) DeleteCluster ¶ added in v6.3.2
func (c *PsqlClient) DeleteCluster(ctx context.Context, clusterId string) (psql.ClusterResponse, *psql.APIResponse, error)
func (*PsqlClient) DeleteDatabase ¶ added in v6.4.4
func (c *PsqlClient) DeleteDatabase(ctx context.Context, clusterId, name string) (utils.ApiResponseInfo, error)
func (*PsqlClient) DeleteUser ¶ added in v6.4.4
func (c *PsqlClient) DeleteUser(ctx context.Context, clusterID, username string) (utils.ApiResponseInfo, error)
func (*PsqlClient) FindDatabaseByName ¶ added in v6.4.4
func (c *PsqlClient) FindDatabaseByName(ctx context.Context, clusterId, name string) (pgsql.DatabaseResource, utils.ApiResponseInfo, error)
func (*PsqlClient) FindUserByUsername ¶ added in v6.4.4
func (c *PsqlClient) FindUserByUsername(ctx context.Context, clusterID, username string) (pgsql.UserResource, utils.ApiResponseInfo, error)
func (*PsqlClient) GetAllBackups ¶ added in v6.3.2
func (c *PsqlClient) GetAllBackups(ctx context.Context) (dbaas.ClusterBackupList, *dbaas.APIResponse, error)
func (*PsqlClient) GetAllVersions ¶ added in v6.3.2
func (c *PsqlClient) GetAllVersions(ctx context.Context) (dbaas.PostgresVersionList, *dbaas.APIResponse, error)
func (*PsqlClient) GetCluster ¶ added in v6.3.2
func (c *PsqlClient) GetCluster(ctx context.Context, clusterId string) (psql.ClusterResponse, *psql.APIResponse, error)
func (*PsqlClient) GetClusterBackups ¶ added in v6.3.2
func (c *PsqlClient) GetClusterBackups(ctx context.Context, clusterId string) (dbaas.ClusterBackupList, *dbaas.APIResponse, error)
func (*PsqlClient) GetClusterVersions ¶ added in v6.3.2
func (c *PsqlClient) GetClusterVersions(ctx context.Context, clusterId string) (dbaas.PostgresVersionList, *dbaas.APIResponse, error)
func (*PsqlClient) GetDatabases ¶ added in v6.4.4
func (c *PsqlClient) GetDatabases(ctx context.Context, clusterId string) (pgsql.DatabaseList, utils.ApiResponseInfo, error)
func (*PsqlClient) IsClusterDeleted ¶ added in v6.3.6
func (c *PsqlClient) IsClusterDeleted(ctx context.Context, d *schema.ResourceData) (bool, error)
func (*PsqlClient) IsClusterReady ¶ added in v6.3.6
func (c *PsqlClient) IsClusterReady(ctx context.Context, d *schema.ResourceData) (bool, error)
func (*PsqlClient) IsUserDeleted ¶ added in v6.4.4
func (c *PsqlClient) IsUserDeleted(ctx context.Context, d *schema.ResourceData) (bool, error)
func (*PsqlClient) ListClusters ¶ added in v6.3.2
func (c *PsqlClient) ListClusters(ctx context.Context, filterName string) (psql.ClusterList, *psql.APIResponse, error)
func (*PsqlClient) UpdateCluster ¶ added in v6.3.2
func (c *PsqlClient) UpdateCluster(ctx context.Context, clusterId string, cluster psql.PatchClusterRequest) (psql.ClusterResponse, *psql.APIResponse, error)
func (*PsqlClient) UpdateUser ¶ added in v6.4.4
func (c *PsqlClient) UpdateUser(ctx context.Context, clusterID, username string, patchUserReq pgsql.UsersPatchRequest) (pgsql.UserResource, utils.ApiResponseInfo, error)
Source Files ¶
Click to show internal directories.
Click to hide internal directories.