| 1 | package nas |
| 2 | |
| 3 | import ( |
| 4 | "github.com/denverdino/aliyungo/common" |
| 5 | ) |
| 6 | |
| 7 | const ( |
| 8 | VERSION = "2016-02-29" |
| 9 | END_POINT = "https://nasservice-inner.aliyuncs.com" |
| 10 | DEFAULT_POLICY = "readwrite" |
| 11 | DEFAULT_SQUASHTYPE = "no_squash" |
| 12 | DEFAULT_PRIORITY = "1" |
| 13 | ) |
| 14 | |
| 15 | type Client struct { |
| 16 | common.Client |
| 17 | } |
| 18 | |
| 19 | // NewClient creates a new instance of NAS client |
| 20 | func NewClient(accessKeyId, accessKeySecret string) *Client { |
| 21 | client := &Client{} |
| 22 | client.Init(END_POINT, VERSION, accessKeyId, accessKeySecret) |
| 23 | return client |
| 24 | } |