Files

22 lines
467 B
Go
Raw Permalink Normal View History

2023-04-19 20:10:09 +02:00
// Package source retrieves source code
package source
2024-02-21 10:20:36 +01:00
// Source retrieves source code.
2023-04-19 20:10:09 +02:00
type Source interface {
// Fetch repo from a url
Fetch(url string) (*Repository, error)
// Commit and upload repo
Commit(*Repository) error
// The sourcerer
String() string
}
2024-02-21 10:20:36 +01:00
// Repository is the source repository.
2023-04-19 20:10:09 +02:00
type Repository struct {
// Name or repo
Name string
// Local path where repo is stored
Path string
// URL from which repo was retrieved
URL string
}