migrate

package
v1.1.50 Latest Latest
Warning

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

Go to latest
Published: Apr 3, 2023 License: Apache-2.0 Imports: 17 Imported by: 4 modules, 4 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MatchAttr

func MatchAttr(attr ...string)

MatchAttr matches attributes to migrate to the x-agent-details subresource

func MatchAttrPattern

func MatchAttrPattern(pattern ...string)

MatchAttrPattern matches attribute patterns to match against an attribute to migrate to the x-agent-details subresource

func RemoveTagPattern

func RemoveTagPattern(tags ...string)

RemoveTagPattern matches tags by a pattern for removal from the resource

Types

type APISIMigration

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

APISIMigration - used for migrating API Service Instances

func NewAPISIMigration

func NewAPISIMigration(client client, cfg config.CentralConfig) *APISIMigration

NewAPISIMigration creates a new APISIMigration

func (*APISIMigration) Migrate

Migrate checks an APIServiceInstance for the "scopes" key in the schema, and removes it if it is found.

type ArdMigration

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

ArdMigration - used for migrating access request definitions

func NewArdMigration

func NewArdMigration(client client, cfg config.CentralConfig) *ArdMigration

NewArdMigration creates a new ArdMigration

func (*ArdMigration) Migrate

Migrate checks an AccessRequestDefinition for the "scopes" key in the schema, and removes it if it is found.

type AttributeMigration

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

AttributeMigration - used for migrating attributes to subresource

func NewAttributeMigration

func NewAttributeMigration(client client, cfg config.CentralConfig) *AttributeMigration

NewAttributeMigration creates a new AttributeMigration

func (*AttributeMigration) Migrate

Migrate - receives an APIService as a ResourceInstance, and checks if an attribute migration should be performed. If a migration should occur, then the APIService, Instances, Revisions, and ConsumerInstances that refer to the APIService will all have their attributes updated.

type InstanceMigration

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

InstanceMigration - migrates api service instances

func NewInstanceMigration

func NewInstanceMigration(client client, cfg config.CentralConfig) *InstanceMigration

NewInstanceMigration -

func (*InstanceMigration) Migrate

Migrate migrates an api service instance

type MarketplaceMigration

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

MarketplaceMigration - used for migrating attributes to subresource

func NewMarketplaceMigration

func NewMarketplaceMigration(client client, cfg config.CentralConfig, cache ardCache) *MarketplaceMigration

NewMarketplaceMigration - creates a new MarketplaceMigration

func (*MarketplaceMigration) Migrate

Migrate -

func (*MarketplaceMigration) UpdateService

func (m *MarketplaceMigration) UpdateService(ctx context.Context, ri *apiv1.ResourceInstance) error

UpdateService - gets a list of instances for the service and updates their request definitions.

type Migrator

type Migrator interface {
	Migrate(ctx context.Context, ri *apiv1.ResourceInstance) (*apiv1.ResourceInstance, error)
}

Migrator interface for performing a migration on a ResourceInstance

func NewMigrateAll

func NewMigrateAll(m ...Migrator) Migrator

NewMigrateAll creates a single Migrator out of a list of Migrators

Jump to

Keyboard shortcuts

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