Documentation ¶
Index ¶
- func Clone(data []byte, depMapping map[uuids.UUID]uuids.UUID) ([]byte, error)
- func MigrateToLatest(data []byte, config *Config) ([]byte, error)
- func MigrateToVersion(data []byte, to *semver.Version, config *Config) ([]byte, error)
- func Registered() map[*semver.Version]MigrationFunc
- type Action
- type Config
- type Flow
- type Header13
- type MigrationFunc
- type Node
- type Router
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Clone ¶ added in v0.63.0
Clone clones the given flow definition by replacing all UUIDs using the provided mapping and generating new random UUIDs if they aren't in the mapping
func MigrateToLatest ¶
MigrateToLatest migrates the given flow definition to the latest version
func MigrateToVersion ¶
MigrateToVersion migrates the given flow definition to the given version
func Registered ¶
func Registered() map[*semver.Version]MigrationFunc
Registered gets all registered migrations
Types ¶
type Config ¶
type Config struct {
BaseMediaURL string
}
Config configures how flow migrations are handled
type Flow ¶
type Flow map[string]interface{}
func Migrate13_1 ¶
Migrate13_1 adds UUID to send_msg templating
type Header13 ¶
type Header13 struct { UUID assets.FlowUUID `json:"uuid" validate:"required,uuid4"` Name string `json:"name"` SpecVersion *semver.Version `json:"spec_version" validate:"required"` }
Header13 is the set of fields common to all 13+ flow spec versions
type MigrationFunc ¶
MigrationFunc is a function that can migrate a flow definition from one version to another
Click to show internal directories.
Click to hide internal directories.