This commit is contained in:
Jay 2019-05-02 18:08:39 +08:00
parent 6c69e9871f
commit 99a0f794cb
1 changed files with 21 additions and 5 deletions

View File

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