Documentation
¶
Index ¶
Constants ¶
View Source
const ( KIND_BLOB = "blob" KIND_MEDIATYPE = "media type" BLOB_UNKNOWN_SIZE = int64(-1) BLOB_UNKNOWN_DIGEST = digest.Digest("") )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BlobAccess ¶
type BlobAccess interface {
BlobAccessBase
// Dup provides a new independently closable view.
Dup() (BlobAccess, error)
}
BlobAccess describes the access to a blob.
type BlobAccessBase ¶
type BlobAccessBase interface {
DataAccess
DigestSource
MimeType
// DigestKnown reports whether digest is already known
DigestKnown() bool
// Size returns the blob size
Size() int64
}
BlobAccessBase describes the access to a blob.
type BlobAccessProvider ¶
type BlobAccessProvider interface {
BlobAccess() (BlobAccess, error)
}
type DataAccess ¶
type DataAccess interface {
DataGetter
DataReader
io.Closer
}
DataAccess describes the access to sequence of bytes.
type DataGetter ¶
type DataReader ¶
type DataReader interface {
// Reader returns a reader to incrementally access byte stream content
Reader() (io.ReadCloser, error)
}
type DataSource ¶
type DataSource interface {
DataAccess
Origin() string
}
DataSource describes some data plus its origin.
type DigestSource ¶
type DigestSource interface {
// Digest returns the blob digest
Digest() digest.Digest
}
type FileLocation ¶
type FileLocation interface {
FileSystem() vfs.FileSystem
Path() string
}
Click to show internal directories.
Click to hide internal directories.