Documentation ¶
Index ¶
- func FromFile(migrationVersion *string, serializable *serializers.IdentifierType) migrations.IMigration
- func New(name *string) (migrations.IMigration, error)
- type IdentifierType
- func (i *IdentifierType) ApplyToSchema(schema *serializers.Schema, _ migrations.Repository, idempotently bool) error
- func (i *IdentifierType) File() *serializers.MigrationFile
- func (i *IdentifierType) Filename() *string
- func (i *IdentifierType) MigrationVersion() *string
- func (i *IdentifierType) SameResourceAs(other migrations.IMigration) bool
- func (i *IdentifierType) Serializable() interface{}
- func (i *IdentifierType) SyncPath() string
- func (i *IdentifierType) Validate() error
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
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 ¶
func (i *IdentifierType) File() *serializers.MigrationFile
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
Click to show internal directories.
Click to hide internal directories.