featurecompletions

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.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

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

Jump to

Keyboard shortcuts

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