Documentation ¶
Index ¶
Constants ¶
View Source
const ( // SSHMode mode SSHMode uint8 = iota // HTTPMode mode HTTPMode )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type OptionsFunc ¶
type OptionsFunc func(*Service)
OptionsFunc to set options to Service
func WithBasePath ¶
func WithBasePath(p string) OptionsFunc
WithBasePath is an OptionsFunc to set basePath to Service
func WithMode ¶
func WithMode(m uint8) OptionsFunc
WithMode is an OptionsFunc to set mode to Service
func WithUseNamespacePath ¶
func WithUseNamespacePath() OptionsFunc
WithUseNamespacePath is an OptionsFunc to set useNamespacePath to Service
type Service ¶ added in v0.3.2
type Service struct {
// contains filtered or unexported fields
}
Service struct defines a service to clone projects
func NewService ¶ added in v0.3.2
func NewService(project ports.GitlabProjectRepository, group ports.GitlabGroupRepository, git ports.GitRepository, storage ports.StorageRepository, opts ...OptionsFunc) (Service, error)
NewService creates a new Service instance
func (Service) CloneProject ¶ added in v0.3.2
CloneProject clones a project
func (Service) CloneProjectsFromGroup ¶ added in v0.3.2
CloneProjectsFromGroup clones all projects from a GitLab group
Click to show internal directories.
Click to hide internal directories.