certificate

package
v1.25.2 Latest Latest
Warning

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

Go to latest
Published: Mar 16, 2021 License: MPL-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

View Source
const DataSourceType = "hcloud_certificate"

DataSourceType is the type name of the Hetzner Cloud Certificate resource.

View Source
const ResourceType = "hcloud_certificate"

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

Variables

This section is empty.

Functions

func ByID

func ByID(t *testing.T, cert *hcloud.Certificate) func(*hcloud.Client, int) bool

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

func DataSource added in v1.24.1

func DataSource() *schema.Resource

DataSource creates a new Terraform schema for Hetzner Cloud Certificates.

func EqualCert added in v1.24.1

func EqualCert(cert1, cert2 string) (bool, error)

EqualCert compares two PEM encoded X509 certificates.

EqualCert returns an error if it was unable to parse any of the passed certificates.

func Resource added in v1.24.1

func Resource() *schema.Resource

Resource creates a new Terraform schema for Hetzner Cloud Certificate resources.

func Sweep

func Sweep(r string) error

Sweep removes all certificates from the Hetzner Cloud backend.

Types

type DData

type DData struct {
	testtemplate.DataCommon

	CertificateID   string
	CertificateName string
	LabelSelector   string
}

DData defines the fields for the "testdata/d/hcloud_certificate" template.

func (*DData) TFID

func (d *DData) TFID() string

TFID returns the data source identifier.

type RData

type RData struct {
	testtemplate.DataCommon

	Name        string
	PrivateKey  string
	Certificate string
	Labels      map[string]string
}

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

func NewRData

func NewRData(t *testing.T, name, org string) *RData

NewRData creates data for a new certificate resource.

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