Documentation ¶
Index ¶
- type CAS
- type CASStore
- 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) WithFS(fs iofs.FS) provider.SourceBuilder
- func (b *SourceBuilder) WithNodeAttributes(nodeAttributes func(iofs.FileInfo) api.NodeAttributes) provider.SourceBuilder
- func (b *SourceBuilder) WithSourceRef(_ string) provider.SourceBuilder
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CASStore ¶
type CASStore struct {
// contains filtered or unexported fields
}
func NewCASStore ¶
func NewCASStore() *CASStore
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 { SRIAlgorithm sri.Algorithm `abstractfs:"cas-algorithm"` NodeAttributes func(iofs.FileInfo) api.NodeAttributes StripPrefix string `abstractfs:"strip-prefix"` FS iofs.FS // contains filtered or unexported fields }
func (*SourceBuilder) Build ¶
func (b *SourceBuilder) Build() (api.Source, api.CloseWaitFunc, error)
Build builds the options.
func (*SourceBuilder) WithFS ¶
func (b *SourceBuilder) WithFS(fs iofs.FS) provider.SourceBuilder
func (*SourceBuilder) WithNodeAttributes ¶
func (b *SourceBuilder) WithNodeAttributes(nodeAttributes func(iofs.FileInfo) api.NodeAttributes) provider.SourceBuilder
func (*SourceBuilder) WithSourceRef ¶
func (b *SourceBuilder) WithSourceRef(_ string) provider.SourceBuilder
WithSourceRef sets the source reference. The generic provider does not support source references. It always needs a io.FS.
Click to show internal directories.
Click to hide internal directories.