privatedns

package
v1.16.4 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LinkSpec added in v1.3.0

type LinkSpec struct {
	Name              string
	ZoneName          string
	SubscriptionID    string
	VNetResourceGroup string
	VNetName          string
	ResourceGroup     string
	ClusterName       string
	AdditionalTags    infrav1.Tags
}

LinkSpec defines the specification for a virtual network link in a private DNS zone.

func (LinkSpec) OwnerResourceName added in v1.3.0

func (s LinkSpec) OwnerResourceName() string

OwnerResourceName returns the zone name of the virtual network link.

func (LinkSpec) Parameters added in v1.3.0

func (s LinkSpec) Parameters(ctx context.Context, existing interface{}) (params interface{}, err error)

Parameters returns the parameters for the virtual network link.

func (LinkSpec) ResourceGroupName added in v1.3.0

func (s LinkSpec) ResourceGroupName() string

ResourceGroupName returns the name of the resource group of the virtual network link.

func (LinkSpec) ResourceName added in v1.3.0

func (s LinkSpec) ResourceName() string

ResourceName returns the name of the virtual network link.

type RecordSpec added in v1.3.0

type RecordSpec struct {
	Record        infrav1.AddressRecord
	ZoneName      string
	ResourceGroup string
}

RecordSpec defines the specification for a record set.

func (RecordSpec) OwnerResourceName added in v1.3.0

func (s RecordSpec) OwnerResourceName() string

OwnerResourceName returns the zone name of a record set.

func (RecordSpec) Parameters added in v1.3.0

func (s RecordSpec) Parameters(ctx context.Context, existing interface{}) (params interface{}, err error)

Parameters returns the parameters for a record set.

func (RecordSpec) ResourceGroupName added in v1.3.0

func (s RecordSpec) ResourceGroupName() string

ResourceGroupName returns the name of the resource group of a record set.

func (RecordSpec) ResourceName added in v1.3.0

func (s RecordSpec) ResourceName() string

ResourceName returns the name of a record set.

type Scope

type Scope interface {
	azure.ClusterDescriber
	azure.Authorizer
	azure.AsyncStatusUpdater
	PrivateDNSSpec() (zoneSpec azure.ResourceSpecGetter, linksSpec, recordsSpec []azure.ResourceSpecGetter)
}

Scope defines the scope interface for a private dns service.

type Service

type Service struct {
	Scope      Scope
	TagsGetter async.TagsGetter
	// contains filtered or unexported fields
}

Service provides operations on Azure resources.

func New

func New(scope Scope) (*Service, error)

New creates a new private dns service.

func (*Service) Delete

func (s *Service) Delete(ctx context.Context) error

Delete deletes the private zone and vnet links.

func (*Service) IsManaged added in v1.3.0

func (s *Service) IsManaged(ctx context.Context) (bool, error)

IsManaged returns true if the private DNS has an owned tag with the cluster name as value, meaning that the DNS lifecycle is managed.

func (*Service) Name added in v1.3.0

func (s *Service) Name() string

Name returns the service name.

func (*Service) Reconcile

func (s *Service) Reconcile(ctx context.Context) error

Reconcile creates or updates the private zone, links it to the vnet, and creates DNS records.

type ZoneSpec added in v1.3.0

type ZoneSpec struct {
	Name           string
	ResourceGroup  string
	ClusterName    string
	AdditionalTags infrav1.Tags
}

ZoneSpec defines the specification for private dns zone.

func (ZoneSpec) OwnerResourceName added in v1.3.0

func (s ZoneSpec) OwnerResourceName() string

OwnerResourceName is a no-op for private dns zone.

func (ZoneSpec) Parameters added in v1.3.0

func (s ZoneSpec) Parameters(ctx context.Context, existing interface{}) (params interface{}, err error)

Parameters returns the parameters for the private dns zone.

func (ZoneSpec) ResourceGroupName added in v1.3.0

func (s ZoneSpec) ResourceGroupName() string

ResourceGroupName returns the name of the resource group of the private dns zone.

func (ZoneSpec) ResourceName added in v1.3.0

func (s ZoneSpec) ResourceName() string

ResourceName returns the name of the private dns zone.

Directories

Path Synopsis
Run go generate to regenerate this mock.
Run go generate to regenerate this mock.

Jump to

Keyboard shortcuts

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