Documentation
¶
Index ¶
- type ArtifactReader
- type ArtifactWriter
- type Library
- func (l *Library) Close() error
- func (d *Library) GetOrigins(ctx context.Context) ([]string, error)
- func (d *Library) GetSnapshots(ctx context.Context, origin string) ([]string, error)
- func (d *Library) ReadArtifact(ctx context.Context, digest string) (libraries.ArtifactReader, error)
- func (d *Library) ReadSnapshot(ctx context.Context, origin string, id string) (libraries.SnapshotReader, error)
- func (d *Library) WriteSnapshot(ctx context.Context, origin string, id string) (libraries.SnapshotWriter, error)
- type SnapshotReader
- type SnapshotWriter
- func (d *SnapshotWriter) Close() error
- func (d *SnapshotWriter) NextArtifactWriter(ctx context.Context, name string) (libraries.ArtifactWriter, error)
- func (d *SnapshotWriter) WriteArtifact(ctx context.Context, name string, data []byte) (int64, string, error)
- func (d *SnapshotWriter) WriteArtifactManifest(ctx context.Context, manifest libraries.ArtifactManifest) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ArtifactReader ¶
type ArtifactReader struct {
// contains filtered or unexported fields
}
func NewArtifactReader ¶
func NewArtifactReader(blobsRoot *os.Root, digest string) (*ArtifactReader, error)
func (*ArtifactReader) Close ¶
func (a *ArtifactReader) Close() error
Close implements libraries.DigestReadCloser.
func (*ArtifactReader) Digest ¶
func (a *ArtifactReader) Digest() string
Digest implements libraries.DigestReadCloser.
type ArtifactWriter ¶
type ArtifactWriter struct {
// contains filtered or unexported fields
}
func NewArtifactWriter ¶
func (*ArtifactWriter) Close ¶
func (a *ArtifactWriter) Close() error
Close implements libraries.DigestWriteCloser.
func (*ArtifactWriter) Digest ¶
func (a *ArtifactWriter) Digest() string
Digest implements libraries.DigestWriteCloser.
type Library ¶
type Library struct {
// contains filtered or unexported fields
}
func NewLibrary ¶
func (*Library) GetOrigins ¶
GetOrigins implements LibraryReader.
func (*Library) GetSnapshots ¶
GetSnapshots implements LibraryReader.
func (*Library) ReadArtifact ¶
func (d *Library) ReadArtifact(ctx context.Context, digest string) (libraries.ArtifactReader, error)
ReadArtifact implements LibraryReader.
func (*Library) ReadSnapshot ¶
func (d *Library) ReadSnapshot(ctx context.Context, origin string, id string) (libraries.SnapshotReader, error)
ReadSnapshot implements LibraryReader.
func (*Library) WriteSnapshot ¶
func (d *Library) WriteSnapshot(ctx context.Context, origin string, id string) (libraries.SnapshotWriter, error)
WriteSnapshot implements LibraryWriter.
type SnapshotReader ¶
type SnapshotReader struct {
// contains filtered or unexported fields
}
func NewSnapshotReader ¶
func (*SnapshotReader) Close ¶
func (s *SnapshotReader) Close() error
Close implements SnapshotReader.
func (*SnapshotReader) Index ¶
func (s *SnapshotReader) Index() libraries.SnapshotIndex
Index implements SnapshotReader.
func (*SnapshotReader) NextArtifactReader ¶
func (s *SnapshotReader) NextArtifactReader(ctx context.Context, digest string) (libraries.ArtifactReader, error)
NextArtifactReader implements SnapshotReader.
type SnapshotWriter ¶
type SnapshotWriter struct {
// contains filtered or unexported fields
}
func NewSnapshotWriter ¶
func (*SnapshotWriter) Close ¶
func (d *SnapshotWriter) Close() error
func (*SnapshotWriter) NextArtifactWriter ¶
func (d *SnapshotWriter) NextArtifactWriter(ctx context.Context, name string) (libraries.ArtifactWriter, error)
NextArtifactWriter implements SnapshotWriter.
func (*SnapshotWriter) WriteArtifact ¶
func (d *SnapshotWriter) WriteArtifact(ctx context.Context, name string, data []byte) (int64, string, error)
WriteArtifact implements SnapshotWriter.
func (*SnapshotWriter) WriteArtifactManifest ¶
func (d *SnapshotWriter) WriteArtifactManifest(ctx context.Context, manifest libraries.ArtifactManifest) error
WriteArtifactManifest implements SnapshotWriter.
Click to show internal directories.
Click to hide internal directories.