Documentation
¶
Index ¶
- type Options
- type Provider
- type Registry
- func (r *Registry) Register(p Provider)
- func (r *Registry) RetrieveProfileOptions(ctx context.Context, profile *url.URL, login *config.Login) ([]gitea.MigrateRepoOption, error)
- func (r *Registry) RetrieveRepoOptions(ctx context.Context, repo *url.URL, login *config.Login) (*gitea.MigrateRepoOption, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Provider ¶
type Provider interface {
GetType() gitea.GitServiceType
GetHosts() []string
RetrieveRepoOptions(ctx context.Context, repo *url.URL, login *config.Login) (*Options, error)
RetrieveProfileOptions(ctx context.Context, owner *url.URL, login *config.Login) ([]Options, error)
}
func NewGitHubProvider ¶
func NewGitHubProvider() Provider
type Registry ¶
type Registry struct {
// contains filtered or unexported fields
}
func NewRegistry ¶
func NewRegistry() *Registry
func (*Registry) RetrieveProfileOptions ¶
Click to show internal directories.
Click to hide internal directories.