hardlinkfilemap

package
v1.19.0 Latest Latest
Warning

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

Go to latest
Published: Jan 13, 2026 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LinkInfo

func LinkInfo(fi os.FileInfo, _ string) (string, uint64, error)

func NewNoopHardlinkFileMap

func NewNoopHardlinkFileMap() *noopHardlinkFileMap

Types

type HardlinkFileMap

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

func (*HardlinkFileMap) AddByTorrent

func (t *HardlinkFileMap) AddByTorrent(torrent config.Torrent)

func (*HardlinkFileMap) HardlinkedOutsideClient

func (t *HardlinkFileMap) HardlinkedOutsideClient(torrent config.Torrent) bool

func (*HardlinkFileMap) IsTorrentUnique

func (t *HardlinkFileMap) IsTorrentUnique(torrent config.Torrent) bool

func (*HardlinkFileMap) Length

func (t *HardlinkFileMap) Length() int

func (*HardlinkFileMap) NoInstances

func (t *HardlinkFileMap) NoInstances(torrent config.Torrent) bool

func (*HardlinkFileMap) RemoveByTorrent

func (t *HardlinkFileMap) RemoveByTorrent(torrent config.Torrent)

type HardlinkFileMapI

type HardlinkFileMapI interface {
	AddByTorrent(torrent config.Torrent)
	RemoveByTorrent(torrent config.Torrent)
	NoInstances(torrent config.Torrent) bool
	IsTorrentUnique(torrent config.Torrent) bool
	HardlinkedOutsideClient(torrent config.Torrent) bool
	Length() int
}

func New

func New(torrents map[string]config.Torrent, torrentPathMapping map[string]string) HardlinkFileMapI

Jump to

Keyboard shortcuts

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