Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FetchCharmInfo ¶
FetchCharmInfo fetches the Json representing charm information by querying the Charmhub API
func FetchSnapInfo ¶
FetchSnapInfo fetches the Json representing charm information by querying the Snapcraft API
func GetCharmName ¶
GetCharmName parses a charm name from a Charmhub badge in repo's README
func GetSnapName ¶
GetSnapName tries to parse a snap name from a Snapcraft badge in repo's README
Types ¶
type StoreArtifact ¶
type StoreArtifact struct {
Name string `json:"name"`
Url string `json:"url"`
Releases []*storeRelease `json:"releases"`
Channels []string `json:"channels"`
Tracks []string `json:"tracks"`
}
StoreArtifact holds information about an artifact in a Canonical store (e.g. a snap or charm)
func NewStoreArtifact ¶
func NewStoreArtifact(name string, r *artifactInfoResult) *StoreArtifact
Click to show internal directories.
Click to hide internal directories.