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 +}