Documentation
¶
Index ¶
- Variables
- type Flags
- type Importer
- func (m *Importer) CheckUsers(users []string) ([]string, error)
- func (m *Importer) CreateRepo(repo *types.Repository, targetSpace string, tracer tracer.Tracer) (*harness.Repository, error)
- func (m *Importer) Import(ctx context.Context) error
- func (m *Importer) ImportBranchRules(repoRef string, repoFolder string) error
- func (m *Importer) ImportLabels(repoRef string, repoFolder string) error
- func (m *Importer) ImportPullRequests(repoRef string, repoFolder string) error
- func (m *Importer) ImportWebhooks(repoRef string, repoFolder string) error
- func (m *Importer) Push(ctx context.Context, repoRef string, repoPath string, repo *harness.Repository, ...) error
- func (m *Importer) ReadRepoInfo(dir string) (types.Repository, error)
- type IncrementalMigrationHandler
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrAbortMigration = errors.New("aborting the migration. please checkout your command and try again") ErrInvalidRepoDir = errors.New("directory doesn't contain repo metadata") )
Functions ¶
This section is empty.
Types ¶
type Importer ¶
type Importer struct {
Harness harness.Client
HarnessSpace string
HarnessRepo string // optional for single repo import
HarnessToken string
Endpoint string
ZipFileLocation string
Gitness bool
Tracer tracer.Tracer
Report map[string]*report.Report
RequestId string
// contains filtered or unexported fields
}
Importer imports data from gitlab to Harness.
func NewImporter ¶
func (*Importer) CreateRepo ¶
func (m *Importer) CreateRepo( repo *types.Repository, targetSpace string, tracer tracer.Tracer, ) (*harness.Repository, error)
func (*Importer) ImportBranchRules ¶
func (*Importer) ImportLabels ¶ added in v0.24.0
func (*Importer) ImportPullRequests ¶
func (*Importer) ImportWebhooks ¶
func (*Importer) ReadRepoInfo ¶
func (m *Importer) ReadRepoInfo(dir string) (types.Repository, error)
type IncrementalMigrationHandler ¶ added in v0.44.0
type IncrementalMigrationHandler struct {
// contains filtered or unexported fields
}
func NewIncrementalMigrationHandler ¶ added in v0.44.0
func (*IncrementalMigrationHandler) CheckRepositoryExists ¶ added in v0.44.0
func (h *IncrementalMigrationHandler) CheckRepositoryExists(ctx context.Context) error
func (*IncrementalMigrationHandler) GetPROffset ¶ added in v0.44.0
func (h *IncrementalMigrationHandler) GetPROffset(ctx context.Context) (int, error)
func (*IncrementalMigrationHandler) UpdatePRReferences ¶ added in v0.44.0
Click to show internal directories.
Click to hide internal directories.