Documentation ¶
Index ¶
- func NewSourceDevice(attrs fs.DeviceAttrs) fs.Source
- func NewSourceDir(attrs fs.FileAttrs) fs.Source
- func NewSourceFifo(attrs fs.DeviceAttrs) *sourceFifo
- func NewSourceFile(reader fs.Readable, attrs fs.FileAttrs) *sourceFile
- func NewSourceFileHashed(reader fs.Readable, attrs fs.FileAttrs, hash string) *sourceFile
- func NewSourceSymlink(attrs fs.FileAttrs) fs.Source
- func NewSourceTar(file string) *sourceTar
- func NewSourceTarBz(file string) fs.Source
- func NewSourceTarGz(file string) fs.Source
- func NewSourceURL(url *url.URL, etagCache HttpHeaderCache, chown idutils.UserIds) fs.Source
- func NewSourceUpperLink(s fs.Source) fs.Source
- func NewSourceWhiteout() fs.Source
- type HttpHeaderCache
- type HttpHeaders
- type NoopHttpHeaderCache
- type SourceDir
- type SourceUpperLink
- type Sources
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewSourceDevice ¶
func NewSourceDevice(attrs fs.DeviceAttrs) fs.Source
func NewSourceFifo ¶
func NewSourceFifo(attrs fs.DeviceAttrs) *sourceFifo
func NewSourceFileHashed ¶
func NewSourceTar ¶
func NewSourceTar(file string) *sourceTar
func NewSourceTarBz ¶
func NewSourceTarGz ¶
func NewSourceURL ¶
func NewSourceWhiteout ¶
Types ¶
type HttpHeaderCache ¶
type HttpHeaderCache interface { // Restores cached attrs or null GetHttpHeaders(url string) (*HttpHeaders, error) // Stores URL attrs PutHttpHeaders(url string, attrs *HttpHeaders) error }
func NewHttpHeaderCache ¶
func NewHttpHeaderCache(dir string) HttpHeaderCache
type HttpHeaders ¶
type NoopHttpHeaderCache ¶
type NoopHttpHeaderCache string
func (NoopHttpHeaderCache) GetHttpHeaders ¶
func (c NoopHttpHeaderCache) GetHttpHeaders(url string) (*HttpHeaders, error)
func (NoopHttpHeaderCache) PutHttpHeaders ¶
func (c NoopHttpHeaderCache) PutHttpHeaders(url string, attrs *HttpHeaders) error
type SourceDir ¶
type SourceDir struct {
// contains filtered or unexported fields
}
func (*SourceDir) DeriveAttrs ¶
func (s *SourceDir) DeriveAttrs() (fs.DerivedAttrs, error)
type SourceUpperLink ¶
Click to show internal directories.
Click to hide internal directories.