updated to v2 api
This commit is contained in:
13
manifest.go
13
manifest.go
@ -11,13 +11,18 @@ type File struct {
|
||||
Hash string `json:"Hash"`
|
||||
Size int `json:"Size"`
|
||||
Custom bool `json:"Custom"`
|
||||
URL string `json:"URL"`
|
||||
Origin string `json:"Origin"`
|
||||
Urls struct {
|
||||
Digitalocean string `json:"digitalocean"`
|
||||
Cloudflare string `json:"cloudflare"`
|
||||
None string `json:"none"`
|
||||
} `json:"Urls"`
|
||||
}
|
||||
|
||||
type Manifest struct {
|
||||
Version string `json:"Version"`
|
||||
Files []File `json:"Files"`
|
||||
Version string `json:"Version"`
|
||||
UID string `json:"Uid"`
|
||||
Files []File `json:"Files"`
|
||||
CheckedAt string `json:"checked_at"`
|
||||
}
|
||||
|
||||
func getManifest() (*Manifest, error) {
|
||||
|
Reference in New Issue
Block a user