client

package
v0.0.0-...-56cd9bb Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 5, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewGitlabClient

func NewGitlabClient(config *config.Config, gitlabClient gitlabclient.GitlabClient, service ldap.Service) *client

Types

type DeadAuthor

type DeadAuthor struct {
	Name     string
	Branches map[int][]string
	Projects map[int]DeadProject
}

type DeadBranch

type DeadBranch struct {
	Author string
	Age    int
}

type DeadProject

type DeadProject struct {
	Name     string
	URL      string
	Owners   []string
	Branches map[string]DeadBranch
}

type DeadResults

type DeadResults struct {
	Projects map[int]DeadProject
	Authors  map[string]DeadAuthor
}

type GitlabClient

type GitlabClient interface {
	CheckPrjRequests(projects map[int]*config.Project, list string) (map[int]MrProject, error)
	DetectDead() DeadResults
}

type MergeRequest

type MergeRequest struct {
	Author   string
	Name     string
	Path     string
	MergedBy string
	Awards   struct {
		Like         bool
		Dislike      bool
		Ready        int
		NotReady     int
		NonCompliant int
	}
}

type MrProject

type MrProject struct {
	MR map[int]MergeRequest
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL