configuration

package
v1.8.2 Latest Latest
Warning

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

Go to latest
Published: Apr 11, 2024 License: GPL-3.0 Imports: 25 Imported by: 0

Documentation

Overview

Package configuration handles the details of interfacing with the O² Configuration store.

Index

Constants

View Source
const (
	EC_ZERO             = iota
	EC_INVALID_ARGS     = iota // Provided args by the user are invalid
	EC_INVALID_ARGS_MSG = "component and entry names cannot contain `/` or  `@`"
	EC_CONNECTION_ERROR = iota // Source connection error
	EC_EMPTY_DATA       = iota // Source retrieved empty data
	EC_EMPTY_DATA_MSG   = "no data was found"
	EC_LOGIC_ERROR      = iota // Logic/Output error
)

Variables

This section is empty.

Functions

func Dump

func Dump(svc configuration.Service, cmd *cobra.Command, args []string, o io.Writer) (err error, code int)

func History added in v0.11.0

func History(svc configuration.Service, cmd *cobra.Command, args []string, o io.Writer) (err error, code int)

func Import added in v0.11.0

func Import(svc configuration.Service, cmd *cobra.Command, args []string, o io.Writer) (err error, code int)

func List added in v0.11.0

func List(svc configuration.Service, cmd *cobra.Command, args []string, o io.Writer) (err error, code int)

coconut conf list

func Show added in v0.11.0

func Show(svc configuration.Service, cmd *cobra.Command, args []string, o io.Writer) (err error, code int)

coconut conf show

Types

type CallFunc added in v0.19.90

type CallFunc func(configuration.Service, *cobra.Command, []string, io.Writer) (error, int)

type RunFunc

type RunFunc func(*cobra.Command, []string)

func WrapCall

func WrapCall(call CallFunc) RunFunc

Jump to

Keyboard shortcuts

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