Documentation
¶
Index ¶
- Constants
- func NewBitbucket(ctx context.Context, logger *slog.Logger) (*bitbucket, error)
- func NewGitea(ctx context.Context, logger *slog.Logger) (*gitea, error)
- func NewMigration(ctx context.Context, opts Option) (*migration, error)
- type CreateNewOrgOption
- type CreateOrgOption
- type CreateUserOption
- type MigrateNewRepoOption
- type MigrateRepoOption
- type Option
- type ProjectResponse
- type RepositoryResponse
Constants ¶
View Source
const ( // project permission ProjectAdmin = "PROJECT_ADMIN" ProjectWrite = "PROJECT_WRITE" ProjectRead = "PROJECT_READ" // repo permission RepoAdmin = "REPO_ADMIN" RepoWrite = "REPO_WRITE" RepoRead = "REPO_READ" RepoCreate = "REPO_CREATE" )
Variables ¶
This section is empty.
Functions ¶
func NewBitbucket ¶
NewBitbucket creates a new instance of the bitbucket struct.
Types ¶
type CreateNewOrgOption ¶
type CreateNewOrgOption struct {
Name string
Description string
Public bool
Permission map[string][]string
}
CreateNewOrgOption create new organization option
type CreateOrgOption ¶
CreateOrgOption create organization option
type CreateUserOption ¶
type MigrateNewRepoOption ¶
type MigrateNewRepoOption struct {
Owner string
Name string
CloneAddr string
Description string
Private bool
Permission map[string][]string
}
MigrateNewRepoOption migrate repository option
type MigrateRepoOption ¶
type MigrateRepoOption struct {
RepoName string
RepoOwner string
CloneAddr string
Private bool
Description string
AuthUsername string
AuthPassword string
}
MigrateRepoOption migrate repository option
type ProjectResponse ¶
type ProjectResponse struct {
Project bitbucketv1.Project
Permission map[string][]string
}
ProjectResponse project response
type RepositoryResponse ¶
type RepositoryResponse struct {
Repository bitbucketv1.Repository
Permission map[string][]string
}
RepositoryResponse repository response
Click to show internal directories.
Click to hide internal directories.