Documentation ¶
Index ¶
- Constants
- Variables
- func GetRawBootstrapFromV6(file io.ReadSeeker) (io.Reader, error)
- func IsNydusManifest(manifest *ocispec.Manifest) bool
- func IsNydusPlatform(platform *ocispec.Platform) bool
- func MarshalToDesc(data interface{}, mediaType string) (*ocispec.Descriptor, []byte, error)
- func PackTargz(src string, name string, compress bool) (io.ReadCloser, error)
- func PackTargzInfo(src, name string, compress bool) (digest.Digest, int64, error)
- func UnpackFile(reader io.Reader, source, target string) error
- type ExcludeNydusPlatformComparer
- type NydusPlatformComparer
Constants ¶
View Source
const ( ManifestOSFeatureNydus = "nydus.remoteimage.v1" MediaTypeNydusBlob = "application/vnd.oci.image.layer.nydus.blob.v1" BootstrapFileNameInLayer = "image/image.boot" LayerAnnotationNydusBlob = "containerd.io/snapshot/nydus-blob" LayerAnnotationNydusBootstrap = "containerd.io/snapshot/nydus-bootstrap" LayerAnnotationNydusRAFSVersion = "containerd.io/snapshot/nydus-rafs-version" LayerAnnotationNydusBlobIDs = "containerd.io/snapshot/nydus-blob-ids" LayerAnnotationNydusBootstrapDigest = "containerd.io/snapshot/nydus-bootstrap-digest" LayerAnnotationNydusFsVersion = "containerd.io/snapshot/nydus-fs-version" LayerAnnotationUncompressed = "containerd.io/uncompressed" )
View Source
const ChunkInfoOffset = 1024 + 128 + 24
View Source
const MaxSuperBlockSize = 8192
View Source
const RafsV6Magic = 0xE0F5E1E2
View Source
const RafsV6SuppeOffset = 1024
Variables ¶
View Source
var NydusAnnotations = []string{LayerAnnotationNydusBlob, LayerAnnotationNydusBootstrap, LayerAnnotationNydusRAFSVersion}
Functions ¶
func GetRawBootstrapFromV6 ¶
func GetRawBootstrapFromV6(file io.ReadSeeker) (io.Reader, error)
func IsNydusManifest ¶
func IsNydusPlatform ¶
func MarshalToDesc ¶
func MarshalToDesc(data interface{}, mediaType string) (*ocispec.Descriptor, []byte, error)
func PackTargzInfo ¶
PackTargzInfo makes .tar(.gz) stream of file named `name` and return digest and size
Types ¶
type ExcludeNydusPlatformComparer ¶
type ExcludeNydusPlatformComparer struct {
platforms.MatchComparer
}
type NydusPlatformComparer ¶
type NydusPlatformComparer struct {
platforms.MatchComparer
}
Click to show internal directories.
Click to hide internal directories.