github.com/juju/juju@v0.0.0-20240430160146-1752b71fcf00/charmhub/transport/find.go (about) 1 // Copyright 2020 Canonical Ltd. 2 // Licensed under the AGPLv3, see LICENCE file for details. 3 4 package transport 5 6 type FindResponses struct { 7 Results []FindResponse `json:"results,omitempty"` 8 ErrorList APIErrors `json:"error-list,omitempty"` 9 } 10 11 type FindResponse struct { 12 Type Type `json:"type"` 13 ID string `json:"id"` 14 Name string `json:"name"` 15 Entity Entity `json:"result,omitempty"` 16 DefaultRelease FindChannelMap `json:"default-release,omitempty"` 17 } 18 19 type FindChannelMap struct { 20 Channel Channel `json:"channel,omitempty"` 21 Revision FindRevision `json:"revision,omitempty"` 22 } 23 24 // FindRevision is different from InfoRevision. It is missing 25 // ConfigYAML and MetadataYAML 26 type FindRevision struct { 27 CreatedAt string `json:"created-at"` 28 Download Download `json:"download"` 29 Bases []Base `json:"bases"` 30 Revision int `json:"revision"` 31 Version string `json:"version"` 32 }