Documentation
¶
Index ¶
- Variables
- func IsDone(ctx context.Context) bool
- type Git
- func (g *Git) Fetch(ctx context.Context) error
- func (g *Git) LatestRemoteCommitHash(ctx context.Context, url string) (string, error)
- func (g *Git) LatestTag(ctx context.Context, revision string) (string, error)
- func (g Git) Log(ctx context.Context, revision string) (*GitLog, error)
- func (g *Git) RemoteOriginURL(ctx context.Context) (string, error)
- type GitLog
- type GitLogMember
- type Lines
- type Log
- type LogElement
- type LogMember
- type LogTimeDiff
- type Logger
- type Result
- type Worker
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrGit = errors.New("Git")
)
Functions ¶
Types ¶
type Git ¶
type Git struct {
Dir string
}
func (*Git) LatestRemoteCommitHash ¶
type GitLog ¶
type GitLog struct {
Hash string
Tree string
Parent []string
Author GitLogMember
Committer GitLogMember
Message string
}
type GitLogMember ¶
type Log ¶
type Log struct {
URL string `json:"url"`
Dir string `json:"dir"`
Local LogElement `json:"local"`
Remote LogElement `json:"remote"`
LocalTag *LogElement `json:"local_tag,omitempty"`
RemoteTag *LogElement `json:"remote_tag,omitempty"`
}
type LogElement ¶
type LogElement struct {
Hash string `json:"hash"`
Tree string `json:"tree"`
Parent []string `json:"parent"`
Message string `json:"message"`
Author LogMember `json:"author"`
Committer LogMember `json:"committer"`
TimeDiffFromLocal LogTimeDiff `json:"time_diff_from_local"`
Tag string `json:"tag,omitempty"`
}
type LogTimeDiff ¶
Click to show internal directories.
Click to hide internal directories.