From 99a0f794cb5ff37c2d2d7f0987674f84821f144a Mon Sep 17 00:00:00 2001 From: Jay Date: Thu, 2 May 2019 18:08:39 +0800 Subject: [PATCH] add func --- module/apis/aws/aws.go | 26 +++++++++++++++++++++----- 1 file changed, 21 insertions(+), 5 deletions(-) diff --git a/module/apis/aws/aws.go b/module/apis/aws/aws.go index 2b187ec..b9e6e7a 100644 --- a/module/apis/aws/aws.go +++ b/module/apis/aws/aws.go @@ -12,15 +12,18 @@ import ( // AWSClient - type AWSClient struct { - Session *session.Session - Config *aws.Config - Services struct { - R53 *route53.Route53 - } + Session *session.Session + Config *aws.Config + R53 *route53.Route53 } var client *AWSClient +// Error messages +var ( + ErrNoClient = errors.New("client not init") +) + // NewAWS - func NewAWS() error { conf := config.GetConfig() @@ -41,6 +44,19 @@ func NewAWS() error { client = &AWSClient{} client.Session = sess client.Config = awsConf + client.R53 = route53.New(client.Session) return nil } + +// ZoneData - +type ZoneData struct { + ID *string + Name string +} + +// QueryDomain - +func QueryDomain() (*ZoneData, error) { + + return nil, nil +}