backup

package
v0.7.1 Latest Latest
Warning

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

Go to latest
Published: Mar 14, 2024 License: MPL-2.0 Imports: 30 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ProviderNameNova  = "cloud_servers"
	ProviderNameTrove = "dbaas"
	Nova              = "OS::Nova"
	Trove             = "OS::Trove"
	NovaInstance      = "OS::Nova::Server"
	TroveInstance     = "OS::Trove::Instance"
	TroveCluster      = "OS::Trove::Cluster"

	RetentionFull = "max_backups"
	RetentionGFS  = "gfs"

	TimeFormatWithoutZone = "15:04"
	TimeFormatWithZone    = "15:04-07"
)

Variables

This section is empty.

Functions

func NewPlanDataSource

func NewPlanDataSource() datasource.DataSource

func NewPlanResource

func NewPlanResource() resource.Resource

func NewProviderDataSource

func NewProviderDataSource() datasource.DataSource

func NewProvidersDataSource

func NewProvidersDataSource() datasource.DataSource

Types

type PlanDataSource

type PlanDataSource struct {
	// contains filtered or unexported fields
}

func (*PlanDataSource) Configure

func (*PlanDataSource) Metadata

func (*PlanDataSource) Read

func (*PlanDataSource) Schema

type PlanDataSourceModel

type PlanDataSourceModel struct {
	ID                types.String                    `tfsdk:"id"`
	Name              types.String                    `tfsdk:"name"`
	InstanceID        types.String                    `tfsdk:"instance_id"`
	Schedule          *PlanResourceScheduleModel      `tfsdk:"schedule"`
	FullRetention     *PlanResourceFullRetentionModel `tfsdk:"full_retention"`
	GFSRetention      *PlanResourceGFSRetentionModel  `tfsdk:"gfs_retention"`
	IncrementalBackup types.Bool                      `tfsdk:"incremental_backup"`
	ProviderID        types.String                    `tfsdk:"provider_id"`
	InstanceIDs       []types.String                  `tfsdk:"instance_ids"`
	Region            types.String                    `tfsdk:"region"`
}

type PlanResource

type PlanResource struct {
	// contains filtered or unexported fields
}

func (*PlanResource) ConfigValidators

func (r *PlanResource) ConfigValidators(ctx context.Context) []resource.ConfigValidator

func (*PlanResource) Configure

func (*PlanResource) Create

func (*PlanResource) Delete

func (*PlanResource) ImportState

func (*PlanResource) Metadata

func (*PlanResource) Read

func (*PlanResource) Schema

func (*PlanResource) Update

type PlanResourceFullRetentionModel

type PlanResourceFullRetentionModel struct {
	MaxFullBackup types.Int64 `tfsdk:"max_full_backup"`
}

type PlanResourceGFSRetentionModel

type PlanResourceGFSRetentionModel struct {
	GFSWeekly  types.Int64 `tfsdk:"gfs_weekly"`
	GFSMonthly types.Int64 `tfsdk:"gfs_monthly"`
	GFSYearly  types.Int64 `tfsdk:"gfs_yearly"`
}

type PlanResourceModel

type PlanResourceModel struct {
	ID                types.String                    `tfsdk:"id"`
	Name              types.String                    `tfsdk:"name"`
	Schedule          *PlanResourceScheduleModel      `tfsdk:"schedule"`
	FullRetention     *PlanResourceFullRetentionModel `tfsdk:"full_retention"`
	GFSRetention      *PlanResourceGFSRetentionModel  `tfsdk:"gfs_retention"`
	IncrementalBackup types.Bool                      `tfsdk:"incremental_backup"`
	ProviderID        types.String                    `tfsdk:"provider_id"`
	ProviderName      types.String                    `tfsdk:"provider_name"`
	InstanceIDs       []types.String                  `tfsdk:"instance_ids"`
	Region            types.String                    `tfsdk:"region"`
}

type PlanResourceScheduleModel

type PlanResourceScheduleModel struct {
	Date       []types.String `tfsdk:"date"`
	Time       types.String   `tfsdk:"time"`
	EveryHours types.Int64    `tfsdk:"every_hours"`
}

type ProviderDataSource

type ProviderDataSource struct {
	// contains filtered or unexported fields
}

func (*ProviderDataSource) Configure

func (*ProviderDataSource) Metadata

func (*ProviderDataSource) Read

func (*ProviderDataSource) Schema

type ProviderDataSourceModel

type ProviderDataSourceModel struct {
	ID     types.String `tfsdk:"id"`
	Name   types.String `tfsdk:"name"`
	Region types.String `tfsdk:"region"`
}

type ProvidersDataSource

type ProvidersDataSource struct {
	// contains filtered or unexported fields
}

func (*ProvidersDataSource) Configure

func (*ProvidersDataSource) Metadata

func (*ProvidersDataSource) Read

func (*ProvidersDataSource) Schema

type ProvidersDataSourceModel

type ProvidersDataSourceModel struct {
	Providers []ProvidersDataSourceProvidersModel `tfsdk:"providers"`
	Region    types.String                        `tfsdk:"region"`
	ID        types.String                        `tfsdk:"id"`
}

type ProvidersDataSourceProvidersModel

type ProvidersDataSourceProvidersModel struct {
	ID   types.String `tfsdk:"id"`
	Name types.String `tfsdk:"name"`
}

Jump to

Keyboard shortcuts

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