func (zones Zones) Add(zone dnsprovider.Zone) (dnsprovider.Zone, error) { managedZone := zones.impl.NewManagedZone(zone.Name()) response, err := zones.impl.Create(zones.project(), managedZone).Do() if err != nil { return nil, err } return &Zone{response, &zones}, nil }
func (zones Zones) Add(zone dnsprovider.Zone) (dnsprovider.Zone, error) { dnsName := zone.Name() input := route53.CreateHostedZoneInput{Name: &dnsName} output, err := zones.interface_.service.CreateHostedZone(&input) if err != nil { return nil, err } return &Zone{output.HostedZone, &zones}, nil }
func (zones Zones) Add(zone dnsprovider.Zone) (dnsprovider.Zone, error) { dnsName := zone.Name() callerReference := string(util.NewUUID()) input := route53.CreateHostedZoneInput{Name: &dnsName, CallerReference: &callerReference} output, err := zones.interface_.service.CreateHostedZone(&input) if err != nil { return nil, err } return &Zone{output.HostedZone, &zones}, nil }
func getInvalidRrs(zone dnsprovider.Zone) dnsprovider.ResourceRecordSet { rrsets, _ := zone.ResourceRecordSets() return rrsets.New("www12."+zone.Name(), []string{"rubbish", "rubbish"}, 180, rrstype.A) }
func getExampleRrs(zone dnsprovider.Zone) dnsprovider.ResourceRecordSet { rrsets, _ := zone.ResourceRecordSets() return rrsets.New("www11."+zone.Name(), []string{"10.10.10.10", "169.20.20.20"}, 180, rrstype.A) }