splitretirements

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

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

Jump to

Keyboard shortcuts

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