| 1 | package shares |
| 2 | |
| 3 | type SignedIdentifier struct { |
| 4 | Id string `xml:"Id"` |
| 5 | AccessPolicy AccessPolicy `xml:"AccessPolicy"` |
| 6 | } |
| 7 | |
| 8 | type AccessPolicy struct { |
| 9 | Start string `xml:"Start"` |
| 10 | Expiry string `xml:"Expiry"` |
| 11 | Permission string `xml:"Permission"` |
| 12 | } |
| 13 | |
| 14 | type ShareProtocol string |
| 15 | |
| 16 | const ( |
| 17 | // SMB indicates the share can be accessed by SMBv3.0, SMBv2.1 and REST. |
| 18 | SMB ShareProtocol = "SMB" |
| 19 | |
| 20 | // NFS indicates the share can be accessed by NFSv4.1. A premium account is required for this option. |
| 21 | NFS ShareProtocol = "NFS" |
| 22 | ) |