confd

package
v0.11.0 Latest Latest
Warning

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

Go to latest
Published: Jan 27, 2025 License: AGPL-3.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Contains

func Contains(slice []interface{}, item interface{}) bool

Contains returns true if the slice contains the item

func ContainsString

func ContainsString(slice []string, item string) bool

ContainsString returns true if the slice contains the item

Types

type Order

type Order map[string]int

Order can be used to modify ordering via configuration

type RawData

type RawData map[string]interface{}

RawData is a map of raw data, it can be used to unmarshal json data

func (RawData) GetAttributeValue

func (data RawData) GetAttributeValue(key string) string

GetAttributeValue returns string from RawData with key 'attributes' and the attribute key passed as parameter. An empty string is returned if no value can be found for 'attributes' or no attribute key exists with the key passed as parameter.

func (RawData) GetStringValue

func (data RawData) GetStringValue(key string) string

GetStringValue returns string from RawData. An empty string is returned if the key could not be found or the value is not a string.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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