Documentation ¶
Index ¶
- Constants
- Variables
- func CleanUrlSpaces(dirtyStrings ...string) []string
- func FileExists(path string) bool
- func GetChangeAction(change *object.Change) string
- func GetChangeContent(change *object.Change) (result string, contentError error)
- func GetChangePath(change *object.Change) string
- func GetChanges(commit *object.Commit, repo *git.Repository) (object.Changes, error)
- func GetRepositoryHistory(repository *git.Repository) ([]*object.Commit, error)
- func Pluralize(count int, singular string, plural string) string
- func TruncateString(str string, maxLength int) string
- type CloneConfiguration
- type IClient
- type Logger
- func (l *Logger) Debug(format string, args ...interface{})
- func (l *Logger) Error(format string, args ...interface{})
- func (l *Logger) Fatal(format string, args ...interface{})
- func (l *Logger) Important(format string, args ...interface{})
- func (l *Logger) Info(format string, args ...interface{})
- func (l *Logger) Log(level int, format string, args ...interface{})
- func (l *Logger) SetDebug(d bool)
- func (l *Logger) SetSilent(s bool)
- func (l *Logger) Warn(format string, args ...interface{})
- type Owner
- type Repository
Constants ¶
View Source
const ( Name = "gitrob" Version = "3.2.1-beta" ASCIIBanner = " _ __ __\n" + " ___ _(_) /________ / /\n" + " / _ `/ / __/ __/ _ \\/ _ \\\n" + " \\_, /_/\\__/_/ \\___/_.__/\n" + "/___/ by @michenriksen & @codeEmitter" )
View Source
const ( FATAL = 5 ERROR = 4 WARN = 3 IMPORTANT = 2 INFO = 1 DEBUG = 0 )
View Source
const ( TargetTypeUser = "User" TargetTypeOrganization = "Organization" )
View Source
const (
EmptyTreeCommitId = "4b825dc642cb6eb9a060e54bf8d69288fbee4904"
)
View Source
const GitLabTanuki = "\n" +
" // // \n" +
" //// //// \n" +
" ////// ////// \n" +
" ((((((((/////////(((((((( \n" +
" ((((((((////////((((((((( \n" +
" ((((((((((///////(((((((((( \n" +
" ((((((((/////(((((((( \n" +
" (((((///((((( \n" +
" (((/((( \n" +
" * \n" +
" GitLab Red Team \n" +
"\n"
Variables ¶
View Source
var LogColors = map[int]*color.Color{ FATAL: color.New(color.FgRed).Add(color.Bold), ERROR: color.New(color.FgRed), WARN: color.New(color.FgYellow), IMPORTANT: color.New(color.Bold), DEBUG: color.New(color.FgCyan).Add(color.Faint), }
View Source
var NewlineRegex = regexp.MustCompile(`\r?\n`)
View Source
var UserAgent = fmt.Sprintf("%s v%s", Name, Version)
Functions ¶
func CleanUrlSpaces ¶
func FileExists ¶
func GetChangeAction ¶
func GetChangeContent ¶
func GetChangePath ¶
func GetChanges ¶
func GetRepositoryHistory ¶
func TruncateString ¶
Types ¶
type CloneConfiguration ¶
Click to show internal directories.
Click to hide internal directories.