MCPcopy Create free account
hub / github.com/barnybug/cli53 / parseRecordList

Function parseRecordList

commands.go:592–601  ·  view source on GitHub ↗
(args []string, zone *route53types.HostedZone)

Source from the content-addressed store, hash-verified

590}
591
592func 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
603func createRecords(ctx context.Context, args createArgs) {
604 zone := lookupZone(ctx, args.name)

Callers 1

createRecordsFunction · 0.85

Calls 1

fatalIfErrFunction · 0.70

Tested by

no test coverage detected