Documentation ¶
Index ¶
- func ProviderFor(ctx *types.ControllerContext, resource *dnsv1alpha1.DNSProvider) (types.Provider, error)
- func RegisterProviderConstructor(name string, c ProviderContructor)
- type Cloudflare
- type Dummy
- type ProviderContructor
- type RFC2136
- func (provider *RFC2136) DeleteRecord(zone dnsname.Name, resource v1alpha1.DNSRecord) error
- func (provider *RFC2136) UpdateRecord(zone dnsname.Name, resource v1alpha1.DNSRecord) error
- func (provider *RFC2136) WithTsig(secret, keyName, algorithm string) *RFC2136
- func (provider *RFC2136) Zones() []dnsname.Name
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ProviderFor ¶
func ProviderFor(ctx *types.ControllerContext, resource *dnsv1alpha1.DNSProvider) (types.Provider, error)
ProviderFor builds a new Provider from the given kubernetes resource.
func RegisterProviderConstructor ¶
func RegisterProviderConstructor(name string, c ProviderContructor)
RegisterProviderConstructor will register a provider constructor. `name` is a unique name representing the key of the corresponding k8s resource.
Types ¶
type Cloudflare ¶
type Cloudflare struct {
// contains filtered or unexported fields
}
Cloudflare DNS provider.
func NewCloudflare ¶
func NewCloudflare(log logr.Logger, zones []dnsname.Name, cf *cloudflare.API, proxiedByDefault bool) *Cloudflare
NewCloudflare creates a new instance of the Cloudflare provider.
func (*Cloudflare) DeleteRecord ¶
DeleteRecord deletes the given RRset from Cloudflare.
func (*Cloudflare) UpdateRecord ¶
UpdateRecord reconciles the given RRset with the records registered on Cloudflare.
func (*Cloudflare) Zones ¶
func (cf *Cloudflare) Zones() []dnsname.Name
Zones returns a slice containing the DNS zones managed by this provider.
type Dummy ¶
type Dummy struct {
// contains filtered or unexported fields
}
Dummy DNS provider for debugging.
func (*Dummy) DeleteRecord ¶
DeleteRecord dummy noop.
func (*Dummy) UpdateRecord ¶
UpdateRecord dummy noop.
type ProviderContructor ¶
type ProviderContructor func(*types.ControllerContext, *dnsv1alpha1.DNSProvider) (types.Provider, error)
ProviderContructor constructs a Provider given a kubernetes resource and a Context.
type RFC2136 ¶
type RFC2136 struct {
// contains filtered or unexported fields
}
RFC2136 is a DNS provider which uses Dynamic DNS (https://tools.ietf.org/html/rfc2136) for updates to a backend server.
func NewRFC2136 ¶
NewRFC2136 creates a new DNS provider which uses Dynamic DNS for updates.
func (*RFC2136) DeleteRecord ¶
DeleteRecord deletes a record from the backend server.
func (*RFC2136) UpdateRecord ¶
UpdateRecord updates a record set on the backend server.