file

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Apr 5, 2018 License: Apache-2.0 Imports: 8 Imported by: 2

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
}

Storage is an implementation of the storage interface that stores in file. This implementation is mostly for testing.

func New

func New(path string) *Storage

New returns new file storage.

func (Storage) Diff

func (s Storage) Diff(cs casper.Changes, pretty bool) string

Diff returns the visual representation of the changes.

func (Storage) GetChanges

func (s Storage) GetChanges(config []byte, format, key string) (casper.Changes, error)

GetChanges returns changes between the config and the Storage content.

func (Storage) Push

func (s Storage) Push(cs casper.Changes) error

Push changes to the storage.

func (Storage) String

func (s Storage) String(format string) (string, error)

Jump to

Keyboard shortcuts

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