Documentation
¶
Index ¶
- Constants
- func BlobIsManifest(blob Blob) bool
- func MakeDescriptorForBlob(b Blob) manifest.Schema2Descriptor
- func NewDataBlobFromBase64(text string) dataBlob
- func WriteBlob(blob Blob, w http.ResponseWriter)
- type Blob
- type Registry
- type Repo
- func (r *Repo) AddBlob(b Blob) manifest.Schema2Descriptor
- func (r *Repo) AddImage(layers []Blob, arches []string, comment string, ctime time.Time) string
- func (r *Repo) AddManifest(mf *manifest.Schema2) manifest.Schema2Descriptor
- func (r *Repo) AddObject(v interface{}, mediaType string) manifest.Schema2Descriptor
- func (r *Repo) AddTag(checksum, tag string)
- func (r *Repo) ServeBlob(ref string, w http.ResponseWriter, req *http.Request)
- func (r *Repo) ServeManifest(ref string, w http.ResponseWriter, req *http.Request)
Constants ¶
View Source
const RootLayer = `` /* 308-byte string literal not displayed */
A base64 encoded gzipped tarball with the following contents:
-rw-r--r-- root/root 12 2021-09-17 12:32 hello.txt (Contents: "Hello World") drwxr-xr-x root/root 0 1970-01-01 01:00 subdir/ -rw-r--r-- root/root 8 2021-09-17 12:32 subdir/file.txt (Contents: "osbuild") -rw-r--r-- root/root 7 2021-09-17 12:32 world.txt (Contents: "hello!")
Can be used with NewDataBlobFromBase64 to create a data blob for Repo.AddImage.
Variables ¶
This section is empty.
Functions ¶
func BlobIsManifest ¶
func MakeDescriptorForBlob ¶
func MakeDescriptorForBlob(b Blob) manifest.Schema2Descriptor
func NewDataBlobFromBase64 ¶
func NewDataBlobFromBase64(text string) dataBlob
func WriteBlob ¶
func WriteBlob(blob Blob, w http.ResponseWriter)
Types ¶
type Blob ¶
type Blob interface { GetSize() int64 GetMediaType() string GetDigest() digest.Digest Reader() io.Reader }
Blob interface
type Registry ¶
type Registry struct {
// contains filtered or unexported fields
}
type Repo ¶
type Repo struct {
// contains filtered or unexported fields
}
Repo //
func (*Repo) AddManifest ¶
func (r *Repo) AddManifest(mf *manifest.Schema2) manifest.Schema2Descriptor
func (*Repo) AddObject ¶
func (r *Repo) AddObject(v interface{}, mediaType string) manifest.Schema2Descriptor
func (*Repo) ServeManifest ¶
Click to show internal directories.
Click to hide internal directories.