Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ImportReaderFS ¶
type ImportReaderFS struct {
Folder string
FS billy.Filesystem
}
type Package ¶
type Package struct {
Author string `json:"author"`
Type string `json:"type"`
Version string `json:"version"`
Template *snd.Template `json:"template"`
DataSource *snd.DataSource `json:"dataSource"`
Generator *snd.Generator `json:"generator"`
Entries []snd.Entry `json:"entries"`
}
Package represents a variant between Template, DataSource and Generator fetched from git.
type PublicEntry ¶
type PublicEntry struct {
Author string `json:"author"`
Contact string `json:"contact"`
Repos []string `json:"repos"`
}
PublicEntry represents an entry in the public package repository by some Author. One entry can contain multiple git repos where packages for S&D are stored.
type PublicList ¶ added in v0.6.1
type PublicList struct {
Name string `json:"name"`
Author string `json:"author"`
Description string `json:"description"`
Entries []PublicEntry `json:"entries"`
}
PublicList represents a curated list of public package entries.
func GetPackages ¶
func GetPackages(url string) (PublicList, error)
GetPackages fetches a PublicList by URL. It expects a JSON encoded file.
Click to show internal directories.
Click to hide internal directories.