migrations

package
v3.3.4+incompatible Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 31, 2017 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddAdminToTeams

func AddAdminToTeams(tx migration.LimitedTx) error

func AddAttemptsToContainers

func AddAttemptsToContainers(tx migration.LimitedTx) error

func AddAuthFieldsToTeams

func AddAuthFieldsToTeams(tx migration.LimitedTx) error

func AddAuthToTeams

func AddAuthToTeams(tx migration.LimitedTx) error

func AddBaggageclaimURLToWorkers

func AddBaggageclaimURLToWorkers(tx migration.LimitedTx) error

func AddBestIfUsedByToContainers

func AddBestIfUsedByToContainers(tx migration.LimitedTx) error

func AddBuildEvents

func AddBuildEvents(tx migration.LimitedTx) error

func AddBuildImageResourceCaches

func AddBuildImageResourceCaches(tx migration.LimitedTx) error

func AddBuildPreparation

func AddBuildPreparation(tx migration.LimitedTx) error

func AddCaseInsenstiveUniqueIndexToTeamsName

func AddCaseInsenstiveUniqueIndexToTeamsName(tx migration.LimitedTx) error

func AddCertificatesPathToWorkers

func AddCertificatesPathToWorkers(tx migration.LimitedTx) error

func AddCheckErrorToResources

func AddCheckErrorToResources(tx migration.LimitedTx) error

func AddCheckTypeAndCheckSourceToContainers

func AddCheckTypeAndCheckSourceToContainers(tx migration.LimitedTx) error

func AddCheckingToResources

func AddCheckingToResources(tx migration.LimitedTx) error

func AddCompletedToBuilds

func AddCompletedToBuilds(tx migration.LimitedTx) error

func AddCompositeUniqueConstraintToVolumes

func AddCompositeUniqueConstraintToVolumes(tx migration.LimitedTx) error

func AddConfig

func AddConfig(tx migration.LimitedTx) error

func AddConfigToJobsResources

func AddConfigToJobsResources(tx migration.LimitedTx) error

func AddContainerIDToVolumes

func AddContainerIDToVolumes(tx migration.LimitedTx) error

func AddContainers

func AddContainers(tx migration.LimitedTx) error

func AddCreatingContainerIDAndStateToContainers

func AddCreatingContainerIDAndStateToContainers(tx migration.LimitedTx) error

func AddDiscontinuedToContainers

func AddDiscontinuedToContainers(tx migration.LimitedTx) error

func AddEnabledToBuilds

func AddEnabledToBuilds(tx migration.LimitedTx) error

func AddEngineAndEngineMetadataToBuilds

func AddEngineAndEngineMetadataToBuilds(tx migration.LimitedTx) error

func AddEnvVariablesToContainers

func AddEnvVariablesToContainers(tx migration.LimitedTx) error

func AddExplicitToBuildOutputs

func AddExplicitToBuildOutputs(tx migration.LimitedTx) error

func AddFirstLoggedBuildIDToJobsAndReapTimeToBuildsAndLeases

func AddFirstLoggedBuildIDToJobsAndReapTimeToBuildsAndLeases(tx migration.LimitedTx) error

func AddGenericOAuthToTeams

func AddGenericOAuthToTeams(tx migration.LimitedTx) error

func AddGroupsAndRemoveConfigFromPipeline

func AddGroupsAndRemoveConfigFromPipeline(strategy EncryptionStrategy) migration.Migrator

func AddHijackURLToBuilds

func AddHijackURLToBuilds(tx migration.LimitedTx) error

func AddHostPathVersionToVolumes

func AddHostPathVersionToVolumes(tx migration.LimitedTx) error

func AddHttpProxyHttpsProxyNoProxyToWorkers

func AddHttpProxyHttpsProxyNoProxyToWorkers(tx migration.LimitedTx) error

func AddIdToConfig

func AddIdToConfig(tx migration.LimitedTx) error

func AddImageResourceTypeAndSourceToContainers

func AddImageResourceTypeAndSourceToContainers(tx migration.LimitedTx) error

func AddImageResourceVersions

func AddImageResourceVersions(tx migration.LimitedTx) error

func AddIndexesForBuildCollector

func AddIndexesForBuildCollector(tx migration.LimitedTx) error

func AddIndexesToABunchMoreStuff

func AddIndexesToABunchMoreStuff(tx migration.LimitedTx) error

func AddIndexesToABunchOfStuff

func AddIndexesToABunchOfStuff(tx migration.LimitedTx) error

func AddInputsDeterminedToBuilds

func AddInputsDeterminedToBuilds(tx migration.LimitedTx) error

func AddInputsSatisfiedToBuildPreparation

func AddInputsSatisfiedToBuildPreparation(tx migration.LimitedTx) error

func AddInterceptibleToBuilds

func AddInterceptibleToBuilds(tx migration.LimitedTx) error

func AddInterruptibleToJob

func AddInterruptibleToJob(tx migration.LimitedTx) error

func AddLandedWorkerCannotHaveAddrConstraint

func AddLandedWorkerCannotHaveAddrConstraint(tx migration.LimitedTx) error

func AddLastCheckedAndCheckingToResourceTypes

func AddLastCheckedAndCheckingToResourceTypes(tx migration.LimitedTx) error

func AddLastCheckedToResources

func AddLastCheckedToResources(tx migration.LimitedTx) error

func AddLastScheduledToBuilds

func AddLastScheduledToBuilds(tx migration.LimitedTx) error

func AddLastScheduledToPipelines

func AddLastScheduledToPipelines(tx migration.LimitedTx) error

func AddLastTrackedToBuilds

func AddLastTrackedToBuilds(tx migration.LimitedTx) error

func AddLocks

func AddLocks(tx migration.LimitedTx) error

func AddMetadataToResourceCache

func AddMetadataToResourceCache(tx migration.LimitedTx) error

func AddMissingInputReasonsToBuildPreparation

func AddMissingInputReasonsToBuildPreparation(tx migration.LimitedTx) error

func AddModifiedTimeToBuildInputs

func AddModifiedTimeToBuildInputs(tx migration.LimitedTx) error

func AddModifiedTimeToVersionedResourcesAndBuildOutputs

func AddModifiedTimeToVersionedResourcesAndBuildOutputs(tx migration.LimitedTx) error

func AddNameToBuildInputs

func AddNameToBuildInputs(tx migration.LimitedTx) error

func AddNameToPipelines

func AddNameToPipelines(tx migration.LimitedTx) error

func AddNameToWorkers

func AddNameToWorkers(tx migration.LimitedTx) error

func AddNextBuildInputs

func AddNextBuildInputs(tx migration.LimitedTx) error

func AddNonEmptyConstraintToTeamName

func AddNonEmptyConstraintToTeamName(tx migration.LimitedTx) error

func AddNonceAndPublicPlanToBuilds

func AddNonceAndPublicPlanToBuilds(tx migration.LimitedTx) error

func AddNonceToJobs

func AddNonceToJobs(tx migration.LimitedTx) error

func AddNonceToPipelines

func AddNonceToPipelines(tx migration.LimitedTx) error

func AddNonceToResourcesAndResourceTypes

func AddNonceToResourcesAndResourceTypes(tx migration.LimitedTx) error

func AddNonceToTeams

func AddNonceToTeams(tx migration.LimitedTx) error

func AddNotNullConstraintToContainerHandle

func AddNotNullConstraintToContainerHandle(tx migration.LimitedTx) error

func AddOnDeleteSetNullToFKeyContainerId

func AddOnDeleteSetNullToFKeyContainerId(tx migration.LimitedTx) error

func AddOneOffNameSequence

func AddOneOffNameSequence(tx migration.LimitedTx) error

func AddOrderToVersionedResources

func AddOrderToVersionedResources(tx migration.LimitedTx) error

func AddOrderingToPipelines

func AddOrderingToPipelines(tx migration.LimitedTx) error

func AddOriginalVolumeHandleToVolumes

func AddOriginalVolumeHandleToVolumes(tx migration.LimitedTx) error

func AddOutputNameToVolumes

func AddOutputNameToVolumes(tx migration.LimitedTx) error

func AddPathToVolumes

func AddPathToVolumes(tx migration.LimitedTx) error

func AddPausedToJobs

func AddPausedToJobs(tx migration.LimitedTx) error

func AddPausedToPipelines

func AddPausedToPipelines(tx migration.LimitedTx) error

func AddPausedToResources

func AddPausedToResources(tx migration.LimitedTx) error

func AddPipelineBuildEventsTables

func AddPipelineBuildEventsTables(tx migration.LimitedTx) error

func AddPipelineIDToJobs

func AddPipelineIDToJobs(tx migration.LimitedTx) error

func AddPipelineIDToResources

func AddPipelineIDToResources(tx migration.LimitedTx) error

func AddPipelineIdToBuilds

func AddPipelineIdToBuilds(tx migration.LimitedTx) error

func AddPlatformAndTagsToWorkers

func AddPlatformAndTagsToWorkers(tx migration.LimitedTx) error

func AddPublicToPipelines

func AddPublicToPipelines(tx migration.LimitedTx) error

func AddReplicatedFromToVolumes

func AddReplicatedFromToVolumes(tx migration.LimitedTx) error

func AddResourceConfigCheckSessions

func AddResourceConfigCheckSessions(tx migration.LimitedTx) error

func AddResourceTypesToWorkers

func AddResourceTypesToWorkers(tx migration.LimitedTx) error

func AddRetiringWorkerState

func AddRetiringWorkerState(tx migration.LimitedTx) error

func AddRunningWorkerMustHaveAddrConstraint

func AddRunningWorkerMustHaveAddrConstraint(tx migration.LimitedTx) error

func AddSizeToVolumes

func AddSizeToVolumes(tx migration.LimitedTx) error

func AddSourceHashToResources

func AddSourceHashToResources(tx migration.LimitedTx) error

func AddStageToContainers

func AddStageToContainers(tx migration.LimitedTx) error

func AddStartTimeToWorkers

func AddStartTimeToWorkers(tx migration.LimitedTx) error

func AddStateToWorkers

func AddStateToWorkers(tx migration.LimitedTx) error

func AddStepLocationToContainers

func AddStepLocationToContainers(tx migration.LimitedTx) error

func AddTTLToContainers

func AddTTLToContainers(tx migration.LimitedTx) error

func AddTeamIDToBuilds

func AddTeamIDToBuilds(tx migration.LimitedTx) error

func AddTeamIDToContainers

func AddTeamIDToContainers(tx migration.LimitedTx) error

func AddTeamIDToPipelineNameUniqueness

func AddTeamIDToPipelineNameUniqueness(tx migration.LimitedTx) error

func AddTeamIDToVolumes

func AddTeamIDToVolumes(tx migration.LimitedTx) error

func AddTeamIDToWorkers

func AddTeamIDToWorkers(tx migration.LimitedTx) error

func AddTeamNameToPipe

func AddTeamNameToPipe(tx migration.LimitedTx) error

func AddTeamsColumnToPipelinesAndTeamsTable

func AddTeamsColumnToPipelinesAndTeamsTable(tx migration.LimitedTx) error

func AddTimestampsToBuilds

func AddTimestampsToBuilds(tx migration.LimitedTx) error

func AddTypeToVersionedResources

func AddTypeToVersionedResources(tx migration.LimitedTx) error

func AddUAAAuthToTeams

func AddUAAAuthToTeams(tx migration.LimitedTx) error

func AddUniqueConstraintToResources

func AddUniqueConstraintToResources(tx migration.LimitedTx) error

func AddUniqueWorkerResourceCacheIDToVolumes

func AddUniqueWorkerResourceCacheIDToVolumes(tx migration.LimitedTx) error

func AddUserToContainer

func AddUserToContainer(tx migration.LimitedTx) error

func AddVersionToBuildEvents

func AddVersionToBuildEvents(tx migration.LimitedTx) error

func AddVersionToWorkers

func AddVersionToWorkers(tx migration.LimitedTx) error

func AddVolumeParentIdForeignKey

func AddVolumeParentIdForeignKey(tx migration.LimitedTx) error

func AddVolumesAndCacheInvalidator

func AddVolumesAndCacheInvalidator(tx migration.LimitedTx) error

func AddWorkerBaseResourceTypeIdToContainers

func AddWorkerBaseResourceTypeIdToContainers(tx migration.LimitedTx) error

func AddWorkerForeignKeyToVolumesAndContainers

func AddWorkerForeignKeyToVolumesAndContainers(tx migration.LimitedTx) error

func AddWorkerIDToVolumes

func AddWorkerIDToVolumes(tx migration.LimitedTx) error

func AddWorkerResourceCacheToContainers

func AddWorkerResourceCacheToContainers(tx migration.LimitedTx) error

func AddWorkerResourceCacheToVolumes

func AddWorkerResourceCacheToVolumes(tx migration.LimitedTx) error

func AddWorkerTaskCaches

func AddWorkerTaskCaches(tx migration.LimitedTx) error

func AddWorkers

func AddWorkers(tx migration.LimitedTx) error

func AddWorkingDirectoryToContainers

func AddWorkingDirectoryToContainers(tx migration.LimitedTx) error

func AlterExpiresToIncludeTimezoneInWorkers

func AlterExpiresToIncludeTimezoneInWorkers(tx migration.LimitedTx) error

func CascadePipelineDeletes

func CascadePipelineDeletes(tx migration.LimitedTx) error

func CascadeTeamDeletes

func CascadeTeamDeletes(tx migration.LimitedTx) error

func CascadeTeamDeletesOnPipes

func CascadeTeamDeletesOnPipes(tx migration.LimitedTx) error

func ChangeVolumeBaseResourceTypeToWorkerBaseResourceType

func ChangeVolumeBaseResourceTypeToWorkerBaseResourceType(tx migration.LimitedTx) error

func CleanUpContainerColumns

func CleanUpContainerColumns(tx migration.LimitedTx) error

func CleanUpMassiveUniqueConstraint

func CleanUpMassiveUniqueConstraint(tx migration.LimitedTx) error

func ConvertJobBuildConfigToJobPlans

func ConvertJobBuildConfigToJobPlans(tx migration.LimitedTx) error

func CreateCaches

func CreateCaches(tx migration.LimitedTx) error

func CreateContainerGCIndexes

func CreateContainerGCIndexes(tx migration.LimitedTx) error

func CreateEventIDSequencesForInFlightBuilds

func CreateEventIDSequencesForInFlightBuilds(tx migration.LimitedTx) error

func CreateJobsSerialGroups

func CreateJobsSerialGroups(tx migration.LimitedTx) error

func CreateLocks

func CreateLocks(tx migration.LimitedTx) error

func CreatePipes

func CreatePipes(tx migration.LimitedTx) error

func CreateResourceTypes

func CreateResourceTypes(tx migration.LimitedTx) error

func DeleteExtraParentConstrainOnVolume

func DeleteExtraParentConstrainOnVolume(tx migration.LimitedTx) error

func DropCompletedFromBuildPreparation

func DropCompletedFromBuildPreparation(tx migration.LimitedTx) error

func DropInitializedFromVolumes

func DropInitializedFromVolumes(tx migration.LimitedTx) error

func DropLocks

func DropLocks(tx migration.LimitedTx) error

func DropNotNullResourceConstraintsOnVolumes

func DropNotNullResourceConstraintsOnVolumes(tx migration.LimitedTx) error

func DropOldLocks

func DropOldLocks(tx migration.LimitedTx) error

func DropWorkerResourceCacheFromContainers

func DropWorkerResourceCacheFromContainers(tx migration.LimitedTx) error

func FixWorkerAddrConstraint

func FixWorkerAddrConstraint(tx migration.LimitedTx) error

func InitialSchema

func InitialSchema(tx migration.LimitedTx) error

func MakeContainerIdentifiersUnique

func MakeContainerIdentifiersUnique(tx migration.LimitedTx) error

func MakeContainerWorkingDirectoryNotNull

func MakeContainerWorkingDirectoryNotNull(tx migration.LimitedTx) error

func MakeContainersBuildIdsNullable

func MakeContainersBuildIdsNullable(tx migration.LimitedTx) error

func MakeContainersExpiresAtNullable

func MakeContainersExpiresAtNullable(tx migration.LimitedTx) error

func MakeContainersLinkToPipelineIds

func MakeContainersLinkToPipelineIds(tx migration.LimitedTx) error

func MakeContainersLinkToResourceIds

func MakeContainersLinkToResourceIds(tx migration.LimitedTx) error

func MakeContainersLinkToWorkerIds

func MakeContainersLinkToWorkerIds(tx migration.LimitedTx) error

func MakeVolumeSizeBigint

func MakeVolumeSizeBigint(tx migration.LimitedTx) error

func MakeVolumesExpiresAtNullable

func MakeVolumesExpiresAtNullable(tx migration.LimitedTx) error

func MigrateFromLeasesToLocks

func MigrateFromLeasesToLocks(tx migration.LimitedTx) error

func MoveSourceAndMetadataToVersionedResources

func MoveSourceAndMetadataToVersionedResources(tx migration.LimitedTx) error

func New

func New(strategy EncryptionStrategy) []migration.Migrator

func NonNullableVersionInfo

func NonNullableVersionInfo(tx migration.LimitedTx) error

func RemoveCertificatesPathToWorkers

func RemoveCertificatesPathToWorkers(tx migration.LimitedTx) error

func RemoveDuplicateIndices

func RemoveDuplicateIndices(tx migration.LimitedTx) error

func RemoveLastTrackedFromBuilds

func RemoveLastTrackedFromBuilds(tx migration.LimitedTx) error

func RemoveResourceCheckingFromJobsAndAddManualyTriggeredToBuilds

func RemoveResourceCheckingFromJobsAndAddManualyTriggeredToBuilds(tx migration.LimitedTx) error

func RemoveSourceFromVersionedResources

func RemoveSourceFromVersionedResources(tx migration.LimitedTx) error

func RemoveTTLFromContainers

func RemoveTTLFromContainers(tx migration.LimitedTx) error

func RemoveTTLFromVolumes

func RemoveTTLFromVolumes(tx migration.LimitedTx) error

func RemoveTransitionalCurrentVersions

func RemoveTransitionalCurrentVersions(tx migration.LimitedTx) error

func RemoveVolumesWithExpiredWorkers

func RemoveVolumesWithExpiredWorkers(tx migration.LimitedTx) error

func RemoveWorkerIds

func RemoveWorkerIds(tx migration.LimitedTx) error

func RenameConfigToPipelines

func RenameConfigToPipelines(tx migration.LimitedTx) error

func RenamePipelineIDToVersionAddPrimaryKey

func RenamePipelineIDToVersionAddPrimaryKey(tx migration.LimitedTx) error

func RenameWorkerBaseResourceTypesId

func RenameWorkerBaseResourceTypesId(tx migration.LimitedTx) error

func ReplaceBuildEventsIDWithEventID

func ReplaceBuildEventsIDWithEventID(tx migration.LimitedTx) error

func ReplaceBuildsAbortHijackURLsWithGuidAndEndpoint

func ReplaceBuildsAbortHijackURLsWithGuidAndEndpoint(tx migration.LimitedTx) error

func ReplaceCreatingContainerIDWithImageCheckForContainerIDAndImageGetForContainerID

func ReplaceCreatingContainerIDWithImageCheckForContainerIDAndImageGetForContainerID(tx migration.LimitedTx) error

func ReplaceStepLocationWithPlanID

func ReplaceStepLocationWithPlanID(tx migration.LimitedTx) error

func ResetCheckOrder

func ResetCheckOrder(tx migration.LimitedTx) error

func ResetPendingBuilds

func ResetPendingBuilds(tx migration.LimitedTx) error

func Translogrifier

func Translogrifier(logger lager.Logger, migrations []migration.Migrator) []migration.Migrator

func UpdateWorkerForeignKeyConstraint

func UpdateWorkerForeignKeyConstraint(tx migration.LimitedTx) error

func WithLogger

func WithLogger(logger lager.Logger, mig migration.Migrator) migration.Migrator

Types

type EncryptionStrategy

type EncryptionStrategy interface {
	Encrypt([]byte) (string, *string, error)
	Decrypt(string, *string) ([]byte, error)
}

type LimitedTx

type LimitedTx interface {
	Exec(query string, args ...interface{}) (sql.Result, error)
	Prepare(query string) (*sql.Stmt, error)
	Query(query string, args ...interface{}) (*sql.Rows, error)
	QueryRow(query string, args ...interface{}) *sql.Row
	Stmt(stmt *sql.Stmt) *sql.Stmt
}

Source Files

Directories

Path Synopsis
internal
163
26
Code generated by counterfeiter.
Code generated by counterfeiter.

Jump to

Keyboard shortcuts

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