remotekills

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.RemoteKill) migrations.IMigration

FromFile reifies a migration from the yaml serializable representation

func New

func New(split, reason, overrideTo, firstBadVersion, fixedVersion *string) (migrations.IMigration, error)

New returns a migration object

Types

type RemoteKill

type RemoteKill struct {
	// contains filtered or unexported fields
}

RemoteKill represents a feature we're setting (or unsetting) killed for a range of app versions

func (*RemoteKill) ApplyToSchema

func (r *RemoteKill) ApplyToSchema(schema *serializers.Schema, _ migrations.Repository, idempotently bool) error

ApplyToSchema applies a migrations changes to in-memory schema representation

func (*RemoteKill) File

File returns a serializable MigrationFile for this migration

func (*RemoteKill) Filename

func (r *RemoteKill) Filename() *string

Filename generates a filename for this migration

func (*RemoteKill) MigrationVersion

func (r *RemoteKill) MigrationVersion() *string

MigrationVersion returns the migration version

func (*RemoteKill) SameResourceAs

func (r *RemoteKill) SameResourceAs(other migrations.IMigration) bool

SameResourceAs returns whether the migrations refer to the same TestTrack resource

func (*RemoteKill) Serializable

func (r *RemoteKill) Serializable() interface{}

Serializable returns a JSON serializable representation

func (*RemoteKill) SyncPath

func (r *RemoteKill) SyncPath() string

SyncPath returns the server path to post the migration to

func (*RemoteKill) Validate

func (r *RemoteKill) 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