Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ChannelMapItems ¶
type ChannelMapItems struct { Architecture string `json:"architecture"` // The channel name, including "latest/" for the latest track. Channel string `json:"channel"` // The date when this release expires, in RFC 3339 format. If null, the release does not expire. ExpirationDate interface{} `json:"expiration-date"` Progressive *Progressive `json:"progressive"` Revision int `json:"revision"` // The date when this release was made, in RFC 3339 format. When string `json:"when"` }
ChannelMapItems
func (*ChannelMapItems) MarshalJSON ¶
func (strct *ChannelMapItems) MarshalJSON() ([]byte, error)
func (*ChannelMapItems) UnmarshalJSON ¶
func (strct *ChannelMapItems) UnmarshalJSON(b []byte) error
type ChannelsItems ¶
type ChannelsItems struct { // The branch name for this channel, can be null. Branch interface{} `json:"branch"` // The name of the channel that this channel would fall back to if there were no releases in it. If null, this channel has no fallback channel. Fallback interface{} `json:"fallback"` // The channel name, including "latest/" for the latest track. Name string `json:"name"` // The risk name for this channel. Risk string `json:"risk"` // The track name for this channel. Track string `json:"track"` }
ChannelsItems A list of channels and their metadata for the requested snap.
func (*ChannelsItems) MarshalJSON ¶
func (strct *ChannelsItems) MarshalJSON() ([]byte, error)
func (*ChannelsItems) UnmarshalJSON ¶
func (strct *ChannelsItems) UnmarshalJSON(b []byte) error
type Epoch ¶
type Epoch struct { Read interface{} `json:"read"` Write interface{} `json:"write"` }
Epoch
func (*Epoch) MarshalJSON ¶
func (*Epoch) UnmarshalJSON ¶
type Progressive ¶
type Progressive struct { CurrentPercentage interface{} `json:"current-percentage"` Paused interface{} `json:"paused"` Percentage interface{} `json:"percentage"` }
Progressive
func (*Progressive) MarshalJSON ¶
func (strct *Progressive) MarshalJSON() ([]byte, error)
func (*Progressive) UnmarshalJSON ¶
func (strct *Progressive) UnmarshalJSON(b []byte) error
type Publisher ¶
type Publisher struct { DisplayName string `json:"display-name,omitempty"` // The Account ID for this user. Id string `json:"id,omitempty"` Username string `json:"username,omitempty"` }
Publisher Publisher details for this snap.
type RevisionsItems ¶
type RevisionsItems struct { Architectures []string `json:"architectures"` Attributes *Attributes `json:"attributes,omitempty"` Base string `json:"base,omitempty"` BuildUrl interface{} `json:"build-url,omitempty"` Confinement string `json:"confinement,omitempty"` CreatedAt string `json:"created-at,omitempty"` Epoch *Epoch `json:"epoch,omitempty"` Grade string `json:"grade,omitempty"` Revision int `json:"revision"` Sha3384 string `json:"sha3-384,omitempty"` Size int `json:"size,omitempty"` Version string `json:"version"` }
RevisionsItems
func (*RevisionsItems) MarshalJSON ¶
func (strct *RevisionsItems) MarshalJSON() ([]byte, error)
func (*RevisionsItems) UnmarshalJSON ¶
func (strct *RevisionsItems) UnmarshalJSON(b []byte) error
type Root ¶
type Root struct { ChannelMap []*ChannelMapItems `json:"channel-map"` Revisions []*RevisionsItems `json:"revisions"` // Metadata about the requested snap. Snap *Snap `json:"snap"` }
Root
func (*Root) MarshalJSON ¶
func (*Root) UnmarshalJSON ¶
type Snap ¶
type Snap struct { // The list of most relevant channels for this snap. Branches are only included if there is a release for it. Channels []*ChannelsItems `json:"channels"` // The default track name for this snap. If no default track is set, this value is null. DefaultTrack interface{} `json:"default-track,omitempty"` // The snap ID for this snap package. Id string `json:"id,omitempty"` // The snap package name. Name string `json:"name"` // Whether this snap is private or not. Private bool `json:"private,omitempty"` // Publisher details for this snap. Publisher *Publisher `json:"publisher,omitempty"` // The snap title. Title string `json:"title,omitempty"` // An ordered list of most relevant tracks for this snap. Tracks []*TracksItems `json:"tracks,omitempty"` }
Snap Metadata about the requested snap.
func (*Snap) MarshalJSON ¶
func (*Snap) UnmarshalJSON ¶
type TracksItems ¶
type TracksItems struct { // The track creation date, in ISO 8601 format. For the "latest" track, the creation date is null. CreationDate interface{} `json:"creation-date"` // The track name. Name string `json:"name"` // The status of this track. Status string `json:"status,omitempty"` // A Python regex to validate the versions being released to this track. If null, no validation is enforced. VersionPattern interface{} `json:"version-pattern,omitempty"` }
TracksItems An ordered list of tracks and their metadata for this snap.
func (*TracksItems) MarshalJSON ¶
func (strct *TracksItems) MarshalJSON() ([]byte, error)
func (*TracksItems) UnmarshalJSON ¶
func (strct *TracksItems) UnmarshalJSON(b []byte) error
Click to show internal directories.
Click to hide internal directories.