Documentation ¶
Index ¶
- func TestConvert(rawSettings, rawExpected, pathToConversions string, ...) error
- type ConversionsStore
- type Converter
- func (c *Converter) ConvertTo(currentVersion, version int, settings map[string]interface{}) (int, map[string]interface{}, error)
- func (c *Converter) ConvertToLatest(currentVersion int, settings map[string]interface{}) (int, map[string]interface{}, error)
- func (c *Converter) IsKnownVersion(version int) bool
- func (c *Converter) LatestVersion() int
- func (c *Converter) ListVersionsWithoutLatest() []int
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func TestConvert ¶ added in v1.60.0
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) ConvertToLatest ¶ added in v1.60.0
func (*Converter) IsKnownVersion ¶ added in v1.60.0
func (*Converter) LatestVersion ¶ added in v1.60.0
func (*Converter) ListVersionsWithoutLatest ¶ added in v1.60.0
Click to show internal directories.
Click to hide internal directories.