dns

package
v1.26.0 Latest Latest
Warning

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

Go to latest
Published: Jul 5, 2021 License: Apache-2.0, BSD-2-Clause, MIT, + 1 more Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var TimeNow = time.Now

TimeNow returns the current time. Exposed for testing.

Functions

func CheckDNSObject added in v1.25.0

func CheckDNSObject(obj client.Object) error

CheckDNSObject is similar to health.CheckExtensionObject, but implements the special handling for DNS objects as they don't implement extensionsv1alpha1.Object.

func NewEntry added in v1.20.0

func NewEntry(
	logger logrus.FieldLogger,
	client client.Client,
	namespace string,
	values *EntryValues,
) component.DeployWaiter

NewEntry creates a new instance of DeployWaiter for a specific DNSEntry.

func NewOwner added in v1.20.0

func NewOwner(client client.Client, namespace string, values *OwnerValues) component.DeployWaiter

NewOwner creates a new instance of DeployWaiter for a specific DNSOwner.

func NewProvider added in v1.20.0

func NewProvider(
	logger logrus.FieldLogger,
	client client.Client,
	namespace string,
	values *ProviderValues,
) component.DeployWaiter

NewProvider creates a new instance of DeployWaiter for a specific DNSProvider.

Types

type EntryValues

type EntryValues struct {
	Name    string
	DNSName string
	Targets []string
	OwnerID string
	TTL     int64
}

EntryValues contains the values used to create a DNSEntry

type ErrorWithDNSState added in v1.25.0

type ErrorWithDNSState interface {
	error

	// DNSState returns the state of the DNS object this error is about.
	DNSState() string
}

ErrorWithDNSState is an error annotated with the state of a DNS object.

type IncludeExclude

type IncludeExclude struct {
	Include []string
	Exclude []string
}

IncludeExclude contain slices of excluded and included domains/zones.

type Object added in v1.25.0

type Object interface {
	client.Object

	GetObservedGeneration() int64
	SetObservedGeneration(observedGeneration int64)
	GetState() string
	SetState(state string)
	GetMessage() *string
	SetMessage(message *string)
}

Object is an interface for accessing common fields across DNS objects. It is similar to extensionsv1alpha1.Object but special, as the DNS objects don't have the same structure as all other extension objects and thus don't implement extensionsv1alpha1.Object.

func Accessor added in v1.25.0

func Accessor(obj client.Object) (Object, error)

Accessor returns an Object implementation for the given obj.

type OwnerValues

type OwnerValues struct {
	Name    string
	OwnerID string
	Active  *bool
}

OwnerValues contains the values used for DNSOwner creation

type ProviderValues

type ProviderValues struct {
	Name        string
	Purpose     string
	Provider    string
	Labels      map[string]string
	Annotations map[string]string
	SecretData  map[string][]byte
	Domains     *IncludeExclude
	Zones       *IncludeExclude
}

ProviderValues contains the values used to create a DNSProvider.

Jump to

Keyboard shortcuts

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