identifiertypes

package
v1.5.0 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FromFile

func FromFile(migrationVersion *string, serializable *serializers.IdentifierType) migrations.IMigration

FromFile reifies a migration from the yaml serializable representation

func New

func New(name *string) (migrations.IMigration, error)

New returns a migration object

Types

type IdentifierType

type IdentifierType struct {
	// contains filtered or unexported fields
}

IdentifierType represents a feature we're marking (un)completed

func (*IdentifierType) ApplyToSchema

func (i *IdentifierType) ApplyToSchema(schema *serializers.Schema, _ migrations.Repository, idempotently bool) error

ApplyToSchema applies a migrations changes to in-memory schema representation

func (*IdentifierType) File

File returns a serializable MigrationFile for this migration

func (*IdentifierType) Filename

func (i *IdentifierType) Filename() *string

Filename generates a filename for this migration

func (*IdentifierType) MigrationVersion

func (i *IdentifierType) MigrationVersion() *string

MigrationVersion returns the migration version

func (*IdentifierType) SameResourceAs

func (i *IdentifierType) SameResourceAs(other migrations.IMigration) bool

SameResourceAs returns whether the migrations refer to the same TestTrack resource

func (*IdentifierType) Serializable

func (i *IdentifierType) Serializable() interface{}

Serializable returns a JSON serializable representation

func (*IdentifierType) SyncPath

func (i *IdentifierType) SyncPath() string

SyncPath returns the server path to post the migration to

func (*IdentifierType) Validate

func (i *IdentifierType) Validate() error

Validate that the migration may be persisted

Jump to

Keyboard shortcuts

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