Documentation ¶
Index ¶
- func FromFile(migrationVersion *string, serializable *serializers.SplitDecision) migrations.IMigration
- func New(split, variant *string) (migrations.IMigration, error)
- type SplitDecision
- func (s *SplitDecision) ApplyToSchema(schema *serializers.Schema, migrationRepo migrations.Repository, ...) error
- func (s *SplitDecision) File() *serializers.MigrationFile
- func (s *SplitDecision) Filename() *string
- func (s *SplitDecision) MigrationVersion() *string
- func (s *SplitDecision) ResourceKey() splits.SplitKey
- func (s *SplitDecision) SameResourceAs(other migrations.IMigration) bool
- func (s *SplitDecision) Serializable() interface{}
- func (s *SplitDecision) SyncPath() string
- func (s *SplitDecision) Validate() error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FromFile ¶
func FromFile(migrationVersion *string, serializable *serializers.SplitDecision) migrations.IMigration
FromFile reifies a migration from the yaml serializable representation
func New ¶
func New(split, variant *string) (migrations.IMigration, error)
New returns a migration object
Types ¶
type SplitDecision ¶
type SplitDecision struct {
// contains filtered or unexported fields
}
SplitDecision represents a feature we're marking (un)completed
func (*SplitDecision) ApplyToSchema ¶
func (s *SplitDecision) ApplyToSchema(schema *serializers.Schema, migrationRepo migrations.Repository, idempotently bool) error
ApplyToSchema applies a migrations changes to in-memory schema representation
func (*SplitDecision) File ¶
func (s *SplitDecision) File() *serializers.MigrationFile
File returns a serializable MigrationFile for this migration
func (*SplitDecision) Filename ¶
func (s *SplitDecision) Filename() *string
Filename generates a filename for this migration
func (*SplitDecision) MigrationVersion ¶
func (s *SplitDecision) MigrationVersion() *string
MigrationVersion returns the migration version
func (*SplitDecision) ResourceKey ¶
func (s *SplitDecision) ResourceKey() splits.SplitKey
ResourceKey returns the natural key of the resource under migration
func (*SplitDecision) SameResourceAs ¶
func (s *SplitDecision) SameResourceAs(other migrations.IMigration) bool
SameResourceAs returns whether the migrations refer to the same TestTrack resource
func (*SplitDecision) Serializable ¶
func (s *SplitDecision) Serializable() interface{}
Serializable returns a JSON-serializable representation
func (*SplitDecision) SyncPath ¶
func (s *SplitDecision) SyncPath() string
SyncPath returns the server path to post the migration to
func (*SplitDecision) Validate ¶
func (s *SplitDecision) Validate() error
Validate validates that a migration may be persisted