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 ¶
func (m *APISIMigration) Migrate(ctx context.Context, ri *apiv1.ResourceInstance) (*apiv1.ResourceInstance, error)
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 ¶
func (m *ArdMigration) Migrate(_ context.Context, ri *apiv1.ResourceInstance) (*apiv1.ResourceInstance, error)
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 ¶
func (m *AttributeMigration) Migrate(_ context.Context, ri *apiv1.ResourceInstance) (*apiv1.ResourceInstance, error)
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 ¶
func (im *InstanceMigration) Migrate(_ context.Context, ri *apiv1.ResourceInstance) (*apiv1.ResourceInstance, error)
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 ¶
func (m *MarketplaceMigration) Migrate(ctx context.Context, ri *apiv1.ResourceInstance) (*apiv1.ResourceInstance, error)
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 ¶
NewMigrateAll creates a single Migrator out of a list of Migrators