Documentation ¶
Index ¶
Constants ¶
View Source
const ( // DefaultInterval is the minimum interval to delay before // requesting another git pull DefaultInterval time.Duration = time.Hour )
Variables ¶
View Source
var (
// Services holds all git pulling services and provides the function to stop them.
Services = &services{}
)
Functions ¶
Types ¶
type Repo ¶
type Repo struct { URL string // Repository URL Path string // Directory to pull to Branch string // Git branch Interval time.Duration // Interval between pulls CloneArgs []string // Additonal cli args to pass to git clone PullArgs []string // Additonal cli args to pass to git pull sync.Mutex // contains filtered or unexported fields }
Repo is the structure that holds required information of a git repository.
Click to show internal directories.
Click to hide internal directories.