21 lines
398 B
Go
21 lines
398 B
Go
package domain
|
|
|
|
import "fmt"
|
|
|
|
type DomainRecords struct {
|
|
Domain string `json:"root_domain" yaml:"root_domain"`
|
|
Existing []Record `json:"existing" yaml:"existing"`
|
|
ToCreate []Record `json:"to_create" yaml:"to_create"`
|
|
}
|
|
|
|
type Record struct {
|
|
ID string
|
|
Name string
|
|
Content string
|
|
Type string
|
|
}
|
|
|
|
func (r *Record) String() string {
|
|
return fmt.Sprintf("%s:%s", r.Name, r.Type)
|
|
}
|