Documentation ¶
Index ¶
- func Run(cfg []byte, fromVersion, toVersion string) (result []byte, err error)
- type ConfigItem
- func (c *ConfigItem) Create() *ConfigItem
- func (c *ConfigItem) Delete() *ConfigItem
- func (c *ConfigItem) Each() *ConfigItemIterator
- func (c *ConfigItem) Exists() bool
- func (c *ConfigItem) Get(name string) *ConfigItem
- func (c *ConfigItem) Length() int
- func (c *ConfigItem) Path() string
- func (c *ConfigItem) RenameTo(name string) *ConfigItem
- func (c *ConfigItem) ReplaceValue(old interface{}, new interface{}) *ConfigItem
- func (c *ConfigItem) Set(value interface{}) *ConfigItem
- func (c *ConfigItem) SetIfEmpty(value interface{}) *ConfigItem
- type ConfigItemIterator
- func (c *ConfigItemIterator) Delete() *ConfigItemIterator
- func (c *ConfigItemIterator) Get(name string) *ConfigItemIterator
- func (c *ConfigItemIterator) RenameTo(name string) *ConfigItemIterator
- func (c *ConfigItemIterator) ReplaceValue(old interface{}, new interface{}) *ConfigItemIterator
- func (c *ConfigItemIterator) Run(fn func(item *ConfigItem)) *ConfigItemIterator
- func (c *ConfigItemIterator) Set(value interface{}) *ConfigItemIterator
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ConfigItem ¶
type ConfigItem struct {
// contains filtered or unexported fields
}
func NewConfigItem ¶
func NewConfigItem(value interface{}, writer io.Writer) *ConfigItem
func (*ConfigItem) Create ¶
func (c *ConfigItem) Create() *ConfigItem
func (*ConfigItem) Delete ¶
func (c *ConfigItem) Delete() *ConfigItem
func (*ConfigItem) Each ¶
func (c *ConfigItem) Each() *ConfigItemIterator
func (*ConfigItem) Exists ¶
func (c *ConfigItem) Exists() bool
func (*ConfigItem) Get ¶
func (c *ConfigItem) Get(name string) *ConfigItem
func (*ConfigItem) Length ¶
func (c *ConfigItem) Length() int
func (*ConfigItem) Path ¶
func (c *ConfigItem) Path() string
func (*ConfigItem) RenameTo ¶
func (c *ConfigItem) RenameTo(name string) *ConfigItem
func (*ConfigItem) ReplaceValue ¶
func (c *ConfigItem) ReplaceValue(old interface{}, new interface{}) *ConfigItem
func (*ConfigItem) Set ¶
func (c *ConfigItem) Set(value interface{}) *ConfigItem
func (*ConfigItem) SetIfEmpty ¶
func (c *ConfigItem) SetIfEmpty(value interface{}) *ConfigItem
type ConfigItemIterator ¶
type ConfigItemIterator struct {
// contains filtered or unexported fields
}
func (*ConfigItemIterator) Delete ¶
func (c *ConfigItemIterator) Delete() *ConfigItemIterator
func (*ConfigItemIterator) Get ¶
func (c *ConfigItemIterator) Get(name string) *ConfigItemIterator
func (*ConfigItemIterator) RenameTo ¶
func (c *ConfigItemIterator) RenameTo(name string) *ConfigItemIterator
func (*ConfigItemIterator) ReplaceValue ¶
func (c *ConfigItemIterator) ReplaceValue(old interface{}, new interface{}) *ConfigItemIterator
func (*ConfigItemIterator) Run ¶
func (c *ConfigItemIterator) Run(fn func(item *ConfigItem)) *ConfigItemIterator
func (*ConfigItemIterator) Set ¶
func (c *ConfigItemIterator) Set(value interface{}) *ConfigItemIterator
Click to show internal directories.
Click to hide internal directories.