migrate

package
v1.13.0 Latest Latest
Warning

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

Go to latest
Published: Mar 18, 2020 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Package migrate is responsible for converting to and from the various API type versions that are in use in Pulumi. This package can migrate "up" for every versioned API that needs to be migrated between versions. Today, there are three versionable entities that can be migrated with this package:

  • Checkpoint, the on-disk format for Fire-and-Forget stack state,
  • Deployment, the wire format for service-managed stacks,
  • Resource, the wire format for resources saved in deployments,

The migrations in this package are designed to preserve semantics between versions. It is always safe to migrate an entity up from one version to another.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func UpToCheckpointV2

func UpToCheckpointV2(v1 apitype.CheckpointV1) apitype.CheckpointV2

UpToCheckpointV2 migrates a CheckpointV1 to a CheckpointV2.

func UpToCheckpointV3 added in v0.16.12

func UpToCheckpointV3(v2 apitype.CheckpointV2) apitype.CheckpointV3

UpToCheckpointV3 migrates a CheckpointV2 to a CheckpointV3.

func UpToDeploymentV2

func UpToDeploymentV2(v1 apitype.DeploymentV1) apitype.DeploymentV2

UpToDeploymentV2 migrates a deployment from DeploymentV1 to DeploymentV2.

func UpToDeploymentV3 added in v0.16.12

func UpToDeploymentV3(v2 apitype.DeploymentV2) apitype.DeploymentV3

UpToDeploymentV3 migrates a deployment from DeploymentV2 to DeploymentV3.

func UpToOperationV2 added in v0.16.12

func UpToOperationV2(v1 apitype.OperationV1) apitype.OperationV2

UpToOperationV2 migrates a resource from OperationV1 to OperationV2.

func UpToResourceV2

func UpToResourceV2(v1 apitype.ResourceV1) apitype.ResourceV2

UpToResourceV2 migrates a resource from ResourceV1 to ResourceV2.

func UpToResourceV3 added in v0.16.12

func UpToResourceV3(v2 apitype.ResourceV2) apitype.ResourceV3

UpToResourceV3 migrates a resource from ResourceV2 to ResourceV3.

Types

This section is empty.

Jump to

Keyboard shortcuts

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