sorter

package
v0.7.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 4, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ConfigSorter

type ConfigSorter struct {
	// contains filtered or unexported fields
}

func NewConfigSorter

func NewConfigSorter(folderPath, configPath, inline string) (*ConfigSorter, error)

func (*ConfigSorter) Decide

func (s *ConfigSorter) Decide(ctx context.Context, files []core.FileEntry) ([]core.FileOperation, error)

func (*ConfigSorter) GetBlacklist

func (s *ConfigSorter) GetBlacklist() []string

type RuleSorter

type RuleSorter struct {
	// contains filtered or unexported fields
}

func NewRuleSorter

func NewRuleSorter(rules []config.RuleSpec) (*RuleSorter, error)

func (*RuleSorter) Decide

func (s *RuleSorter) Decide(ctx context.Context, files []core.FileEntry) ([]core.FileOperation, error)

func (*RuleSorter) GetBlacklist

func (s *RuleSorter) GetBlacklist() []string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL