Documentation ¶
Overview ¶
Code generated for package managedschemas by build.sh DO NOT EDIT. (@generated)
Code generated for package managedschemas by go-bindata DO NOT EDIT. (@generated) sources: ../../../../../../../tmp/tmp.ZllJp6rMjX/dist/managed-schemas/manifest.yml
Index ¶
- Constants
- func Asset(name string) ([]byte, error)
- func AssetDir(name string) ([]string, error)
- func AssetInfo(name string) (os.FileInfo, error)
- func AssetNames() []string
- func DownloadFile(ctx context.Context, client HTTPClient, url string) ([]byte, error)
- func MustAsset(name string) []byte
- func RestoreAsset(dir, name string) error
- func RestoreAssets(dir, name string) error
- type GitHubRepository
- type HTTPClient
- type ManifestEntry
- type Release
- type ReleaseFeed
- type ReleaseFeeder
Constants ¶
const ReleaseVersion = "v0.0.0-test"
Variables ¶
This section is empty.
Functions ¶
func Asset ¶
Asset loads and returns the asset for the given name. It returns an error if the asset could not be found or could not be loaded.
func AssetDir ¶
AssetDir returns the file names below a certain directory embedded in the file by go-bindata. For example if you run go-bindata on data/... and data contains the following hierarchy:
data/ foo.txt img/ a.png b.png
then AssetDir("data") would return []string{"foo.txt", "img"} AssetDir("data/img") would return []string{"a.png", "b.png"} AssetDir("foo.txt") and AssetDir("notexist") would return an error AssetDir("") will return []string{"data"}.
func AssetInfo ¶
AssetInfo loads and returns the asset info for the given name. It returns an error if the asset could not be found or could not be loaded.
func DownloadFile ¶
func MustAsset ¶
MustAsset is like Asset but panics when Asset would return an error. It simplifies safe initialization of global variables.
func RestoreAsset ¶
RestoreAsset restores an asset under the given directory
func RestoreAssets ¶
RestoreAssets restores an asset under the given directory recursively
Types ¶
type GitHubRepository ¶
GitHubRepository fetches release feeds using GitHub Releases API
func (*GitHubRepository) ReleaseFeed ¶
ReleaseFeed implements ReleaseFeeder interface
type ManifestEntry ¶
ManifestEntry describes a managed schema entry from a specific release
func LoadDefaultManifest ¶
func LoadDefaultManifest() ([]ManifestEntry, error)
func LoadReleaseManifestFromURL ¶
func LoadReleaseManifestFromURL(ctx context.Context, manifestURL string) ([]ManifestEntry, error)
LoadReleaseManifestFromURL fetches a release archive from a URL and reads manifest entries.
func MustLoadDefaultManifest ¶
func MustLoadDefaultManifest() []ManifestEntry
func ReadYAMLManifest ¶
func ReadYAMLManifest(release string, r io.Reader) ([]ManifestEntry, error)
ReadYAMLManifest reads entries from a `manifest.yml` file
type Release ¶
type Release struct { Tag string `json:"tag"` Description string `json:"description"` ManifestURL string `json:"manifestURL"` }
Release describes a managed schema release
type ReleaseFeed ¶
type ReleaseFeed []Release
ReleaseFeed is a list of managed schema releases
func (ReleaseFeed) Valid ¶
func (f ReleaseFeed) Valid() ReleaseFeed
Valid filters a release feed keeping only valid entries