Documentation ¶
Index ¶
- func Classifier(format string, rawData *bytes.Buffer, path string, kind string) error
- func Exporter(format string, path string, kind string, component interface{}) error
- func ValidateAction(action string) error
- func ValidateZoneID(zoneID string) error
- type AWSRecords
- type CResourceRecordSets
- type ChangeJson
- type Changes
- type JSONFile
- type Load
- type ResourceRecordSets
- type ResourceRecords
- type YAMLFile
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Classifier ¶
func ValidateAction ¶
func ValidateZoneID ¶
Types ¶
type AWSRecords ¶
type AWSRecords struct {
ResourceRecordSets []ResourceRecordSets `json:"ResourceRecordSets"`
}
func ParseFile ¶
func ParseFile(filePath string) (AWSRecords, error)
type CResourceRecordSets ¶
type ChangeJson ¶
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 ¶
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"`
}
Click to show internal directories.
Click to hide internal directories.