aws

package
v0.1.21 Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2024 License: MIT Imports: 14 Imported by: 0

Documentation

Overview

Copyright (C) 2021-2023, Kubefirst

This program is licensed under MIT. See the LICENSE file for more details.

This program is licensed under MIT. See the LICENSE file for more details.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewAws

func NewAws() aws.Config

NewAws instantiates a new AWS configuration

Types

type AWSARecord

type AWSARecord struct {
	Name        string
	RecordType  string
	TTL         *int64
	AliasTarget *route53Types.AliasTarget
}

AWSARecord stores Route53 A record data

type AWSConfiguration

type AWSConfiguration struct {
	Config aws.Config
}

AWSConfiguration stores session data to organize all AWS functions into a single struct

var Conf AWSConfiguration = AWSConfiguration{
	Config: NewAws(),
}

Create a single configuration instance to act as an interface to the AWS client

func (*AWSConfiguration) GetHostedZoneID

func (conf *AWSConfiguration) GetHostedZoneID(domain string) (string, error)

GetHostedZoneID returns the id of a hosted zone based on its domain (name)

func (*AWSConfiguration) Route53AlterResourceRecord

Route53AlterResourceRecord simplifies manipulation of Route53 records

func (*AWSConfiguration) Route53ListARecords

func (conf *AWSConfiguration) Route53ListARecords(hostedZoneId string) ([]AWSARecord, error)

Route53ListARecords retrieves all DNS A records for a hosted zone

func (*AWSConfiguration) Route53ListTXTRecords

func (conf *AWSConfiguration) Route53ListTXTRecords(hostedZoneId string) ([]AWSTXTRecord, error)

Route53ListTXTRecords retrieves all DNS TXT record type for a hosted zone

func (*AWSConfiguration) TestHostedZoneLiveness

func (conf *AWSConfiguration) TestHostedZoneLiveness(hostedZoneName string) (bool, error)

TestHostedZoneLiveness determines whether or not a target hosted zone is initialized and ready to accept records

type AWSRoute53AlterResourceRecord

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

type AWSTXTRecord

type AWSTXTRecord struct {
	Name          string
	Value         string
	SetIdentifier *string
	Weight        *int64
	TTL           int64
}

AWSTXTRecord stores Route53 TXT record data

Jump to

Keyboard shortcuts

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