github

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Feb 2, 2021 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Overview

Package github provides the ability for Vela to integrate with GitHub or GitHub Enterprise as a source provider.

Usage:

import "github.com/go-vela/server/source/github"

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(c *cli.Context) (*client, error)

New returns a Source implementation that integrates with GitHub or a GitHub Enterprise instance.

nolint: golint // ignore returning unexported client

func NewTest

func NewTest(urls ...string) (*client, error)

NewTest returns a Source implementation that integrates with the provided mock server. Only the url from the mock server is required.

This function is intended for running tests only.

nolint: golint // ignore returning unexported client

Types

This section is empty.

Jump to

Keyboard shortcuts

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