splitdecisions

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: 6 Imported by: 0

Documentation

Index

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

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

Jump to

Keyboard shortcuts

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