source

package
v0.13.0 Latest Latest
Warning

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

Go to latest
Published: Jan 3, 2025 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Source

type Source struct {
	// Qualified repository name, typically $owner/$name. Non-empty.
	FullName string
	// Optional human-readable description. May be empty.
	Description string
	// Default branch. May be empty.
	DefaultBranch string
	// Local relative path override. May be empty.
	RelPath fspath.POSIX
	// Last time the remote repository was updated. Zero if unknown.
	LastUpdatedAt time.Time
	// URL used to fetch repository updates. Non-empty.
	FetchURL string
	// Git flags used to fetch repository updates.
	FetchFlags []string
}

Source captures information about a repository to be mirrored.

func Load

func Load(ctx context.Context, configs []*configpb.Source) ([]Source, error)

Load 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