github.com/juju/juju@v0.0.0-20240430160146-1752b71fcf00/charmhub/transport/resources.go (about) 1 // Copyright 2020 Canonical Ltd. 2 // Licensed under the AGPLv3, see LICENCE file for details. 3 4 package transport 5 6 // ResourcesResponse defines a series of typed responses for the list resource 7 // revisions query. 8 type ResourcesResponse struct { 9 Revisions []ResourceRevision `json:"revisions"` 10 } 11 12 // ResourceRevision defines a typed response for the list resource 13 // revisions query. 14 type ResourceRevision struct { 15 Download Download `json:"download"` 16 Description string `json:"description"` 17 Name string `json:"name"` 18 Filename string `json:"filename"` 19 Revision int `json:"revision"` 20 Type string `json:"type"` 21 }