snapshot

package
v1.49.1 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const ResourceType = "hcloud_snapshot"

ResourceType is the type name of the Hetzner Cloud Snapshot resource.

Variables

This section is empty.

Functions

func ByID

func ByID(t *testing.T, img *hcloud.Image) func(*hcloud.Client, int) bool

ByID returns a function that obtains a image by its ID.

func Resource

func Resource() *schema.Resource

Resource creates a new Terraform schema for the hcloud_floating_ip resource.

func Sweep

func Sweep(r string) error

Sweep removes all Snapshots from the Hetzner Cloud backend.

Types

type RData

type RData struct {
	testtemplate.DataCommon

	ServerID    string
	Description string
	Labels      map[string]string
}

RData defines the fields for the "testdata/r/hcloud_snapshot" template.

func (*RData) TFID

func (d *RData) TFID() string

TFID returns the resource identifier.

Jump to

Keyboard shortcuts

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