dns

package
v0.1.7 Latest Latest
Warning

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

Go to latest
Published: May 22, 2026 License: MIT Imports: 12 Imported by: 0

Documentation

Overview

Package dns provides DNS operator implementation.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DNSOperatorImpl

type DNSOperatorImpl struct {
	// contains filtered or unexported fields
}

DNSOperatorImpl implements the DNS operator.

func NewDNSOperator

func NewDNSOperator(credManager *cloudflare.CredentialManager, store storage.Storage) *DNSOperatorImpl

NewDNSOperator creates a new DNS operator.

func (*DNSOperatorImpl) Create

func (o *DNSOperatorImpl) Create(ctx context.Context, resource *storage.ManagedResource) error

Create creates a resource (generic interface).

func (*DNSOperatorImpl) CreateDNSRecord

func (o *DNSOperatorImpl) CreateDNSRecord(ctx context.Context, container *types.ContainerInfo, service *types.DNSService) (*storage.ManagedResource, error)

CreateDNSRecord creates a DNS record from service configuration.

func (*DNSOperatorImpl) Delete

func (o *DNSOperatorImpl) Delete(ctx context.Context, resource *storage.ManagedResource) error

Delete deletes a resource (generic interface).

func (*DNSOperatorImpl) DeleteDNSRecord

func (o *DNSOperatorImpl) DeleteDNSRecord(ctx context.Context, resource *storage.ManagedResource) error

DeleteDNSRecord deletes a DNS record.

func (*DNSOperatorImpl) Name

func (o *DNSOperatorImpl) Name() string

Name returns the operator name.

func (*DNSOperatorImpl) Reconcile

func (o *DNSOperatorImpl) Reconcile(ctx context.Context, desired []*types.ParsedContainer) error

Reconcile ensures DNS records match the desired state.

func (*DNSOperatorImpl) Update

func (o *DNSOperatorImpl) Update(ctx context.Context, resource *storage.ManagedResource) error

Update updates a resource (generic interface).

func (*DNSOperatorImpl) UpdateDNSRecord

func (o *DNSOperatorImpl) UpdateDNSRecord(ctx context.Context, resource *storage.ManagedResource, service *types.DNSService) error

UpdateDNSRecord updates a DNS record.

Jump to

Keyboard shortcuts

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