dnsproviders

package
v0.7.2 Latest Latest
Warning

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

Go to latest
Published: May 1, 2019 License: Apache-2.0 Imports: 8 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 cmapi.ACMEIssuerDNS01Provider
}

func (*Details) NewTestDomain

func (d *Details) NewTestDomain() string

Jump to

Keyboard shortcuts

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