package hostedzone

import "github.com/oslokommune/okctl/pkg/janitor/hostedzone"

Package hostedzone provides some functionality for interacting with the AWS API

Index

Types

type Client

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

Client contains state for interacting with required services

func New

func New(provider v1alpha1.CloudProvider) *Client

New returns an initialised hostedzone client

func (*Client) UndelegatedZonesInHostedZones

func (c *Client) UndelegatedZonesInHostedZones(hostedZoneID string, fn NameServersFunc) ([]*UndelegatedHostedZone, error)

UndelegatedZonesInHostedZones will find all NS record delegations for a HostedZone and determine if any of them are delegated without responding to a NS record query

type NameServersFunc

type NameServersFunc func(domain string) (nameservers []string, err error)

NameServersFunc defines the method signature for retrieving name servers

type UndelegatedHostedZone

type UndelegatedHostedZone struct {
	Name        string
	NameServers []string
}

UndelegatedHostedZone contains information about a hosted zone that is present, but the NS records do not resolve.

Source Files

hostedzone.go

Version
v0.0.106 (latest)
Published
Oct 21, 2022
Platform
linux/amd64
Imports
5 packages
Last checked
19 hours ago

Tools for package owners.