Versions in this module Expand all Collapse all v0 v0.0.1 Sep 18, 2018 Changes in this version type Blob + GetMediaType func() string + type ImageArchiveManifest struct + Config string + Layers []string + func NewImageArchiveManifest(manifestFH io.Reader) (a *ImageArchiveManifest, err error) type NoncryptedBlob + MediaType string + func (b *NoncryptedBlob) GetMediaType() string v0.0.0 Sep 17, 2018 Changes in this version + const MediaTypeForeignLayer + const MediaTypeImageConfig + const MediaTypeLayer + const MediaTypeManifest + const MediaTypePluginConfig + const MediaTypeUncompressedLayer + type ArchiveManifest struct + Config string + Layers []string + RepoTags []string + type Blob interface + GetContentType func() string + GetDigest func() digest.Digest + GetFilename func() string + GetSize func() int64 + ReadCloser func() (io.ReadCloser, error) + SetFilename func(filename string) + type CompressedBlob interface + Decompress func(outfile string) (DecompressedBlob, error) + type DecConfig interface + Encrypt func(key, nonce, salt []byte) (EncConfig, error) + func NewDecConfig() DecConfig + type DecompressedBlob interface + Compress func(outfile string) (CompressedBlob, error) + func NewPlainConfig(filename string, d digest.Digest, size int64) DecompressedBlob + func NewPlainLayer(filename string, d digest.Digest, size int64) DecompressedBlob + type DecryptedBlob interface + EncryptBlob func(opts *crypto.Opts, outfile string) (EncryptedBlob, error) + func NewConfig(filename string, d digest.Digest, size int64, dec *crypto.DeCrypto) DecryptedBlob + func NewLayer(filename string, d digest.Digest, size int64, dec *crypto.DeCrypto) DecryptedBlob + type EncConfig interface + Decrypt func(key, nonce, salt []byte, opts *crypto.Opts) (DecConfig, error) + type EncryptedBlob interface + DecryptBlob func(opts *crypto.Opts, outfile string) (DecryptedBlob, error) + DecryptKey func(opts *crypto.Opts) (KeyDecryptedBlob, error) + type ImageManifest struct + Config Blob + DirName string + Layers []Blob + MediaType string + SchemaVersion int + func NewManifest(ref names.NamedTaggedRepository, opts *crypto.Opts, tempDir string) (manifest *ImageManifest, err error) + func (m *ImageManifest) Decrypt(ref names.NamedTaggedRepository, opts *crypto.Opts) (out *ImageManifest, err error) + func (m *ImageManifest) DecryptKeys(ref names.NamedTaggedRepository, opts *crypto.Opts) (err error) + func (m *ImageManifest) Encrypt(ref names.NamedTaggedRepository, opts *crypto.Opts) (out *ImageManifest, err error) + func (m *ImageManifest) MarshalJSON() (bs []byte, err error) + func (m *ImageManifest) UnmarshalJSON(data []byte) (err error) + type KeyDecryptedBlob interface + DecryptFile func(opts *crypto.Opts, outfile string) (DecryptedBlob, error) + EncryptKey func(opts *crypto.Opts) (EncryptedBlob, error) + type NoncryptedBlob struct + ContentType string + Digest digest.Digest + Filename string + Size int64 + func (b *NoncryptedBlob) Compress(outfile string) (_ CompressedBlob, err error) + func (b *NoncryptedBlob) Decompress(outfile string) (_ DecompressedBlob, err error) + func (b *NoncryptedBlob) GetContentType() string + func (b *NoncryptedBlob) GetDigest() digest.Digest + func (b *NoncryptedBlob) GetFilename() string + func (b *NoncryptedBlob) GetSize() int64 + func (b *NoncryptedBlob) ReadCloser() (io.ReadCloser, error) + func (b *NoncryptedBlob) SetFilename(filename string)