(args []string, zone *route53types.HostedZone)
| 590 | } |
| 591 | |
| 592 | func parseRecordList(args []string, zone *route53types.HostedZone) []dns.RR { |
| 593 | records := []dns.RR{} |
| 594 | origin := fmt.Sprintf("$ORIGIN %s\n", *zone.Name) |
| 595 | for _, text := range args { |
| 596 | record, err := dns.NewRR(origin + text) |
| 597 | fatalIfErr(err) |
| 598 | records = append(records, record) |
| 599 | } |
| 600 | return records |
| 601 | } |
| 602 | |
| 603 | func createRecords(ctx context.Context, args createArgs) { |
| 604 | zone := lookupZone(ctx, args.name) |
no test coverage detected