selection

package
v0.18.5 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LightDNSHostedZone

type LightDNSHostedZone interface {
	Id() dns.ZoneID
	Domain() string
	ForwardedDomains() []string
}

LightDNSHostedZone contains the info of a DNSHostedZone needed for selection

type SelectionResult

type SelectionResult struct {
	Zones         []LightDNSHostedZone
	SpecZoneSel   SubSelection
	SpecDomainSel SubSelection
	ZoneSel       SubSelection
	DomainSel     SubSelection
	Error         string
	Warnings      []string
}

SelectionResult contains the result of the CalcZoneAndDomainSelection function

func CalcZoneAndDomainSelection

func CalcZoneAndDomainSelection(spec v1alpha1.DNSProviderSpec, allzones []LightDNSHostedZone) SelectionResult

CalcZoneAndDomainSelection calculates the effective included/excluded domains and zones for the given spec and zones supported by a provider.

type SubSelection

type SubSelection struct {
	Include utils.StringSet
	Exclude utils.StringSet
}

SubSelection contains an included and an excluded string set

func NewSubSelection

func NewSubSelection() SubSelection

NewSubSelection creates an empty SubSelection

func PrepareSelection added in v0.7.18

func PrepareSelection(sel *v1alpha1.DNSSelection) SubSelection

Jump to

Keyboard shortcuts

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