migrate

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run

func Run(cfg []byte, fromVersion, toVersion string) (result []byte, err error)

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 (*ConfigItemIterator) Get

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

Jump to

Keyboard shortcuts

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