Documentation ¶
Index ¶
- Constants
- type AnyFSVFilter
- type DatasetMapFilter
- func (m *DatasetMapFilter) Add(pathPattern, mapping string) (err error)
- func (m DatasetMapFilter) AsFilter() endpoint.FSFilter
- func (m DatasetMapFilter) Filter(p *zfs.DatasetPath) (pass bool, err error)
- func (m DatasetMapFilter) Invert() (endpoint.FSMap, error)
- func (m DatasetMapFilter) InvertedFilter() (inv *DatasetMapFilter, err error)
- func (m DatasetMapFilter) Map(source *zfs.DatasetPath) (target *zfs.DatasetPath, err error)
- type PrefixFilter
Constants ¶
View Source
const ( MapFilterResultOk string = "ok" MapFilterResultOmit string = "!" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AnyFSVFilter ¶
type AnyFSVFilter struct{}
func NewAnyFSVFilter ¶
func NewAnyFSVFilter() AnyFSVFilter
func (AnyFSVFilter) Filter ¶
func (AnyFSVFilter) Filter(t zfs.VersionType, name string) (accept bool, err error)
type DatasetMapFilter ¶
type DatasetMapFilter struct {
// contains filtered or unexported fields
}
func DatasetMapFilterFromConfig ¶
func DatasetMapFilterFromConfig(in map[string]bool) (f *DatasetMapFilter, err error)
func NewDatasetMapFilter ¶
func NewDatasetMapFilter(capacity int, filterMode bool) *DatasetMapFilter
func (*DatasetMapFilter) Add ¶
func (m *DatasetMapFilter) Add(pathPattern, mapping string) (err error)
func (DatasetMapFilter) AsFilter ¶
func (m DatasetMapFilter) AsFilter() endpoint.FSFilter
Creates a new DatasetMapFilter in filter mode from a mapping All accepting mapping results are mapped to accepting filter results All rejecting mapping results are mapped to rejecting filter results
func (DatasetMapFilter) Filter ¶
func (m DatasetMapFilter) Filter(p *zfs.DatasetPath) (pass bool, err error)
func (DatasetMapFilter) Invert ¶
func (m DatasetMapFilter) Invert() (endpoint.FSMap, error)
FIXME investigate whether we can support more...
func (DatasetMapFilter) InvertedFilter ¶
func (m DatasetMapFilter) InvertedFilter() (inv *DatasetMapFilter, err error)
Construct a new filter-only DatasetMapFilter from a mapping The new filter allows excactly those paths that were not forbidden by the mapping.
func (DatasetMapFilter) Map ¶
func (m DatasetMapFilter) Map(source *zfs.DatasetPath) (target *zfs.DatasetPath, err error)
Returns target == nil if there is no mapping
type PrefixFilter ¶
type PrefixFilter struct {
// contains filtered or unexported fields
}
func NewPrefixFilter ¶
func NewPrefixFilter(prefix string) *PrefixFilter
func NewTypedPrefixFilter ¶
func NewTypedPrefixFilter(prefix string, versionType zfs.VersionType) *PrefixFilter
func (*PrefixFilter) Filter ¶
func (f *PrefixFilter) Filter(t zfs.VersionType, name string) (accept bool, err error)
Click to show internal directories.
Click to hide internal directories.