| 1 | package blobs |
| 2 | |
| 3 | type AccessTier string |
| 4 | |
| 5 | var ( |
| 6 | Archive AccessTier = "Archive" |
| 7 | Cool AccessTier = "Cool" |
| 8 | Hot AccessTier = "Hot" |
| 9 | ) |
| 10 | |
| 11 | type ArchiveStatus string |
| 12 | |
| 13 | var ( |
| 14 | None ArchiveStatus = "" |
| 15 | RehydratePendingToCool ArchiveStatus = "rehydrate-pending-to-cool" |
| 16 | RehydratePendingToHot ArchiveStatus = "rehydrate-pending-to-hot" |
| 17 | ) |
| 18 | |
| 19 | type BlockListType string |
| 20 | |
| 21 | var ( |
| 22 | All BlockListType = "all" |
| 23 | Committed BlockListType = "committed" |
| 24 | Uncommitted BlockListType = "uncommitted" |
| 25 | ) |
| 26 | |
| 27 | type Block struct { |
| 28 | // The base64-encoded Block ID |
| 29 | Name string `xml:"Name"` |
| 30 | |
| 31 | // The size of the Block in Bytes |
| 32 | Size int64 `xml:"Size"` |
| 33 | } |
| 34 | |
| 35 | type BlobType string |
| 36 | |
| 37 | var ( |
| 38 | AppendBlob BlobType = "AppendBlob" |
| 39 | BlockBlob BlobType = "BlockBlob" |
| 40 | PageBlob BlobType = "PageBlob" |
| 41 | ) |
| 42 | |
| 43 | type CommittedBlocks struct { |
| 44 | Blocks []Block `xml:"Block"` |
| 45 | } |
| 46 | |
| 47 | type CopyStatus string |
| 48 | |
| 49 | var ( |
| 50 | Aborted CopyStatus = "aborted" |
| 51 | Failed CopyStatus = "failed" |
| 52 | Pending CopyStatus = "pending" |
| 53 | Success CopyStatus = "success" |
| 54 | ) |
| 55 | |
| 56 | type LeaseDuration string |
| 57 | |
| 58 | var ( |
| 59 | Fixed LeaseDuration = "fixed" |
| 60 | Infinite LeaseDuration = "infinite" |
| 61 | ) |
| 62 | |
| 63 | type LeaseState string |
| 64 | |
| 65 | var ( |
| 66 | Available LeaseState = "available" |
| 67 | Breaking LeaseState = "breaking" |
| 68 | Broken LeaseState = "broken" |
| 69 | Expired LeaseState = "expired" |
| 70 | Leased LeaseState = "leased" |
| 71 | ) |
| 72 | |
| 73 | type LeaseStatus string |
| 74 | |
| 75 | var ( |
| 76 | Locked LeaseStatus = "locked" |
| 77 | Unlocked LeaseStatus = "unlocked" |
| 78 | ) |
| 79 | |
| 80 | type UncommittedBlocks struct { |
| 81 | Blocks []Block `xml:"Block"` |
| 82 | } |