Documentation
¶
Index ¶
- func Fgetxattr(file Fd, attr string) ([]byte, error)
- func Flistxattr(file Fd) ([]string, error)
- type Fd
- type Provider
- func (p Provider) CAS() (api.CAS, api.CloseWaitFunc, error)
- func (p Provider) CASReader() (api.CASReader, api.CloseWaitFunc, error)
- func (p Provider) CASWriter() (api.CASWriter, api.CloseWaitFunc, error)
- func (p Provider) Name() string
- func (p Provider) SinkBuilder() provider.SinkBuilder
- func (p Provider) SourceBuilder() provider.SourceBuilder
- type Source
- type SourceBuilder
- func (b *SourceBuilder) Build() (api.Source, api.CloseWaitFunc, error)
- func (b *SourceBuilder) WithKeepPrefix(keepPrefix bool) *SourceBuilder
- func (b *SourceBuilder) WithPreserveXAttrs(preserveXAttrs bool) *SourceBuilder
- func (b *SourceBuilder) WithSRIAlgorithm(alg sri.Algorithm) *SourceBuilder
- func (b *SourceBuilder) WithSourceRef(ref string) provider.SourceBuilder
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Flistxattr ¶
Types ¶
type Provider ¶
type Provider struct{}
func (Provider) SinkBuilder ¶
func (p Provider) SinkBuilder() provider.SinkBuilder
func (Provider) SourceBuilder ¶
func (p Provider) SourceBuilder() provider.SourceBuilder
type SourceBuilder ¶
type SourceBuilder struct { Dir string SRIAlgorithm sri.Algorithm `abstractfs:"cas-algorithm"` // KeepPrefix will keep the prefix of the dir. // If set, the dir path prefix will be removed from the node path. // If not set, the node path will be the real path of the node. // For example, if the node has the real path /foo/bar and the dir is /foo, // the node path will be /foo/bar if KeepPrefix is set and /bar if not. KeepPrefix bool `abstractfs:"keep-prefix"` PreserveXAttrs bool `abstractfs:"preserve-xattrs"` // contains filtered or unexported fields }
func (*SourceBuilder) Build ¶
func (b *SourceBuilder) Build() (api.Source, api.CloseWaitFunc, error)
Build builds the options.
func (*SourceBuilder) WithKeepPrefix ¶
func (b *SourceBuilder) WithKeepPrefix(keepPrefix bool) *SourceBuilder
func (*SourceBuilder) WithPreserveXAttrs ¶
func (b *SourceBuilder) WithPreserveXAttrs(preserveXAttrs bool) *SourceBuilder
func (*SourceBuilder) WithSRIAlgorithm ¶
func (b *SourceBuilder) WithSRIAlgorithm(alg sri.Algorithm) *SourceBuilder
func (*SourceBuilder) WithSourceRef ¶
func (b *SourceBuilder) WithSourceRef(ref string) provider.SourceBuilder
WithSourceRef sets the source reference.
Click to show internal directories.
Click to hide internal directories.