Documentation
¶
Overview ¶
Package dns provides DNS operator implementation.
Index ¶
- type DNSOperatorImpl
- func (o *DNSOperatorImpl) Create(ctx context.Context, resource *storage.ManagedResource) error
- func (o *DNSOperatorImpl) CreateDNSRecord(ctx context.Context, container *types.ContainerInfo, service *types.DNSService) (*storage.ManagedResource, error)
- func (o *DNSOperatorImpl) Delete(ctx context.Context, resource *storage.ManagedResource) error
- func (o *DNSOperatorImpl) DeleteDNSRecord(ctx context.Context, resource *storage.ManagedResource) error
- func (o *DNSOperatorImpl) Name() string
- func (o *DNSOperatorImpl) Reconcile(ctx context.Context, desired []*types.ParsedContainer) error
- func (o *DNSOperatorImpl) Update(ctx context.Context, resource *storage.ManagedResource) error
- func (o *DNSOperatorImpl) UpdateDNSRecord(ctx context.Context, resource *storage.ManagedResource, ...) error
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.
Click to show internal directories.
Click to hide internal directories.