kvse

package
v0.0.0-...-d95b882 Latest Latest
Warning

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

Go to latest
Published: Dec 27, 2023 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DEFAULT_SECTION  = "default"
	CONFIG_FILE_NAME = "kvse.ini"
)

Variables

This section is empty.

Functions

func GetFilePath

func GetFilePath(params ...string) (_ string, err error)

GetFilePath accepts a filename or full file path. If given a filename it looks for the file in the current and executing program directories It checks for ability to read the provided file or file path and returns the full path of the first location if found or the empty string and an error

Types

type FactRequest

type FactRequest struct {
	FactSpec   string
	ConfigFile string
	Options    []string
}

func NewFactRequest

func NewFactRequest() *FactRequest

func (FactRequest) Read

func (f FactRequest) Read() (value map[string]string, err error)

func (*FactRequest) SetupRequest

func (f *FactRequest) SetupRequest(
	factSpec string,
	configFile string,
	options []string)

type Kvse

type Kvse interface {
	SetupRequest(string, string, []string)
	Read() (map[string]string, error)
}

Directories

Path Synopsis
Package mock_kvse is a generated GoMock package.
Package mock_kvse is a generated GoMock package.

Jump to

Keyboard shortcuts

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