configuration

package
v1.21.1 Latest Latest
Warning

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

Go to latest
Published: Oct 17, 2024 License: GPL-3.0 Imports: 23 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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 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