clone

package
v0.3.2 Latest Latest
Warning

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

Go to latest
Published: Sep 20, 2024 License: MIT Imports: 5 Imported by: 0

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 WithDir

func WithDir(d string) OptionsFunc

WithDir is an OptionsFunc to set dir 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

NewService creates a new Service instance

func (Service) CloneAll added in v0.3.2

func (s Service) CloneAll() error

CloneAll clones all projects

func (Service) CloneProject added in v0.3.2

func (s Service) CloneProject(project string) error

CloneProject clones a project

func (Service) CloneProjectsFromGroup added in v0.3.2

func (s Service) CloneProjectsFromGroup(group string) error

CloneProjectsFromGroup clones all projects from a GitLab group

Jump to

Keyboard shortcuts

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