migration

package
v1.2.2 Latest Latest
Warning

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

Go to latest
Published: Mar 18, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Migration

type Migration interface {
	Migrate(context.Context) (migrationResult, error)
}

type MigrationData

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

func NewMigration

func NewMigration(ctx context.Context, sourceOrg, targetOrg, sourceToken, targetToken string) (MigrationData, error)

func (MigrationData) CheckAndMigrateSecretScanning

func (md MigrationData) CheckAndMigrateSecretScanning(ctx context.Context, logger *slog.Logger, repository github.Repository) error

func (MigrationData) ReactivateTargetWorkflows

func (md MigrationData) ReactivateTargetWorkflows(ctx context.Context, repository string) error

type OrgMigration

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

func NewOrgMigration

func NewOrgMigration(ctx context.Context, source, target, sourceToken, targetToken string, retries int, parallelMigrations int) (OrgMigration, error)

func (OrgMigration) Migrate

func (om OrgMigration) Migrate(ctx context.Context) (migrationResult, error)

func (OrgMigration) Process

func (om OrgMigration) Process(repo interface{}, ctx context.Context) error

type RepoMigration

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

func NewRepoMigration

func NewRepoMigration(ctx context.Context, name, sourceOrg, targetOrg, sourceToken, targetToken string, retries int) (RepoMigration, error)

func (RepoMigration) Migrate

func (rm RepoMigration) Migrate(ctx context.Context) error

type SecretScanningMigration

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

func NewSecretScanningMigration

func NewSecretScanningMigration(ctx context.Context, sourceOrg, targetOrg, sourceToken, targetToken string) (SecretScanningMigration, error)

func (SecretScanningMigration) Migrate

func (scm SecretScanningMigration) Migrate(ctx context.Context, repository string) error

Jump to

Keyboard shortcuts

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