gitfetcher

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Oct 19, 2024 License: MIT Imports: 14 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

func ParseConfig

func ParseConfig(fp string) (*configpb.Config, error)

func SyncSources added in v0.1.0

func SyncSources(ctx context.Context, root string, srcs []*Source) error

Types

type Source added in v0.1.0

type Source struct {
	Name, FetchURL, Description string

	LastUpdatedAt time.Time
	// contains filtered or unexported fields
}

Source captures information about a repository to be mirrored.

func FindSources added in v0.1.0

func FindSources(ctx context.Context, cfg *configpb.Config) ([]*Source, error)

FindSources returns all sources for the provided configuration.

Jump to

Keyboard shortcuts

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