datastore

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: May 9, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Overview

Package datastore implements the use of a data store yaml file that can be used for the CLI to store and retrieve data that is not configuration.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DeleteDataStoreValue

func DeleteDataStoreValue(key string) error

DeleteDataStoreValue deletes the key and value from the data store.

func GetDataStoreValue

func GetDataStoreValue(key string, out interface{}) error

GetDataStoreValue reads the data store and returns the value for the given key. The value is unmarshalled into the out parameter. The out parameter must be a non-nil pointer to a value. If the key does not exist, the out parameter is not modified and an error is returned.

func SetDataStoreValue

func SetDataStoreValue(key string, value interface{}) error

SetDataStoreValue sets the value of the key in the data store.

Types

This section is empty.

Jump to

Keyboard shortcuts

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