scopedconfig

package
v0.0.0-...-9451de5 Latest Latest
Warning

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

Go to latest
Published: Feb 27, 2019 License: BSD-3-Clause Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FindAllScopedConfigNames

func FindAllScopedConfigNames(collName string) ([]string, error)

Types

type ScopedConfig

type ScopedConfig struct {
	AllowedPools  []string
	AllowEmpty    bool
	ShallowMerge  bool
	Jsonfy        bool
	SliceAdd      bool
	AllowMapEmpty bool
	PtrNilIsEmpty bool
	// contains filtered or unexported fields
}

func FindScopedConfig

func FindScopedConfig(coll string) *ScopedConfig

func FindScopedConfigFor

func FindScopedConfigFor(coll, name string) *ScopedConfig

func (*ScopedConfig) GetName

func (n *ScopedConfig) GetName() string

func (*ScopedConfig) HasEntry

func (n *ScopedConfig) HasEntry(pool string) (bool, error)

func (*ScopedConfig) Load

func (n *ScopedConfig) Load(pool string, poolVal interface{}) error

func (*ScopedConfig) LoadAll

func (n *ScopedConfig) LoadAll(allVal interface{}) error

func (*ScopedConfig) LoadBase

func (n *ScopedConfig) LoadBase(poolVal interface{}) error

func (*ScopedConfig) LoadPools

func (n *ScopedConfig) LoadPools(filterPools []string, allVal interface{}) error

func (*ScopedConfig) LoadPoolsMerge

func (n *ScopedConfig) LoadPoolsMerge(filterPools []string, allVal interface{}, merge bool, includeDefault bool) error

func (*ScopedConfig) LoadWithBase

func (n *ScopedConfig) LoadWithBase(pool string, baseVal interface{}, poolVal interface{}) error

func (*ScopedConfig) Remove

func (n *ScopedConfig) Remove(pool string) error

func (*ScopedConfig) RemoveField

func (n *ScopedConfig) RemoveField(pool, name string) error

func (*ScopedConfig) Save

func (n *ScopedConfig) Save(pool string, val interface{}) error

func (*ScopedConfig) SaveBase

func (n *ScopedConfig) SaveBase(val interface{}) error

func (*ScopedConfig) SaveMerge

func (n *ScopedConfig) SaveMerge(pool string, val interface{}) error

func (*ScopedConfig) SetField

func (n *ScopedConfig) SetField(pool, name string, value interface{}) error

func (*ScopedConfig) SetFieldAtomic

func (n *ScopedConfig) SetFieldAtomic(pool, name string, value interface{}) (bool, error)

Jump to

Keyboard shortcuts

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