gomigrate

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Nov 1, 2022 License: MIT Imports: 10 Imported by: 0

Documentation

Overview

Package gomigrate exports types, functions, subpackages for provisioning gomigrate resources.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PkgVersion

func PkgVersion() (semver.Version, error)

PkgVersion uses reflection to determine the version of the current package. If a version cannot be determined, v1 will be assumed. The second return value is always nil.

Types

type Migration

type Migration struct {
	pulumi.CustomResourceState

	// Date of the migration
	MigratedAt pulumi.StringOutput `pulumi:"migratedAt"`
}

func GetMigration added in v1.0.1

func GetMigration(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *MigrationState, opts ...pulumi.ResourceOption) (*Migration, error)

GetMigration gets an existing Migration resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).

func NewMigration

func NewMigration(ctx *pulumi.Context,
	name string, args *MigrationArgs, opts ...pulumi.ResourceOption) (*Migration, error)

NewMigration registers a new resource with the given unique name, arguments, and options.

func (*Migration) ElementType

func (*Migration) ElementType() reflect.Type

func (*Migration) ToMigrationOutput

func (i *Migration) ToMigrationOutput() MigrationOutput

func (*Migration) ToMigrationOutputWithContext

func (i *Migration) ToMigrationOutputWithContext(ctx context.Context) MigrationOutput

type MigrationArgs

type MigrationArgs struct {
	// Database URL to run the migrations on
	DatabaseURL pulumi.StringInput
	// Previous version to migrate on undo
	PrevVersion pulumi.IntInput
	// Source URL for the migrations
	SourceURL pulumi.StringInput
	// Version to migrate
	Version pulumi.IntInput
}

The set of arguments for constructing a Migration resource.

func (MigrationArgs) ElementType

func (MigrationArgs) ElementType() reflect.Type

type MigrationArray

type MigrationArray []MigrationInput

func (MigrationArray) ElementType

func (MigrationArray) ElementType() reflect.Type

func (MigrationArray) ToMigrationArrayOutput

func (i MigrationArray) ToMigrationArrayOutput() MigrationArrayOutput

func (MigrationArray) ToMigrationArrayOutputWithContext

func (i MigrationArray) ToMigrationArrayOutputWithContext(ctx context.Context) MigrationArrayOutput

type MigrationArrayInput

type MigrationArrayInput interface {
	pulumi.Input

	ToMigrationArrayOutput() MigrationArrayOutput
	ToMigrationArrayOutputWithContext(context.Context) MigrationArrayOutput
}

MigrationArrayInput is an input type that accepts MigrationArray and MigrationArrayOutput values. You can construct a concrete instance of `MigrationArrayInput` via:

MigrationArray{ MigrationArgs{...} }

type MigrationArrayOutput

type MigrationArrayOutput struct{ *pulumi.OutputState }

func (MigrationArrayOutput) ElementType

func (MigrationArrayOutput) ElementType() reflect.Type

func (MigrationArrayOutput) Index

func (MigrationArrayOutput) ToMigrationArrayOutput

func (o MigrationArrayOutput) ToMigrationArrayOutput() MigrationArrayOutput

func (MigrationArrayOutput) ToMigrationArrayOutputWithContext

func (o MigrationArrayOutput) ToMigrationArrayOutputWithContext(ctx context.Context) MigrationArrayOutput

type MigrationInput

type MigrationInput interface {
	pulumi.Input

	ToMigrationOutput() MigrationOutput
	ToMigrationOutputWithContext(ctx context.Context) MigrationOutput
}

type MigrationMap

type MigrationMap map[string]MigrationInput

func (MigrationMap) ElementType

func (MigrationMap) ElementType() reflect.Type

func (MigrationMap) ToMigrationMapOutput

func (i MigrationMap) ToMigrationMapOutput() MigrationMapOutput

func (MigrationMap) ToMigrationMapOutputWithContext

func (i MigrationMap) ToMigrationMapOutputWithContext(ctx context.Context) MigrationMapOutput

type MigrationMapInput

type MigrationMapInput interface {
	pulumi.Input

	ToMigrationMapOutput() MigrationMapOutput
	ToMigrationMapOutputWithContext(context.Context) MigrationMapOutput
}

MigrationMapInput is an input type that accepts MigrationMap and MigrationMapOutput values. You can construct a concrete instance of `MigrationMapInput` via:

MigrationMap{ "key": MigrationArgs{...} }

type MigrationMapOutput

type MigrationMapOutput struct{ *pulumi.OutputState }

func (MigrationMapOutput) ElementType

func (MigrationMapOutput) ElementType() reflect.Type

func (MigrationMapOutput) MapIndex

func (MigrationMapOutput) ToMigrationMapOutput

func (o MigrationMapOutput) ToMigrationMapOutput() MigrationMapOutput

func (MigrationMapOutput) ToMigrationMapOutputWithContext

func (o MigrationMapOutput) ToMigrationMapOutputWithContext(ctx context.Context) MigrationMapOutput

type MigrationOutput

type MigrationOutput struct{ *pulumi.OutputState }

func (MigrationOutput) ElementType

func (MigrationOutput) ElementType() reflect.Type

func (MigrationOutput) ToMigrationOutput

func (o MigrationOutput) ToMigrationOutput() MigrationOutput

func (MigrationOutput) ToMigrationOutputWithContext

func (o MigrationOutput) ToMigrationOutputWithContext(ctx context.Context) MigrationOutput

type MigrationState added in v1.0.1

type MigrationState struct {
}

func (MigrationState) ElementType added in v1.0.1

func (MigrationState) ElementType() reflect.Type

type Migrations

type Migrations struct {
	pulumi.ResourceState
}

func NewMigrations

func NewMigrations(ctx *pulumi.Context,
	name string, args *MigrationsArgs, opts ...pulumi.ResourceOption) (*Migrations, error)

NewMigrations registers a new resource with the given unique name, arguments, and options.

func (*Migrations) ElementType

func (*Migrations) ElementType() reflect.Type

func (*Migrations) ToMigrationsOutput

func (i *Migrations) ToMigrationsOutput() MigrationsOutput

func (*Migrations) ToMigrationsOutputWithContext

func (i *Migrations) ToMigrationsOutputWithContext(ctx context.Context) MigrationsOutput

type MigrationsArgs

type MigrationsArgs struct {
	// Database URL to run the migrations on
	DatabaseURL pulumi.StringInput
	// Source URL for the migrations
	SourceURL pulumi.StringInput
}

The set of arguments for constructing a Migrations resource.

func (MigrationsArgs) ElementType

func (MigrationsArgs) ElementType() reflect.Type

type MigrationsArray

type MigrationsArray []MigrationsInput

func (MigrationsArray) ElementType

func (MigrationsArray) ElementType() reflect.Type

func (MigrationsArray) ToMigrationsArrayOutput

func (i MigrationsArray) ToMigrationsArrayOutput() MigrationsArrayOutput

func (MigrationsArray) ToMigrationsArrayOutputWithContext

func (i MigrationsArray) ToMigrationsArrayOutputWithContext(ctx context.Context) MigrationsArrayOutput

type MigrationsArrayInput

type MigrationsArrayInput interface {
	pulumi.Input

	ToMigrationsArrayOutput() MigrationsArrayOutput
	ToMigrationsArrayOutputWithContext(context.Context) MigrationsArrayOutput
}

MigrationsArrayInput is an input type that accepts MigrationsArray and MigrationsArrayOutput values. You can construct a concrete instance of `MigrationsArrayInput` via:

MigrationsArray{ MigrationsArgs{...} }

type MigrationsArrayOutput

type MigrationsArrayOutput struct{ *pulumi.OutputState }

func (MigrationsArrayOutput) ElementType

func (MigrationsArrayOutput) ElementType() reflect.Type

func (MigrationsArrayOutput) Index

func (MigrationsArrayOutput) ToMigrationsArrayOutput

func (o MigrationsArrayOutput) ToMigrationsArrayOutput() MigrationsArrayOutput

func (MigrationsArrayOutput) ToMigrationsArrayOutputWithContext

func (o MigrationsArrayOutput) ToMigrationsArrayOutputWithContext(ctx context.Context) MigrationsArrayOutput

type MigrationsInput

type MigrationsInput interface {
	pulumi.Input

	ToMigrationsOutput() MigrationsOutput
	ToMigrationsOutputWithContext(ctx context.Context) MigrationsOutput
}

type MigrationsMap

type MigrationsMap map[string]MigrationsInput

func (MigrationsMap) ElementType

func (MigrationsMap) ElementType() reflect.Type

func (MigrationsMap) ToMigrationsMapOutput

func (i MigrationsMap) ToMigrationsMapOutput() MigrationsMapOutput

func (MigrationsMap) ToMigrationsMapOutputWithContext

func (i MigrationsMap) ToMigrationsMapOutputWithContext(ctx context.Context) MigrationsMapOutput

type MigrationsMapInput

type MigrationsMapInput interface {
	pulumi.Input

	ToMigrationsMapOutput() MigrationsMapOutput
	ToMigrationsMapOutputWithContext(context.Context) MigrationsMapOutput
}

MigrationsMapInput is an input type that accepts MigrationsMap and MigrationsMapOutput values. You can construct a concrete instance of `MigrationsMapInput` via:

MigrationsMap{ "key": MigrationsArgs{...} }

type MigrationsMapOutput

type MigrationsMapOutput struct{ *pulumi.OutputState }

func (MigrationsMapOutput) ElementType

func (MigrationsMapOutput) ElementType() reflect.Type

func (MigrationsMapOutput) MapIndex

func (MigrationsMapOutput) ToMigrationsMapOutput

func (o MigrationsMapOutput) ToMigrationsMapOutput() MigrationsMapOutput

func (MigrationsMapOutput) ToMigrationsMapOutputWithContext

func (o MigrationsMapOutput) ToMigrationsMapOutputWithContext(ctx context.Context) MigrationsMapOutput

type MigrationsOutput

type MigrationsOutput struct{ *pulumi.OutputState }

func (MigrationsOutput) ElementType

func (MigrationsOutput) ElementType() reflect.Type

func (MigrationsOutput) ToMigrationsOutput

func (o MigrationsOutput) ToMigrationsOutput() MigrationsOutput

func (MigrationsOutput) ToMigrationsOutputWithContext

func (o MigrationsOutput) ToMigrationsOutputWithContext(ctx context.Context) MigrationsOutput

type Provider

type Provider struct {
	pulumi.ProviderResourceState
}

func NewProvider

func NewProvider(ctx *pulumi.Context,
	name string, args *ProviderArgs, opts ...pulumi.ResourceOption) (*Provider, error)

NewProvider registers a new resource with the given unique name, arguments, and options.

func (*Provider) ElementType

func (*Provider) ElementType() reflect.Type

func (*Provider) ToProviderOutput

func (i *Provider) ToProviderOutput() ProviderOutput

func (*Provider) ToProviderOutputWithContext

func (i *Provider) ToProviderOutputWithContext(ctx context.Context) ProviderOutput

type ProviderArgs

type ProviderArgs struct {
}

The set of arguments for constructing a Provider resource.

func (ProviderArgs) ElementType

func (ProviderArgs) ElementType() reflect.Type

type ProviderInput

type ProviderInput interface {
	pulumi.Input

	ToProviderOutput() ProviderOutput
	ToProviderOutputWithContext(ctx context.Context) ProviderOutput
}

type ProviderOutput

type ProviderOutput struct{ *pulumi.OutputState }

func (ProviderOutput) ElementType

func (ProviderOutput) ElementType() reflect.Type

func (ProviderOutput) ToProviderOutput

func (o ProviderOutput) ToProviderOutput() ProviderOutput

func (ProviderOutput) ToProviderOutputWithContext

func (o ProviderOutput) ToProviderOutputWithContext(ctx context.Context) ProviderOutput

Jump to

Keyboard shortcuts

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