Documentation ¶
Index ¶
- func ErrCode(msg string, err error) error
- type Route53
- func (r *Route53) CreateRecord(ctx context.Context, zoneID string, record *route53.ResourceRecordSet) (*route53.ChangeInfo, error)
- func (r *Route53) DeleteRecord(ctx context.Context, zoneID string, record *route53.ResourceRecordSet) (*route53.ChangeInfo, error)
- func (r *Route53) GetRecordByName(ctx context.Context, zoneID, name, recordType string) (*route53.ResourceRecordSet, error)
- func (r *Route53) ListRecords(ctx context.Context, zoneID string) ([]*route53.ResourceRecordSet, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Route53 ¶
type Route53 struct { Service route53iface.Route53API Domains map[string]*common.Domain }
Route53 is a wrapper around the aws route53 service with some default config info
func NewSession ¶
NewSession creates a new cloudfront session
func (*Route53) CreateRecord ¶
func (r *Route53) CreateRecord(ctx context.Context, zoneID string, record *route53.ResourceRecordSet) (*route53.ChangeInfo, error)
CreateRecord creates a route53 resource record. This will fail if the record already exists.
func (*Route53) DeleteRecord ¶ added in v0.8.0
func (r *Route53) DeleteRecord(ctx context.Context, zoneID string, record *route53.ResourceRecordSet) (*route53.ChangeInfo, error)
DeleteRecord deletes a route53 resource record.
func (*Route53) GetRecordByName ¶
func (r *Route53) GetRecordByName(ctx context.Context, zoneID, name, recordType string) (*route53.ResourceRecordSet, error)
GetRecordByName gets a route53 resource record by name and by type if one is specified.
func (*Route53) ListRecords ¶
func (r *Route53) ListRecords(ctx context.Context, zoneID string) ([]*route53.ResourceRecordSet, error)
ListRecords lists the route53 resource records for a zone
Click to show internal directories.
Click to hide internal directories.