Documentation ¶
Index ¶
- Constants
- func Matches(d *Descriptor, dir string, opt ...LayerOpt) bool
- func NewWriter(dir string, d *Descriptor) (*os.File, error)
- type Descriptor
- func (d *Descriptor) Annotations() map[string]string
- func (d *Descriptor) DiffID() v1.Hash
- func (d *Descriptor) Digest() v1.Hash
- func (d *Descriptor) Filename() string
- func (d *Descriptor) Length() int64
- func (d *Descriptor) MediaType() types.MediaType
- func (d *Descriptor) Start() int64
- func (d *Descriptor) Stop() int64
- func (d *Descriptor) String() string
- type Layer
- func (pfl *Layer) Annotations() map[string]string
- func (pfl *Layer) Compressed() (io.ReadCloser, error)
- func (pfl *Layer) DiffID() (v1.Hash, error)
- func (pfl *Layer) Digest() (v1.Hash, error)
- func (pfl *Layer) Length() int64
- func (pfl *Layer) MediaType() (types.MediaType, error)
- func (pfl *Layer) Size() (int64, error)
- func (pfl *Layer) Start() int64
- func (pfl *Layer) Stop() int64
- func (pfl *Layer) String() string
- func (pfl *Layer) Uncompressed() (io.ReadCloser, error)
- type LayerOpt
Constants ¶
View Source
const FilenameAnnotationKey = "filename"
View Source
const MediaType = types.MediaType("application/online.jarosik.tomasz.geranos.segment")
View Source
const RangeAnnotationKey = "range"
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Descriptor ¶
type Descriptor struct {
// contains filtered or unexported fields
}
func NewDescriptor ¶
func NewDescriptor(filename string, start, stop int64, digest v1.Hash) *Descriptor
func ParseDescriptor ¶
func ParseDescriptor(d v1.Descriptor, diffID v1.Hash) (*Descriptor, error)
func (*Descriptor) Annotations ¶
func (d *Descriptor) Annotations() map[string]string
func (*Descriptor) DiffID ¶ added in v0.7.5
func (d *Descriptor) DiffID() v1.Hash
func (*Descriptor) Digest ¶
func (d *Descriptor) Digest() v1.Hash
func (*Descriptor) Filename ¶
func (d *Descriptor) Filename() string
func (*Descriptor) Length ¶
func (d *Descriptor) Length() int64
func (*Descriptor) MediaType ¶
func (d *Descriptor) MediaType() types.MediaType
func (*Descriptor) Start ¶
func (d *Descriptor) Start() int64
func (*Descriptor) Stop ¶
func (d *Descriptor) Stop() int64
func (*Descriptor) String ¶
func (d *Descriptor) String() string
type Layer ¶
type Layer struct {
// contains filtered or unexported fields
}
func (*Layer) Annotations ¶
func (*Layer) Compressed ¶
func (pfl *Layer) Compressed() (io.ReadCloser, error)
Compressed implements v1.Layer
func (*Layer) Uncompressed ¶
func (pfl *Layer) Uncompressed() (io.ReadCloser, error)
Uncompressed implements v1.Layer
Click to show internal directories.
Click to hide internal directories.