Documentation
¶
Index ¶
- Constants
- Variables
- func QueryOCIRegistryIndex(uri, ref, os, tag string) (*container.Spec, error)
- func ResolveAll(sources map[string][]SourceSpec) (map[string][]Spec, error)
- type OCIManifest
- type Reference
- type Registry
- type RegistryType
- type ResponseImage
- type ResponseImageList
- type ResponseRepository
- type ResponseRoot
- type SourceSpec
- type Spec
Constants ¶
View Source
const (
// Flatpak only uses the static endpoint
ENDPOINT_STATIC = "/index/static"
)
Variables ¶
View Source
var ErrUnknownRegistryType = errors.New("unknown registry type")
Functions ¶
func QueryOCIRegistryIndex ¶
func ResolveAll ¶
func ResolveAll(sources map[string][]SourceSpec) (map[string][]Spec, error)
Types ¶
type OCIManifest ¶
type OCIManifest struct {
Config *struct {
Digest string `json:"digest,omitempty"`
} `json:"config,omitempty"`
}
Deserialization of an OCI Manifest, only defines the fields necessary for us to get what we need; which is the digest of the config object.
type Reference ¶
func NewReferenceFromString ¶
type Registry ¶
type Registry struct {
RemoteName string
Type RegistryType
URI string
}
func NewRegistryFromURI ¶
type RegistryType ¶
type RegistryType uint
const ( REGISTRY_TYPE_UNKNOWN RegistryType = iota REGISTRY_TYPE_OCI )
type ResponseImage ¶
type ResponseImageList ¶
type ResponseImageList struct{}
type ResponseRepository ¶
type ResponseRepository struct {
Name string `json:"Name"`
Images []*ResponseImage `json:"Images"`
Lists []ResponseImageList `json:"Lists"`
}
type ResponseRoot ¶
type ResponseRoot struct {
Registry string `json:"Registry"`
Results []ResponseRepository `json:"Results"`
}
type SourceSpec ¶
Click to show internal directories.
Click to hide internal directories.