db

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: May 11, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DB

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

func Open

func Open() (*DB, error)

func (*DB) ClearAll

func (db *DB) ClearAll() error

func (*DB) Close

func (db *DB) Close() error

func (*DB) List

func (db *DB) List(asc bool) (trash.TrashList, error)

func (*DB) Put

func (db *DB) Put(ps []string) error

func (*DB) Restore

func (db *DB) Restore(ts trash.TrashList, force bool) error

func (*DB) RestoreByIndexes added in v0.4.0

func (db *DB) RestoreByIndexes(is []int, force bool) error

Jump to

Keyboard shortcuts

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