Documentation ¶
Index ¶
- Variables
- func LoadIndexFromFile(path string) (content.Provider, error)
- type Index
- func (bi *Index) Clone() *Index
- func (bi *Index) Merge(bim *Index)
- func (bi *Index) ReaderAt(ctx context.Context, desc ocispec.Descriptor) (content.ReaderAt, error)
- func (bi *Index) Rel(rel string) (*Index, error)
- func (bi *Index) WriteTo(writer io.Writer) error
- func (bi *Index) WriteToFile(path string) error
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrNotBlobIndex = fmt.Errorf("provider not a blob index")
)
Functions ¶
Types ¶
type Index ¶
type Index struct {
Blobs map[digest.Digest]string
}
BlobIndex is a mapping from digest to a filepath
func (*Index) Rel ¶
Rel creates a new index with all paths relative to the provided path.
This is used in Bazel when using path vs short_path.
func (*Index) WriteToFile ¶
WriteToFile writes the index to a file.
Click to show internal directories.
Click to hide internal directories.