git

package
v0.0.0-...-b1a156a Latest Latest
Warning

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

Go to latest
Published: May 12, 2020 License: Zlib Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Service

type Service struct{}

Service represents a service for managing Git.

func NewService

func NewService(dataStorePath string) (*Service, error)

NewService initializes a new service.

func (*Service) ClonePrivateRepositoryWithBasicAuth

func (service *Service) ClonePrivateRepositoryWithBasicAuth(repositoryURL, referenceName string, destination, username, password string) error

ClonePrivateRepositoryWithBasicAuth clones a private git repository using the specified URL in the specified destination folder. It will use the specified username and password for basic HTTP authentication.

func (*Service) ClonePublicRepository

func (service *Service) ClonePublicRepository(repositoryURL, referenceName string, destination string) error

ClonePublicRepository clones a public git repository using the specified URL in the specified destination folder.

Jump to

Keyboard shortcuts

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