index

package
v0.0.0-...-6f8bca6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 31, 2023 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	EntryFilename = "entry.json"
)

Variables

This section is empty.

Functions

func DigestToPath

func DigestToPath(digest utils.Digest) string

Split the digest into its prefix, and then two character chunks, separated by slashes, so that each directory contains at most 255 entries.

Types

type IndexEntry

type IndexEntry struct {
	MediaType string   `json:"mediaType"`
	Digest    string   `json:"digest"`
	Size      int      `json:"size"`
	URLS      []string `json:"urls"`
}

Vaguely similar to https://github.com/opencontainers/image-spec/blob/main/descriptor.md

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL