Documentation ¶
Index ¶
- func DataSourceACL() *schema.Resource
- func DataSourceDatabase() *schema.Resource
- func DataSourceDatabaseBackup() *schema.Resource
- func DataSourceDatabaseRead(ctx context.Context, d *schema.ResourceData, m interface{}) diag.Diagnostics
- func DataSourceInstance() *schema.Resource
- func DataSourcePrivilege() *schema.Resource
- func DataSourceRDBACLRead(ctx context.Context, d *schema.ResourceData, m interface{}) diag.Diagnostics
- func DataSourceRDBDatabaseBackupRead(ctx context.Context, d *schema.ResourceData, m interface{}) diag.Diagnostics
- func DataSourceRDBInstanceRead(ctx context.Context, d *schema.ResourceData, m interface{}) diag.Diagnostics
- func DataSourceRDBPrivilegeRead(ctx context.Context, d *schema.ResourceData, m interface{}) diag.Diagnostics
- func NewAPIWithRegionAndID(m interface{}, id string) (*rdb.API, scw.Region, string, error)
- func PrivilegeV1SchemaUpgradeFunc(_ context.Context, rawState map[string]interface{}, m interface{}) (map[string]interface{}, error)
- func ResourceACL() *schema.Resource
- func ResourceACLCreate(ctx context.Context, d *schema.ResourceData, m interface{}) diag.Diagnostics
- func ResourceACLDelete(ctx context.Context, d *schema.ResourceData, m interface{}) diag.Diagnostics
- func ResourceACLUpdate(ctx context.Context, d *schema.ResourceData, m interface{}) diag.Diagnostics
- func ResourceDatabase() *schema.Resource
- func ResourceDatabaseBackup() *schema.Resource
- func ResourceInstance() *schema.Resource
- func ResourcePrivilege() *schema.Resource
- func ResourceRdbACLRead(ctx context.Context, d *schema.ResourceData, m interface{}) diag.Diagnostics
- func ResourceRdbDatabaseBackupCreate(ctx context.Context, d *schema.ResourceData, m interface{}) diag.Diagnostics
- func ResourceRdbDatabaseBackupDelete(ctx context.Context, d *schema.ResourceData, m interface{}) diag.Diagnostics
- func ResourceRdbDatabaseBackupRead(ctx context.Context, d *schema.ResourceData, m interface{}) diag.Diagnostics
- func ResourceRdbDatabaseBackupUpdate(ctx context.Context, d *schema.ResourceData, m interface{}) diag.Diagnostics
- func ResourceRdbDatabaseCreate(ctx context.Context, d *schema.ResourceData, m interface{}) diag.Diagnostics
- func ResourceRdbDatabaseDelete(ctx context.Context, d *schema.ResourceData, m interface{}) diag.Diagnostics
- func ResourceRdbDatabaseID(region scw.Region, instanceID string, databaseName string) (resourceID string)
- func ResourceRdbDatabaseParseID(resourceID string) (region scw.Region, instanceID string, database string, err error)
- func ResourceRdbDatabaseRead(ctx context.Context, d *schema.ResourceData, m interface{}) diag.Diagnostics
- func ResourceRdbInstanceCreate(ctx context.Context, d *schema.ResourceData, m interface{}) diag.Diagnostics
- func ResourceRdbInstanceDelete(ctx context.Context, d *schema.ResourceData, m interface{}) diag.Diagnostics
- func ResourceRdbInstanceRead(ctx context.Context, d *schema.ResourceData, m interface{}) diag.Diagnostics
- func ResourceRdbInstanceUpdate(ctx context.Context, d *schema.ResourceData, m interface{}) diag.Diagnostics
- func ResourceRdbPrivilegeCreate(ctx context.Context, d *schema.ResourceData, m interface{}) diag.Diagnostics
- func ResourceRdbPrivilegeDelete(ctx context.Context, d *schema.ResourceData, m interface{}) diag.Diagnostics
- func ResourceRdbPrivilegeRead(ctx context.Context, d *schema.ResourceData, m interface{}) diag.Diagnostics
- func ResourceRdbPrivilegeUpdate(ctx context.Context, d *schema.ResourceData, m interface{}) diag.Diagnostics
- func ResourceRdbReadReplicaCreate(ctx context.Context, d *schema.ResourceData, m interface{}) diag.Diagnostics
- func ResourceRdbReadReplicaDelete(ctx context.Context, d *schema.ResourceData, m interface{}) diag.Diagnostics
- func ResourceRdbReadReplicaRead(ctx context.Context, d *schema.ResourceData, m interface{}) diag.Diagnostics
- func ResourceRdbReadReplicaUpdate(ctx context.Context, d *schema.ResourceData, m interface{}) diag.Diagnostics
- func ResourceRdbUserPrivilegeID(region scw.Region, instanceID, database, userName string) (resourceID string)
- func ResourceRdbUserPrivilegeParseID(resourceID string) (region scw.Region, instanceID, databaseName, userName string, err error)
- func ResourceReadReplica() *schema.Resource
- func ResourceUser() *schema.Resource
- func ResourceUserCreate(ctx context.Context, d *schema.ResourceData, m interface{}) diag.Diagnostics
- func ResourceUserDelete(ctx context.Context, d *schema.ResourceData, m interface{}) diag.Diagnostics
- func ResourceUserID(region scw.Region, instanceID string, userName string) (resourceID string)
- func ResourceUserParseID(resourceID string) (region scw.Region, instanceID string, userName string, err error)
- func ResourceUserRead(ctx context.Context, d *schema.ResourceData, m interface{}) diag.Diagnostics
- func ResourceUserUpdate(ctx context.Context, d *schema.ResourceData, m interface{}) diag.Diagnostics
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DataSourceACL ¶
func DataSourceDatabase ¶
func DataSourceDatabaseRead ¶
func DataSourceDatabaseRead(ctx context.Context, d *schema.ResourceData, m interface{}) diag.Diagnostics
func DataSourceInstance ¶
func DataSourcePrivilege ¶
func DataSourceRDBACLRead ¶
func DataSourceRDBACLRead(ctx context.Context, d *schema.ResourceData, m interface{}) diag.Diagnostics
func DataSourceRDBDatabaseBackupRead ¶
func DataSourceRDBDatabaseBackupRead(ctx context.Context, d *schema.ResourceData, m interface{}) diag.Diagnostics
func DataSourceRDBInstanceRead ¶
func DataSourceRDBInstanceRead(ctx context.Context, d *schema.ResourceData, m interface{}) diag.Diagnostics
func DataSourceRDBPrivilegeRead ¶
func DataSourceRDBPrivilegeRead(ctx context.Context, d *schema.ResourceData, m interface{}) diag.Diagnostics
DataSourceRDBPrivilegeRead
func NewAPIWithRegionAndID ¶
NewAPIWithRegionAndID returns an lb API with region and ID extracted from the state
func PrivilegeV1SchemaUpgradeFunc ¶
func PrivilegeV1SchemaUpgradeFunc(_ context.Context, rawState map[string]interface{}, m interface{}) (map[string]interface{}, error)
PrivilegeV1SchemaUpgradeFunc allow upgrade the privilege ID on schema V1
func ResourceACL ¶
func ResourceACLCreate ¶
func ResourceACLCreate(ctx context.Context, d *schema.ResourceData, m interface{}) diag.Diagnostics
func ResourceACLDelete ¶
func ResourceACLDelete(ctx context.Context, d *schema.ResourceData, m interface{}) diag.Diagnostics
func ResourceACLUpdate ¶
func ResourceACLUpdate(ctx context.Context, d *schema.ResourceData, m interface{}) diag.Diagnostics
func ResourceDatabase ¶
func ResourceDatabaseBackup ¶
func ResourceInstance ¶
func ResourcePrivilege ¶
func ResourceRdbACLRead ¶
func ResourceRdbACLRead(ctx context.Context, d *schema.ResourceData, m interface{}) diag.Diagnostics
func ResourceRdbDatabaseBackupCreate ¶
func ResourceRdbDatabaseBackupCreate(ctx context.Context, d *schema.ResourceData, m interface{}) diag.Diagnostics
func ResourceRdbDatabaseBackupDelete ¶
func ResourceRdbDatabaseBackupDelete(ctx context.Context, d *schema.ResourceData, m interface{}) diag.Diagnostics
func ResourceRdbDatabaseBackupRead ¶
func ResourceRdbDatabaseBackupRead(ctx context.Context, d *schema.ResourceData, m interface{}) diag.Diagnostics
func ResourceRdbDatabaseBackupUpdate ¶
func ResourceRdbDatabaseBackupUpdate(ctx context.Context, d *schema.ResourceData, m interface{}) diag.Diagnostics
func ResourceRdbDatabaseCreate ¶
func ResourceRdbDatabaseCreate(ctx context.Context, d *schema.ResourceData, m interface{}) diag.Diagnostics
func ResourceRdbDatabaseDelete ¶
func ResourceRdbDatabaseDelete(ctx context.Context, d *schema.ResourceData, m interface{}) diag.Diagnostics
func ResourceRdbDatabaseID ¶
func ResourceRdbDatabaseID(region scw.Region, instanceID string, databaseName string) (resourceID string)
ResourceRdbDatabaseID builds the resource identifier The resource identifier format is "Region/InstanceId/DatabaseName"
func ResourceRdbDatabaseParseID ¶
func ResourceRdbDatabaseParseID(resourceID string) (region scw.Region, instanceID string, database string, err error)
ResourceRdbDatabaseParseID extracts instance ID and database from the resource identifier. The resource identifier format is "Region/InstanceId/DatabaseId"
func ResourceRdbDatabaseRead ¶
func ResourceRdbDatabaseRead(ctx context.Context, d *schema.ResourceData, m interface{}) diag.Diagnostics
func ResourceRdbInstanceCreate ¶
func ResourceRdbInstanceCreate(ctx context.Context, d *schema.ResourceData, m interface{}) diag.Diagnostics
func ResourceRdbInstanceDelete ¶
func ResourceRdbInstanceDelete(ctx context.Context, d *schema.ResourceData, m interface{}) diag.Diagnostics
func ResourceRdbInstanceRead ¶
func ResourceRdbInstanceRead(ctx context.Context, d *schema.ResourceData, m interface{}) diag.Diagnostics
func ResourceRdbInstanceUpdate ¶
func ResourceRdbInstanceUpdate(ctx context.Context, d *schema.ResourceData, m interface{}) diag.Diagnostics
func ResourceRdbPrivilegeCreate ¶
func ResourceRdbPrivilegeCreate(ctx context.Context, d *schema.ResourceData, m interface{}) diag.Diagnostics
func ResourceRdbPrivilegeDelete ¶
func ResourceRdbPrivilegeDelete(ctx context.Context, d *schema.ResourceData, m interface{}) diag.Diagnostics
func ResourceRdbPrivilegeRead ¶
func ResourceRdbPrivilegeRead(ctx context.Context, d *schema.ResourceData, m interface{}) diag.Diagnostics
func ResourceRdbPrivilegeUpdate ¶
func ResourceRdbPrivilegeUpdate(ctx context.Context, d *schema.ResourceData, m interface{}) diag.Diagnostics
func ResourceRdbReadReplicaCreate ¶
func ResourceRdbReadReplicaCreate(ctx context.Context, d *schema.ResourceData, m interface{}) diag.Diagnostics
func ResourceRdbReadReplicaDelete ¶
func ResourceRdbReadReplicaDelete(ctx context.Context, d *schema.ResourceData, m interface{}) diag.Diagnostics
func ResourceRdbReadReplicaRead ¶
func ResourceRdbReadReplicaRead(ctx context.Context, d *schema.ResourceData, m interface{}) diag.Diagnostics
func ResourceRdbReadReplicaUpdate ¶
func ResourceRdbReadReplicaUpdate(ctx context.Context, d *schema.ResourceData, m interface{}) diag.Diagnostics
func ResourceRdbUserPrivilegeID ¶
func ResourceRdbUserPrivilegeID(region scw.Region, instanceID, database, userName string) (resourceID string)
Build the resource identifier The resource identifier format is "Region/InstanceId/database/UserName"
func ResourceRdbUserPrivilegeParseID ¶
func ResourceRdbUserPrivilegeParseID(resourceID string) (region scw.Region, instanceID, databaseName, userName string, err error)
ResourceRdbUserPrivilegeParseID: The resource identifier format is "Region/InstanceId/DatabaseName/UserName"
func ResourceReadReplica ¶
func ResourceUser ¶
func ResourceUserCreate ¶
func ResourceUserCreate(ctx context.Context, d *schema.ResourceData, m interface{}) diag.Diagnostics
func ResourceUserDelete ¶
func ResourceUserDelete(ctx context.Context, d *schema.ResourceData, m interface{}) diag.Diagnostics
func ResourceUserID ¶
ResourceUserID builds the resource identifier The resource identifier format is "Region/InstanceId/UserName"
func ResourceUserParseID ¶
func ResourceUserParseID(resourceID string) (region scw.Region, instanceID string, userName string, err error)
ResourceUserParseID extracts instance ID and username from the resource identifier. The resource identifier format is "Region/InstanceId/UserName"
func ResourceUserRead ¶
func ResourceUserRead(ctx context.Context, d *schema.ResourceData, m interface{}) diag.Diagnostics
func ResourceUserUpdate ¶
func ResourceUserUpdate(ctx context.Context, d *schema.ResourceData, m interface{}) diag.Diagnostics
Types ¶
This section is empty.