cloudflare

package
v0.0.0-...-1867f9a Latest Latest
Warning

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

Go to latest
Published: Aug 9, 2017 License: Apache-2.0 Imports: 7 Imported by: 1

Documentation

Overview

Package cloudflare automates verification of domain control using Cloudflare's API.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

Types

type Verifier

type Verifier struct {
	// APIKey is the API key that should be used against the Cloudflare API.
	APIKey string `mapstructure:"api_key"`

	// Email is the email address to which APIKey belongs.
	Email string
	// contains filtered or unexported fields
}

func (*Verifier) CanVerify

func (v *Verifier) CanVerify(ctx context.Context, name string) (bool, error)

CanVerify checks whether this verifier can assert control over the named record.

func (*Verifier) Cleanup

func (v *Verifier) Cleanup(ctx context.Context) error

Cleanup cleans up any DNS records created.

func (*Verifier) VerifyDNS01Record

func (v *Verifier) VerifyDNS01Record(ctx context.Context, name, value string) error

VerifyDNS01Record verifies control of a domain using a TXT record. If completed successfully, Cleanup should be called later to clean up the created record.

Jump to

Keyboard shortcuts

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