periscope

package
v0.3.5 Latest Latest
Warning

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

Go to latest
Published: Jul 17, 2023 License: GPL-3.0 Imports: 24 Imported by: 0

Documentation

Index

Constants

View Source
const HashSize = blake2b.Size256
View Source
const ShortHashSize = 8

Variables

This section is empty.

Functions

func Finish

func Finish(options *FinishOptions) herror.Interface

Types

type ExportFormat

type ExportFormat int
const (
	JsonFormat ExportFormat = iota
)

type ExportOptions

type ExportOptions struct {
	Format ExportFormat
}

type FinishOptions

type FinishOptions struct {
}

type ForgetOptions added in v0.3.2

type ForgetOptions struct {
}

type HashOptions

type HashOptions struct {
}

type InfoOptions

type InfoOptions struct {
	Relative bool
}

type LsOptions

type LsOptions struct {
	All       bool
	Verbose   bool
	Duplicate bool
	Unique    bool
	Relative  bool
	Recursive bool
}

type Options

type Options struct {
	Debug bool
}

type Periscope

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

func New

func New(options *Options) (*Periscope, herror.Interface)

func (*Periscope) Export

func (ps *Periscope) Export(options *ExportOptions) herror.Interface

func (*Periscope) Forget added in v0.3.2

func (ps *Periscope) Forget(paths []string, options *ForgetOptions) herror.Interface

func (*Periscope) Hash

func (ps *Periscope) Hash(paths []string, options *HashOptions) herror.Interface

func (*Periscope) Info

func (ps *Periscope) Info(paths []string, options *InfoOptions) herror.Interface

func (*Periscope) Ls

func (ps *Periscope) Ls(paths []string, options *LsOptions) herror.Interface

func (*Periscope) Refresh

func (ps *Periscope) Refresh(options *RefreshOptions) herror.Interface

func (*Periscope) Report

func (ps *Periscope) Report(dir string, options *ReportOptions) herror.Interface

func (*Periscope) Rm

func (ps *Periscope) Rm(paths []string, options *RmOptions) herror.Interface

func (*Periscope) Scan

func (ps *Periscope) Scan(paths []string, options *ScanOptions) herror.Interface

func (*Periscope) Summary

func (ps *Periscope) Summary(options *SummaryOptions) herror.Interface

func (*Periscope) Tree

func (ps *Periscope) Tree(root string, options *TreeOptions) herror.Interface

type RefreshOptions

type RefreshOptions struct {
}

type ReportOptions

type ReportOptions struct {
	Relative bool
}

type RmOptions

type RmOptions struct {
	Recursive    bool
	Verbose      bool
	DryRun       bool
	HasContained bool
	Contained    string
	Arbitrary    bool
}

type ScanOptions

type ScanOptions struct {
	Minimum int64
	Maximum int64
}

type SummaryOptions

type SummaryOptions struct {
}

type TreeOptions

type TreeOptions struct {
	All bool
}

Jump to

Keyboard shortcuts

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