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: 0

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