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