instancedisk

package
v2.31.1 Latest Latest
Warning

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

Go to latest
Published: Nov 19, 2024 License: MPL-2.0 Imports: 24 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultVolumeCreateTimeout = 15 * time.Minute
	DefaultVolumeUpdateTimeout = 20 * time.Minute
	DefaultVolumeDeleteTimeout = 10 * time.Minute
)

Variables

This section is empty.

Functions

func AddDiskResource added in v2.17.0

func AddDiskResource(ctx context.Context, disk linodego.InstanceDisk, resp *resource.CreateResponse, plan ResourceModel)

func NewResource added in v2.17.0

func NewResource() resource.Resource

Types

type Resource

type Resource struct {
	helper.BaseResource
}

func (*Resource) Create added in v2.17.0

func (r *Resource) Create(
	ctx context.Context,
	req resource.CreateRequest,
	resp *resource.CreateResponse,
)

func (*Resource) Delete added in v2.17.0

func (r *Resource) Delete(
	ctx context.Context,
	req resource.DeleteRequest,
	resp *resource.DeleteResponse,
)

func (*Resource) ImportState added in v2.17.0

func (r *Resource) ImportState(
	ctx context.Context,
	req resource.ImportStateRequest,
	resp *resource.ImportStateResponse,
)

func (*Resource) Read added in v2.17.0

func (r *Resource) Read(
	ctx context.Context,
	req resource.ReadRequest,
	resp *resource.ReadResponse,
)

func (*Resource) Update added in v2.17.0

func (r *Resource) Update(
	ctx context.Context,
	req resource.UpdateRequest,
	resp *resource.UpdateResponse,
)

type ResourceModel added in v2.17.0

type ResourceModel struct {
	ID              types.String      `tfsdk:"id"`
	Label           types.String      `tfsdk:"label"`
	LinodeID        types.Int64       `tfsdk:"linode_id"`
	Size            types.Int64       `tfsdk:"size"`
	AuthorizedKeys  types.Set         `tfsdk:"authorized_keys"`
	AuthorizedUsers types.Set         `tfsdk:"authorized_users"`
	Filesystem      types.String      `tfsdk:"filesystem"`
	Image           types.String      `tfsdk:"image"`
	RootPass        types.String      `tfsdk:"root_pass"`
	StackScriptData types.Map         `tfsdk:"stackscript_data"`
	StackScriptID   types.Int64       `tfsdk:"stackscript_id"`
	Created         timetypes.RFC3339 `tfsdk:"created"`
	Updated         timetypes.RFC3339 `tfsdk:"updated"`
	Status          types.String      `tfsdk:"status"`
	DiskEncryption  types.String      `tfsdk:"disk_encryption"`
	Timeouts        timeouts.Value    `tfsdk:"timeouts"`
}

func (*ResourceModel) CopyFrom added in v2.17.0

func (data *ResourceModel) CopyFrom(other ResourceModel, preserveKnown bool)

func (*ResourceModel) FlattenDisk added in v2.17.0

func (data *ResourceModel) FlattenDisk(disk *linodego.InstanceDisk, preserveKnown bool)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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