gitstatus

package
v0.0.0-...-55cc30f Latest Latest
Warning

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

Go to latest
Published: Dec 10, 2018 License: MIT Imports: 14 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const (
	GithubProvider = "github"
	GitlabProvider = "gitlab"
)

Constants for gitproivers

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	Log          *logrus.Logger
	GithubClient *github.Client
	GitlabClient *gitlab.Client
}

Client Struct

func NewGithubClient

func NewGithubClient(log *logrus.Logger, organization graphql.Organization) *Client

NewGithubClient returns client for github

func (*Client) DeleteFromStatusMap

func (c *Client) DeleteFromStatusMap(buildIDGql types.ID)

DeleteFromStatusMap deletes build when finished

func (*Client) SendNotification

func (c *Client) SendNotification(wf *wfv1.Workflow, commitSha types.String, buildIDGql types.ID, buildBranch types.String, pipeline graphql.Pipeline)

SendNotification send notification to github

Jump to

Keyboard shortcuts

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