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