conversion

package
v1.62.2 Latest Latest
Warning

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

Go to latest
Published: Jul 17, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func TestConvert added in v1.60.0

func TestConvert(rawSettings, rawExpected, pathToConversions string, currentVersion, version int) error

Types

type ConversionsStore added in v1.60.0

type ConversionsStore struct {
	// contains filtered or unexported fields
}

func Store added in v1.60.0

func Store() *ConversionsStore

func (*ConversionsStore) Add added in v1.60.0

func (s *ConversionsStore) Add(module, pathToConversions string) (err error)

func (*ConversionsStore) Get added in v1.60.0

func (s *ConversionsStore) Get(module string) *Converter

type Converter added in v1.60.0

type Converter struct {
	// contains filtered or unexported fields
}

func (*Converter) ConvertTo added in v1.60.0

func (c *Converter) ConvertTo(currentVersion, version int, settings map[string]interface{}) (int, map[string]interface{}, error)

func (*Converter) ConvertToLatest added in v1.60.0

func (c *Converter) ConvertToLatest(currentVersion int, settings map[string]interface{}) (int, map[string]interface{}, error)

func (*Converter) IsKnownVersion added in v1.60.0

func (c *Converter) IsKnownVersion(version int) bool

func (*Converter) LatestVersion added in v1.60.0

func (c *Converter) LatestVersion() int

func (*Converter) ListVersionsWithoutLatest added in v1.60.0

func (c *Converter) ListVersionsWithoutLatest() []int

Jump to

Keyboard shortcuts

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