types

package
v0.0.0-...-823a405 Latest Latest
Warning

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

Go to latest
Published: Feb 22, 2021 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ControllerContext

type ControllerContext struct {
	RootContext   context.Context
	Client        client.Client
	Log           logr.Logger
	EventRecorder record.EventRecorder
	// contains filtered or unexported fields
}

ControllerContext contains structures shared with all the controllers of the application.

func (*ControllerContext) GetProvider

func (ctx *ControllerContext) GetProvider(name string, provider *Provider) bool

GetProvider returns the provider with the registered name, if any.

func (*ControllerContext) RemoveProvider

func (ctx *ControllerContext) RemoveProvider(name string)

RemoveProvider removed the provider with the given name from the global map of registered providers.

func (*ControllerContext) SetProvider

func (ctx *ControllerContext) SetProvider(name string, provider Provider)

SetProvider registers a new provider with the given name.

type Provider

type Provider interface {
	Zones() []dnsname.Name
	UpdateRecord(zone dnsname.Name, rrset v1alpha1.DNSRecord) error
	DeleteRecord(zone dnsname.Name, rrset v1alpha1.DNSRecord) error
}

Provider is a generic DNS provider which knows how to talk to a backend to reconcile DNS records.

Jump to

Keyboard shortcuts

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