storage

package
v0.0.0-...-15940f6 Latest Latest
Warning

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

Go to latest
Published: Nov 11, 2024 License: MIT Imports: 29 Imported by: 0

Documentation

Index

Constants

View Source
const (
	BackupRuleSimpleBackupWarning = `Also, due to how UpCloud API works with simple backups and how Terraform orders the update operations, it is advised to never switch between ` + "`" + `simple_backup` + "`" + ` on the server and individual storages ` + "`" + `backup_rules` + "`" + ` in one apply. If you want to switch from using server simple backup to per-storage defined backup rules,  please first remove ` + "`" + `simple_backup` + "`" + ` block from a server, run ` + "`" + `terraform apply` + "`" + `, then add ` + "`" + `backup_rule` + "`" + ` to desired storages and run ` + "`" + `terraform apply` + "`" + ` again.`
	BackupRuleDescription         = `The criteria to backup the storage.

    Please keep in mind that it's not possible to have a storage with ` + "`" + `backup_rule` + "`" + ` attached to a server with ` + "`" + `simple_backup` + "`" + ` specified. Such configurations will throw errors during execution.

    ` + BackupRuleSimpleBackupWarning
)

Lines > 1 should have one level of indentation to keep them under the right list item

Variables

This section is empty.

Functions

func BackupRule

func BackupRule(backupRule map[string]interface{}) *upcloud.BackupRule

func BackupRuleBlock

func BackupRuleBlock() schema.ListNestedBlock

func BackupRuleSchema

func BackupRuleSchema() *sdkv2_schema.Schema

func NewStorageDataSource

func NewStorageDataSource() datasource.DataSource

func NewStorageResource

func NewStorageResource() resource.Resource

func NewStorageTemplateResource

func NewStorageTemplateResource() resource.Resource

func ResizeStoragePartitionAndFs

func ResizeStoragePartitionAndFs(ctx context.Context, client *service.Service, UUID string, deleteBackup bool) diag.Diagnostics

Types

type BackupRuleModel

type BackupRuleModel struct {
	Interval  types.String `tfsdk:"interval"`
	Time      types.String `tfsdk:"time"`
	Retention types.Int64  `tfsdk:"retention"`
}

Jump to

Keyboard shortcuts

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