Documentation
¶
Overview ¶
Package trackrenames matches source and destination objects for server-side renames.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Candidate ¶
type Candidate struct {
Remote string // Remote is the object path.
Size int64 // Size is the object size in bytes.
ModTime time.Time // ModTime is the object modification time.
Hash string // Hash is the value of the common hash type.
}
Candidate contains the object attributes used to match a tracked rename.
type Matcher ¶
type Matcher struct {
// contains filtered or unexported fields
}
Matcher stores destination objects and consumes them when a source object matches.
func NewMatcher ¶
func NewMatcher(ctx context.Context, strategy Strategy, hashType hash.Type, modifyWindow time.Duration) *Matcher
NewMatcher constructs an empty rename matcher.
type Strategy ¶
type Strategy byte
Strategy identifies the object attributes used to match renames.
func ParseStrategy ¶
ParseStrategy parses a comma-separated track-renames strategy.
func (Strategy) UsesModtime ¶
UsesModtime reports whether the strategy compares modification times.
Click to show internal directories.
Click to hide internal directories.