Documentation
¶
Overview ¶
Package dns provides a minimal Route53 REST client (no AWS SDK).
This client issues AWS SigV4-signed HTTP requests directly to the Route53 API (version 2013-04-01) for the two operations dddns needs: listing a single A record set and upserting an A record. The public signatures match the prior SDK-backed implementation so callers are unaffected.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Route53Client ¶
type Route53Client struct {
// contains filtered or unexported fields
}
Route53Client issues signed HTTP requests to the Route53 REST API.
func NewFromConfig ¶ added in v0.2.0
NewFromConfig constructs a Route53Client from a fully-populated dddns Config.
func NewRoute53Client ¶
func NewRoute53Client(_ context.Context, _, accessKey, secretKey, hostedZoneID, hostname string, ttl int64) (*Route53Client, error)
NewRoute53Client creates a Route53 client with the given static credentials.
The region parameter is retained for API compatibility with earlier callers; Route53 is a global service so SigV4 signing always uses us-east-1 regardless of what the caller passes.
ctx is accepted for API symmetry with the prior SDK-based constructor but is not currently used — construction is purely local (no network calls).
func (*Route53Client) GetCurrentIP ¶
func (r *Route53Client) GetCurrentIP(ctx context.Context) (string, error)
GetCurrentIP retrieves the current A record for the configured hostname.