dnsproviders

package
v1.5.0 Latest Latest
Warning

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

Go to latest
Published: Aug 11, 2021 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Overview

Package dnsproviders contains addons that create DNS provider credentials in the target test environment. In most cases, those credentials are access via the CLI flags passed to the test suite.

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrNoCredentials = fmt.Errorf("no credentials provided for provider")
)

Functions

This section is empty.

Types

type Cloudflare

type Cloudflare struct {
	Base *base.Base

	Namespace string
	// contains filtered or unexported fields
}

Cloudflare provisions cloudflare credentials in a namespace for cert-manager to use. It also provides a configuration structure that can be used on issuers created during tests

func (*Cloudflare) Deprovision

func (b *Cloudflare) Deprovision() error

func (*Cloudflare) Details

func (b *Cloudflare) Details() *Details

func (*Cloudflare) Provision

func (b *Cloudflare) Provision() error

Provision will create a copy of the DNS provider credentials in a secret in the APIServer, and return a portion of an Issuer that can be used to utilise these credentials in tests.

func (*Cloudflare) SetNamespace

func (b *Cloudflare) SetNamespace(s string)

func (*Cloudflare) Setup

func (b *Cloudflare) Setup(c *config.Config) error

func (*Cloudflare) SupportsGlobal

func (b *Cloudflare) SupportsGlobal() bool

type Details

type Details struct {
	// Domain is a domain that can be validated using these credentials
	BaseDomain string

	// ProviderConfig is the issuer config needed to use these newly created credentials
	ProviderConfig cmacme.ACMEChallengeSolverDNS01
}

type RFC2136 added in v0.14.0

type RFC2136 struct {
	// contains filtered or unexported fields
}

func (*RFC2136) Deprovision added in v0.14.0

func (b *RFC2136) Deprovision() error

func (*RFC2136) Details added in v0.14.0

func (b *RFC2136) Details() *Details

func (*RFC2136) Provision added in v0.14.0

func (b *RFC2136) Provision() error

Provision will create a copy of the DNS provider credentials in a secret in the APIServer, and return a portion of an Issuer that can be used to utilise these credentials in tests.

func (*RFC2136) Setup added in v0.14.0

func (b *RFC2136) Setup(c *config.Config) error

func (*RFC2136) SupportsGlobal added in v0.14.0

func (b *RFC2136) SupportsGlobal() bool

Jump to

Keyboard shortcuts

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