Documentation ¶
Overview ¶
Package gitfetcher creates local mirrors from remote git repositories.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ParseConfig ¶
ParseConfig returns a parsed configuration from a given path. The path may either point to a configuration file or a folder, in which case the default configuration file name will be used. The configuration's root will be automatically populated.
Types ¶
type Config ¶
Config is the generated configuration type, exported here for use in helper signatures.
type Source ¶ added in v0.1.0
type Source struct {
FullName, FetchURL, Description, DefaultBranch, Path string
LastUpdatedAt time.Time
// contains filtered or unexported fields
}
Source captures information about a repository to be mirrored.
type SyncStatus ¶ added in v0.3.0
type SyncStatus int
SyncStatus captures possible states of the local repository vs its remote.
const ( SyncStatusAbsent SyncStatus = iota SyncStatusStale SyncStatusFresh )
func GetSyncStatus ¶ added in v0.3.0
func GetSyncStatus(src *Source, opts *configpb.Options) SyncStatus
GetSyncStatus returns the current SyncStatus of a source.
Click to show internal directories.
Click to hide internal directories.