route53

package
v0.0.0-...-8b292c0 Latest Latest
Warning

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

Go to latest
Published: Feb 18, 2022 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

********************************************************************************** The MIT License (MIT)

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **********************************************************************************

********************************************************************************** The MIT License (MIT)

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. **********************************************************************************

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func UpdateZoneWithIP

func UpdateZoneWithIP(connect aws.ConnectConfig, zone Zone, ipAddress string) error

Types

type Configuration

type Configuration struct {
	Connect aws.ConnectConfig `json:"connect" yaml:"connect"`
}

Configuration holds all of the required parameters to connect to the Route53. It is assumed that the AWS credentials have already been configured on the host. By executing the 'aws configure' or otherwise part of the credential verification chain, such as environment variables

type Zone

type Zone struct {
	Records     []ZoneRecord `json:"records" yaml:"records"`
	Id          string       `json:"id" yaml:"id"`
	Name        string       `json:"name" yaml:"name"`
	RecordCount int64        `json:"recordcount" yaml:"recordcount"`
	PrivateZone bool         `json:"privatezone" yaml:"privatezone"`
}

Zone represents a DNS zone

func GetHostedZoneByName

func GetHostedZoneByName(connect aws.ConnectConfig, name string) (Zone, error)

GetHostedZoneByName retrieves the Zone for the specified DNS name

func GetZones

func GetZones(connect aws.ConnectConfig) ([]Zone, error)

GetZones retrieves the zones based on the passed in AWS Connect configuration

func GetZonesWithRecords

func GetZonesWithRecords(connect aws.ConnectConfig) ([]Zone, error)

GetZones retrieves the zones based on the passed in AWS Connect configuration

func (Zone) GetRecordByType

func (zone Zone) GetRecordByType(recordType string) []ZoneRecord

type ZoneRecord

type ZoneRecord struct {
	ResourceRecords []string `json:"resourcerecords" yaml:"resourcerecords"`
	Name            string   `json:"name" yaml:"name"`
	Alias           string   `json:"alias" yaml:"alias"`
	Type            string   `json:"type" yaml:"type"`
	TTL             int64    `json:"ttl" yaml:"ttl"`
}

ZoneRecord represents an record in a HostedZone

func GetZoneRecordsWithId

func GetZoneRecordsWithId(connect aws.ConnectConfig, zoneId string) ([]ZoneRecord, error)

Jump to

Keyboard shortcuts

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