Documentation ¶
Index ¶
- Constants
- Variables
- type Indexer
- func (f *Indexer) Add(ctx context.Context, desc ocispec.Descriptor) error
- func (f *Indexer) Delete(ctx context.Context, match descriptormatcher.Matcher) error
- func (f *Indexer) Find(ctx context.Context, match descriptormatcher.Matcher) (ocispec.Descriptor, error)
- func (f *Indexer) List(ctx context.Context, match descriptormatcher.Matcher) ([]ocispec.Descriptor, error)
- func (f *Indexer) Replace(ctx context.Context, desc ocispec.Descriptor, match descriptormatcher.Matcher) error
Constants ¶
View Source
const Filename = "index.json"
Variables ¶
View Source
var ErrNotFound = errors.New("not found")
Functions ¶
This section is empty.
Types ¶
type Indexer ¶
type Indexer struct {
// contains filtered or unexported fields
}
func (*Indexer) Find ¶
func (f *Indexer) Find(ctx context.Context, match descriptormatcher.Matcher) (ocispec.Descriptor, error)
func (*Indexer) List ¶
func (f *Indexer) List(ctx context.Context, match descriptormatcher.Matcher) ([]ocispec.Descriptor, error)
func (*Indexer) Replace ¶
func (f *Indexer) Replace(ctx context.Context, desc ocispec.Descriptor, match descriptormatcher.Matcher) error
Click to show internal directories.
Click to hide internal directories.