storage

package
v0.0.0-...-2ca8c60 Latest Latest
Warning

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

Go to latest
Published: Jan 18, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Storage

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

func NewStorage

func NewStorage(path string, printer *printer.Printer) *Storage

func (Storage) AddInstruction

func (s Storage) AddInstruction(scope string, label string, instruction string) (string, error)

func (Storage) AlterInstructionForNewEntries

func (s Storage) AlterInstructionForNewEntries(srcScope string, destScope string) ([]string, error)

func (Storage) DeleteSave

func (s Storage) DeleteSave() error

func (Storage) Exists

func (s Storage) Exists() bool

func (Storage) GetInstruction

func (s Storage) GetInstruction(scope string, label string) (string, error)

func (Storage) HasInstructionFor

func (s Storage) HasInstructionFor(scope string, label string) bool

func (Storage) ListInstructions

func (s Storage) ListInstructions(scope string, addLineEnds bool) ([]string, error)

func (Storage) RemoveInstruction

func (s Storage) RemoveInstruction(scope string, label string) error

func (Storage) RenameInstruction

func (s Storage) RenameInstruction(scope string, oldLabel string, newLabel string) error

func (Storage) Reorganize

func (s Storage) Reorganize() error

func (Storage) Rollback

func (s Storage) Rollback() error

func (Storage) Save

func (s Storage) Save() error

Jump to

Keyboard shortcuts

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