migrate

package
v1.1.101 Latest Latest
Warning

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

Go to latest
Published: Oct 2, 2024 License: Apache-2.0 Imports: 13 Imported by: 4

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, and Revisions, 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 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