Documentation
¶
Index ¶
- Constants
- Variables
- func Pull(ctx context.Context, resolver remotes.Resolver, ref string, ...) (map[string]Blob, error)
- func Push(ctx context.Context, resolver remotes.Resolver, ref string, ...) error
- type Blob
- type MemoryStore
- func (s *MemoryStore) FetchHandler(fetcher remotes.Fetcher) images.HandlerFunc
- func (s *MemoryStore) Get(desc ocispec.Descriptor) ([]byte, bool)
- func (s *MemoryStore) ReaderAt(ctx context.Context, desc ocispec.Descriptor) (content.ReaderAt, error)
- func (s *MemoryStore) Set(desc ocispec.Descriptor, content []byte)
Constants ¶
View Source
const DefaultBlobMediaType = ocispec.MediaTypeImageLayer
DefaultBlobMediaType specifies the default blob media type
Variables ¶
View Source
var ( ErrNotFound = errors.New("not_found") ErrResolverUndefined = errors.New("resolver_undefined") ErrEmptyBlobs = errors.New("empty_blobs") )
Common errors
Functions ¶
Types ¶
type MemoryStore ¶
type MemoryStore struct {
// contains filtered or unexported fields
}
MemoryStore stores contents in the memory
func (*MemoryStore) FetchHandler ¶
func (s *MemoryStore) FetchHandler(fetcher remotes.Fetcher) images.HandlerFunc
FetchHandler returnes a handler that will fetch all content into the memory store discovered in a call to Dispath. Use with ChildrenHandler to do a full recurisive fetch.
func (*MemoryStore) Get ¶
func (s *MemoryStore) Get(desc ocispec.Descriptor) ([]byte, bool)
Get finds the content from the store
func (*MemoryStore) ReaderAt ¶
func (s *MemoryStore) ReaderAt(ctx context.Context, desc ocispec.Descriptor) (content.ReaderAt, error)
ReaderAt provides contents
func (*MemoryStore) Set ¶
func (s *MemoryStore) Set(desc ocispec.Descriptor, content []byte)
Set adds the content to the store
Click to show internal directories.
Click to hide internal directories.