client

package
v0.0.0-...-47da83e Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2021 License: Apache-2.0 Imports: 2 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitClient

func InitClient(baseURL, accessToken string) error

InitClient initializes the gitlab client

Types

type Client

type Client struct {
	*gitlab.Client
}

Client rapresents gitlab client wrapper

func GetClient

func GetClient() *Client

GetClient returns the initialized gitlabe client

func (*Client) GetProjectJobsStats

func (client *Client) GetProjectJobsStats(pid string) ([]*JobStats, error)

GetProjectJobsStats returns the project jobs stats

type JobStats

type JobStats struct {
	Name        string
	Total       int
	MaxDuration float64
	MinDuration float64
	AvgDuration float64
}

JobStats rapresents the job stats

Jump to

Keyboard shortcuts

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