datadir

package
v0.0.0-...-b097151 Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2020 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DataDir

type DataDir interface {
	// InitAndLock initializes and locks an opctl data dir
	InitAndLock() error

	// Path resolves the data dir path
	Path() string
}

DataDir is an interface exposing the functionality we require in conjunction with our "data dir".

func New

func New(
	dataDirPath string,
) (DataDir, error)

New returns an initialized data dir instance

Jump to

Keyboard shortcuts

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