Odyssey
Functions | Variables
cli.migrations Namespace Reference

Functions

def migrate_083_084 (stack, **kwargs)
 
def migrate_082_083 (stack, **kwargs)
 
def migrate_081_082 (stack, **kwargs)
 
def migrate_080_081 (stack, **kwargs)
 
def migrate_071_080 (stack, **kwargs)
 
def migrate_stack (stack, from_version, target_version, **kwargs)
 

Variables

dictionary MIGRATIONS
 

Detailed Description

Stack migration definitions

The migration definitions are used to defined the specific functions
used for migrating stacks between specific versions.

The `MIGRATIONS` dictionary contains the mappings between
`'%(from)s-%(to)s'` version strings and the specific function to
perform the migration.  The specific migration functions should be
denoted as private to this module.

Function Documentation

◆ migrate_stack()

def cli.migrations.migrate_stack (   stack,
  from_version,
  target_version,
**  kwargs 
)
Entry point for stack migration

Definition at line 251 of file migrations.py.

251 def migrate_stack(stack, from_version, target_version, **kwargs):
252  '''Entry point for stack migration'''
253  migration_str = '%s-%s' % (from_version, target_version)
254  if migration_str not in MIGRATIONS:
255  raise SystemExit("No migration path found for %s" % migration_str)
256 
257  MIGRATIONS[migration_str](stack, **kwargs)

Variable Documentation

◆ MIGRATIONS

dictionary cli.migrations.MIGRATIONS
Initial value:
1 = {
2  '0.7.1-0.8.0': migrate_071_080,
3  '0.8.0-0.8.1': migrate_080_081,
4  '0.8.1-0.8.2': migrate_081_082,
5  '0.8.2-0.8.3': migrate_082_083,
6  '0.8.3-0.8.4': migrate_083_084,
7 }

Definition at line 242 of file migrations.py.