Documentation ¶
Index ¶
- func GetMariaClusterConnectionsData(d *schema.ResourceData) *[]mariadb.Connection
- func GetMariaClusterCredentialsData(d *schema.ResourceData) *mariadb.DBUser
- func GetMariaClusterMaintenanceWindowData(d *schema.ResourceData) *mariadb.MaintenanceWindow
- func GetMariaDBClusterDataCreate(d *schema.ResourceData) (*mariadb.CreateClusterRequest, error)
- func SetMariaDBClusterBackupsData(d *schema.ResourceData, retrievedBackups []mariadb.BackupResponse) diag.Diagnostics
- type MariaDBClient
- func (c *MariaDBClient) CreateCluster(ctx context.Context, cluster mariadb.CreateClusterRequest, location string) (mariadb.ClusterResponse, *mariadb.APIResponse, error)
- func (c *MariaDBClient) DeleteCluster(ctx context.Context, clusterID, location string) (mariadb.ClusterResponse, *mariadb.APIResponse, error)
- func (c *MariaDBClient) FindBackupByID(ctx context.Context, backupID, location string) (mariadb.BackupResponse, *mariadb.APIResponse, error)
- func (c *MariaDBClient) GetCluster(ctx context.Context, clusterID, location string) (mariadb.ClusterResponse, *mariadb.APIResponse, error)
- func (c *MariaDBClient) GetClusterBackups(ctx context.Context, clusterID, location string) (mariadb.BackupList, *mariadb.APIResponse, error)
- func (c *MariaDBClient) IsClusterDeleted(ctx context.Context, d *schema.ResourceData) (bool, error)
- func (c *MariaDBClient) IsClusterReady(ctx context.Context, d *schema.ResourceData) (bool, error)
- func (c *MariaDBClient) ListClusters(ctx context.Context, filterName, location string) (mariadb.ClusterList, *mariadb.APIResponse, error)
- func (c *MariaDBClient) SetConnectionProperties(connection mariadb.Connection) map[string]interface{}
- func (c *MariaDBClient) SetMaintenanceWindowProperties(maintenanceWindow mariadb.MaintenanceWindow) map[string]interface{}
- func (c *MariaDBClient) SetMariaDBClusterData(d *schema.ResourceData, cluster mariadb.ClusterResponse) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetMariaClusterConnectionsData ¶
func GetMariaClusterConnectionsData(d *schema.ResourceData) *[]mariadb.Connection
func GetMariaClusterCredentialsData ¶
func GetMariaClusterCredentialsData(d *schema.ResourceData) *mariadb.DBUser
func GetMariaClusterMaintenanceWindowData ¶
func GetMariaClusterMaintenanceWindowData(d *schema.ResourceData) *mariadb.MaintenanceWindow
func GetMariaDBClusterDataCreate ¶
func GetMariaDBClusterDataCreate(d *schema.ResourceData) (*mariadb.CreateClusterRequest, error)
func SetMariaDBClusterBackupsData ¶
func SetMariaDBClusterBackupsData(d *schema.ResourceData, retrievedBackups []mariadb.BackupResponse) diag.Diagnostics
SetMariaDBClusterBackupsData sets the data for the backups attribute in the MariaDB backup data source.
Types ¶
type MariaDBClient ¶
type MariaDBClient struct {
// contains filtered or unexported fields
}
func NewMariaDBClient ¶
func NewMariaDBClient(username, password, token, url, version, terraformVersion string) *MariaDBClient
func (*MariaDBClient) CreateCluster ¶
func (c *MariaDBClient) CreateCluster(ctx context.Context, cluster mariadb.CreateClusterRequest, location string) (mariadb.ClusterResponse, *mariadb.APIResponse, error)
CreateCluster creates a new cluster using the provided data in the request and the location.
func (*MariaDBClient) DeleteCluster ¶
func (c *MariaDBClient) DeleteCluster(ctx context.Context, clusterID, location string) (mariadb.ClusterResponse, *mariadb.APIResponse, error)
DeleteCluster deletes a cluster by its ID and the location in which the cluster is created.
func (*MariaDBClient) FindBackupByID ¶ added in v6.4.17
func (c *MariaDBClient) FindBackupByID(ctx context.Context, backupID, location string) (mariadb.BackupResponse, *mariadb.APIResponse, error)
FindBackupByID retrieves a backup by its ID and the location in which the cluster is created.
func (*MariaDBClient) GetCluster ¶
func (c *MariaDBClient) GetCluster(ctx context.Context, clusterID, location string) (mariadb.ClusterResponse, *mariadb.APIResponse, error)
GetCluster retrieves a cluster by its ID and the location in which the cluster is created.
func (*MariaDBClient) GetClusterBackups ¶
func (c *MariaDBClient) GetClusterBackups(ctx context.Context, clusterID, location string) (mariadb.BackupList, *mariadb.APIResponse, error)
GetClusterBackups retrieves a list of backups for a given cluster ID and the location in which the cluster is created.
func (*MariaDBClient) IsClusterDeleted ¶
func (c *MariaDBClient) IsClusterDeleted(ctx context.Context, d *schema.ResourceData) (bool, error)
func (*MariaDBClient) IsClusterReady ¶
func (c *MariaDBClient) IsClusterReady(ctx context.Context, d *schema.ResourceData) (bool, error)
func (*MariaDBClient) ListClusters ¶
func (c *MariaDBClient) ListClusters(ctx context.Context, filterName, location string) (mariadb.ClusterList, *mariadb.APIResponse, error)
ListClusters retrieves a list of clusters based on the location. Filters can be used.
func (*MariaDBClient) SetConnectionProperties ¶
func (c *MariaDBClient) SetConnectionProperties(connection mariadb.Connection) map[string]interface{}
func (*MariaDBClient) SetMaintenanceWindowProperties ¶
func (c *MariaDBClient) SetMaintenanceWindowProperties(maintenanceWindow mariadb.MaintenanceWindow) map[string]interface{}
func (*MariaDBClient) SetMariaDBClusterData ¶
func (c *MariaDBClient) SetMariaDBClusterData(d *schema.ResourceData, cluster mariadb.ClusterResponse) error