manifest

package
v0.0.0-...-157e698 Latest Latest
Warning

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

Go to latest
Published: Jul 2, 2021 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

Package manifest provides in-memory structure for manifest file

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Manifest

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

func Create

func Create(p string) (*Manifest, error)

func Open

func Open(p string, o int) (*Manifest, error)

func (*Manifest) Close

func (m *Manifest) Close() error

func (*Manifest) Delete

func (m *Manifest) Delete(p string)

func (*Manifest) Flush

func (m *Manifest) Flush() error

func (*Manifest) Generate

func (m *Manifest) Generate(d string) error

func (*Manifest) Has

func (m *Manifest) Has(p string) bool

func (*Manifest) Insert

func (m *Manifest) Insert(p string)

func (*Manifest) Rehash

func (m *Manifest) Rehash() error

func (*Manifest) Replace

func (m *Manifest) Replace(o, n string)

func (*Manifest) Sort

func (m *Manifest) Sort(st SortType) []string

type SortType

type SortType uint
const (
	NoSort SortType = iota
	Directories
	Files
)

Jump to

Keyboard shortcuts

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