gitfetcher

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Oct 19, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Overview

Package gitfetcher creates local mirrors from remote git repositories.

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrMissingConfig = errors.New("missing configuration")
	ErrInvalidConfig = errors.New("invalid configuration")
)

Functions

This section is empty.

Types

type Config

type Config interface {
	SourceProvider() string
}

func ParseConfig

func ParseConfig(fp string) (Config, error)

type SourceFetcher

type SourceFetcher interface {
	FetchSources(ctx context.Context) error
}

func NewSourceFetcher

func NewSourceFetcher(root string, cfg Config) (SourceFetcher, error)

Jump to

Keyboard shortcuts

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