Documentation ¶
Index ¶
- type Alias
- type AuthRequestIDResp
- type CatalogItem
- type CatalogPayload
- type CatalogResults
- type ErrorListEntry
- type Nonce
- type Payload
- type SearchV2Results
- type Section
- type SectionResults
- type Session
- type SnapActionExtra
- type SnapActionResult
- type SnapActionResultError
- type SnapActionResultList
- type SnapActionResultListRedux
- type SnapRelease
- type StoreSearchChannelSnap
- type StoreSearchResult
- type StoreSnap
- type StoreSnapDelta
- type StoreSnapDownload
- type StoreSnapMedia
- type Unscanned
- type Upload
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuthRequestIDResp ¶
type AuthRequestIDResp struct {
RequestID string `json:"request-id"`
}
type CatalogItem ¶
type CatalogPayload ¶
type CatalogPayload struct {
Items []CatalogItem `json:"clickindex:package"`
}
type CatalogResults ¶
type CatalogResults struct {
Payload CatalogPayload `json:"_embedded"`
}
type ErrorListEntry ¶
type SearchV2Results ¶
type SearchV2Results struct { Results []StoreSearchResult `json:"results"` ErrorList []struct { Code string `json:"code"` Message string `json:"message"` } `json:"error-list"` }
type SectionResults ¶
type SectionResults struct {
Payload Payload `json:"_embedded"`
}
type SnapActionExtra ¶
type SnapActionExtra struct {
Releases []SnapRelease `json:"releases"`
}
type SnapActionResult ¶
type SnapActionResult struct { Result string `json:"result"` // For snap InstanceKey string `json:"instance-key"` SnapID string `json:"snap-id,omitempty"` Name string `json:"name,omitempty"` Snap *StoreSnap `json:"snap"` EffectiveChannel string `json:"effective-channel,omitempty"` RedirectChannel string `json:"redirect-channel,omitempty"` Error SnapActionResultError `json:"error"` // For assertions Key string `json:"key"` AssertionStreamURLs []string `json:"assertion-stream-urls"` ErrorList []ErrorListEntry `json:"error-list"` }
type SnapActionResultError ¶
type SnapActionResultError struct { Code string `json:"code"` Message string `json:"message"` Extra SnapActionExtra `json:"extra"` }
type SnapActionResultList ¶
type SnapActionResultList struct { Results []*SnapActionResult `json:"results"` ErrorList []ErrorListEntry `json:"error-list"` }
type SnapActionResultListRedux ¶
type SnapActionResultListRedux struct { Results []*store2.SnapActionResult `json:"results"` ErrorList []ErrorListEntry `json:"error-list"` }
type SnapRelease ¶
type StoreSearchChannelSnap ¶
storeSearchChannelSnap is the snap revision plus a channel name
type StoreSearchResult ¶
type StoreSearchResult struct { Revision StoreSearchChannelSnap `json:"revision"` Snap StoreSnap `json:"snap"` Name string `json:"name"` SnapID string `json:"snap-id"` }
storeSearchResult is the result of v2/find calls
type StoreSnap ¶
type StoreSnap struct { Architectures []string `json:"architectures"` Base *string `json:"base"` Confinement string `json:"confinement"` Contact string `json:"contact"` CreatedAt string `json:"created-at"` // revision timestamp Description string `json:"description"` Download StoreSnapDownload `json:"download"` Epoch snap.Epoch `json:"epoch"` License string `json:"license"` Name string `json:"name"` Prices map[string]string `json:"prices"` // currency->price, free: {"USD": "0"} Private bool `json:"private"` Publisher snap.StoreAccount `json:"publisher"` Revision int `json:"revision"` // store revisions are ints starting at 1 SnapID string `json:"snap-id"` SnapYAML string `json:"snap-yaml"` // optional Summary string `json:"summary"` Title string `json:"title"` Type snap.Type `json:"type"` Version string `json:"version"` Website string `json:"website"` StoreURL string `json:"store-url"` // media Media []StoreSnapMedia `json:"media"` CommonIDs []string `json:"common-ids"` }
storeSnap holds the information sent as JSON by the store for a snap.
type StoreSnapDelta ¶
type StoreSnapDownload ¶
type StoreSnapDownload struct { Sha3_384 string `json:"sha3-384"` Size int64 `json:"size"` URL string `json:"url"` Deltas []StoreSnapDelta `json:"deltas"` }
type StoreSnapMedia ¶
Click to show internal directories.
Click to hide internal directories.