state

package
v0.0.0-...-a1948fa Latest Latest
Warning

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

Go to latest
Published: May 17, 2020 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DBFileName = "state.sqlite"

DBFileName - Name of SQLite database representing state in the state directory

View Source
var ErrStateDirectoryAlreadyExists = errors.New("The given state directory already exists")

ErrStateDirectoryAlreadyExists - Error returned by Init if a filesystem object already exists at the desired state directory path

Functions

func Init

func Init(stateDir string) error

Init initializes a fresh state directory at the given path. If an object already exists at the given path on the filesystem, or if Init encounters any issues in creating a directory at that path (for example if the process it runs in does hot have sufficient permissions), this function returns a non-nil error.

Types

This section is empty.

Jump to

Keyboard shortcuts

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