-
Notifications
You must be signed in to change notification settings - Fork 2
/
response.go
34 lines (29 loc) · 1.19 KB
/
response.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
package bunnystorage
import "net/http"
// Response represents a response from the BunnyCDN Storage API.
type Response struct {
// Header contains the response headers.
Header http.Header
// Body contains the response body as a byte slice.
Body []byte
// Status is the HTTP status code of the response.
Status int
}
// Object represents a file or directory in the BunnyCDN Storage API.
type Object struct {
UserID string `json:"UserId,omitempty"`
ContentType string `json:"ContentType,omitempty"`
Path string `json:"Path,omitempty"`
ObjectName string `json:"ObjectName,omitempty"`
ReplicatedZones string `json:"ReplicatedZones,omitempty"`
LastChanged string `json:"LastChanged,omitempty"`
StorageZoneName string `json:"StorageZoneName,omitempty"`
Checksum string `json:"Checksum,omitempty"`
DateCreated string `json:"DateCreated,omitempty"`
GUID string `json:"Guid,omitempty"`
Length int `json:"Length,omitempty"`
ServerID int `json:"ServerId,omitempty"`
StorageZoneID int `json:"StorageZoneId,omitempty"`
ArrayNumber int `json:"ArrayNumber,omitempty"`
IsDirectory bool `json:"IsDirectory,omitempty"`
}