dbaas

package
v6.6.7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 9, 2024 License: MPL-2.0 Imports: 17 Imported by: 0

Documentation

Index

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 (*MongoClient) CreateUser added in v6.3.4

func (c *MongoClient) CreateUser(ctx context.Context, clusterID string, user mongo.User) (mongo.User, utils.ApiResponseInfo, error)

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 (*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 (*PsqlClient) GetAllVersions added in v6.3.2

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)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL