Documentation
¶
Index ¶
- type SimpleStreams
- func (s *SimpleStreams) Download(image string, fileType string, target string, progress func(int64, int64)) error
- func (s *SimpleStreams) ExportImage(image string, target string) (string, error)
- func (s *SimpleStreams) GetAlias(name string) (*api.ImageAliasesEntry, error)
- func (s *SimpleStreams) GetFiles(fingerprint string) (map[string]SimpleStreamsFile, error)
- func (s *SimpleStreams) GetImage(fingerprint string) (*api.Image, error)
- func (s *SimpleStreams) ListAliases() ([]api.ImageAliasesEntry, error)
- func (s *SimpleStreams) ListImages() ([]api.Image, error)
- type SimpleStreamsFile
- type SimpleStreamsIndex
- type SimpleStreamsIndexStream
- type SimpleStreamsManifest
- type SimpleStreamsManifestProduct
- type SimpleStreamsManifestProductVersion
- type SimpleStreamsManifestProductVersionItem
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SimpleStreams ¶
type SimpleStreams struct {
// contains filtered or unexported fields
}
func NewClient ¶
func NewClient(url string, httpClient http.Client, useragent string) *SimpleStreams
func (*SimpleStreams) ExportImage ¶
func (s *SimpleStreams) ExportImage(image string, target string) (string, error)
func (*SimpleStreams) GetAlias ¶
func (s *SimpleStreams) GetAlias(name string) (*api.ImageAliasesEntry, error)
func (*SimpleStreams) GetFiles ¶
func (s *SimpleStreams) GetFiles(fingerprint string) (map[string]SimpleStreamsFile, error)
func (*SimpleStreams) GetImage ¶
func (s *SimpleStreams) GetImage(fingerprint string) (*api.Image, error)
func (*SimpleStreams) ListAliases ¶
func (s *SimpleStreams) ListAliases() ([]api.ImageAliasesEntry, error)
func (*SimpleStreams) ListImages ¶
func (s *SimpleStreams) ListImages() ([]api.Image, error)
type SimpleStreamsFile ¶
type SimpleStreamsIndex ¶
type SimpleStreamsIndex struct {
Format string `json:"format"`
Index map[string]SimpleStreamsIndexStream `json:"index"`
Updated string `json:"updated"`
}
type SimpleStreamsManifest ¶
type SimpleStreamsManifestProduct ¶
type SimpleStreamsManifestProduct struct {
Aliases string `json:"aliases"`
Architecture string `json:"arch"`
OperatingSystem string `json:"os"`
Release string `json:"release"`
ReleaseCodename string `json:"release_codename"`
ReleaseTitle string `json:"release_title"`
Supported bool `json:"supported"`
SupportedEOL string `json:"support_eol"`
Version string `json:"version"`
Versions map[string]SimpleStreamsManifestProductVersion `json:"versions"`
}
type SimpleStreamsManifestProductVersion ¶
type SimpleStreamsManifestProductVersion struct {
PublicName string `json:"pubname"`
Label string `json:"label"`
Items map[string]SimpleStreamsManifestProductVersionItem `json:"items"`
}
type SimpleStreamsManifestProductVersionItem ¶
type SimpleStreamsManifestProductVersionItem struct {
Path string `json:"path"`
FileType string `json:"ftype"`
HashMd5 string `json:"md5"`
HashSha256 string `json:"sha256"`
APOLLOHashSha256 string `json:"combined_sha256"`
APOLLOHashSha256RootXz string `json:"combined_rootxz_sha256"`
APOLLOHashSha256SquashFs string `json:"combined_squashfs_sha256"`
Size int64 `json:"size"`
DeltaBase string `json:"delta_base"`
}
Click to show internal directories.
Click to hide internal directories.