awsRoute53BG

package
v0.0.0-...-38b4b9b Latest Latest
Warning

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

Go to latest
Published: Oct 17, 2022 License: GPL-3.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Classifier

func Classifier(format string, rawData *bytes.Buffer, path string, kind string) error

func Exporter

func Exporter(format string, path string, kind string, component interface{}) error

func ValidateAction

func ValidateAction(action string) error

func ValidateZoneID

func ValidateZoneID(zoneID string) error

Types

type AWSRecords

type AWSRecords struct {
	ResourceRecordSets []ResourceRecordSets `json:"ResourceRecordSets"`
}

func ParseFile

func ParseFile(filePath string) (AWSRecords, error)

type CResourceRecordSets

type CResourceRecordSets struct {
	Name string `json:"Name"`
	Type string `json:"Type"`
}

type ChangeJson

type ChangeJson struct {
	Comment string    `json:"Comment"`
	Changes []Changes `json:"Changes"`
}

type Changes

type Changes struct {
	Action             string                `json:"Action"`
	ResourceRecordSets []CResourceRecordSets `json:"ResourceRecordSets"`
}

func ProcessData

func ProcessData(action string, data []ResourceRecordSets, filters ...string) Changes

type JSONFile

type JSONFile struct {
	Format   string
	FilePath string
	Data     []byte
}

func (JSONFile) Export

func (j JSONFile) Export() error

func (*JSONFile) RecordsFile

func (j *JSONFile) RecordsFile(awsRec AWSRecords) (AWSRecords, error)

type Load

type Load interface {
	RecordsFile() AWSRecords
}

type ResourceRecordSets

type ResourceRecordSets struct {
	Name            string            `json:"Name"`
	Type            string            `json:"Type"`
	TTL             int               `json:"TTL"`
	ResourceRecords []ResourceRecords `json:"ResourceRecords"`
}

type ResourceRecords

type ResourceRecords struct {
	Value string `json:"Value"`
}

type YAMLFile

type YAMLFile struct {
	Format   string
	FilePath string
	Data     []byte
}

func (YAMLFile) Export

func (y YAMLFile) Export()

Jump to

Keyboard shortcuts

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