pullapprove

package
v0.0.15 Latest Latest
Warning

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

Go to latest
Published: Aug 16, 2019 License: MIT Imports: 5 Imported by: 0 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

This section is empty.

Variables

View Source
var (
	// ErrPullApproveUnauthorized is used when we receive a 401 from pull approve
	ErrPullApproveUnauthorized = errors.New("you do not have permissions to use pull approve API")

	// ErrPullApproveServerError is used when we receive a code different than 200 from pull approve
	ErrPullApproveServerError = errors.New("could not create a pull approve repository")
)

Functions

This section is empty.

Types

type Client

type Client struct {
	Token string
	// contains filtered or unexported fields
}

Client represents a pull approve client

func New

func New(token string) *Client

New creates a new instance of Client

func (*Client) Create

func (c *Client) Create(name string, org string) error

Create creates a new repository on pull approve

func (*Client) Delete

func (c *Client) Delete(name string, org string) error

Delete deletes a repository from pull approve

Jump to

Keyboard shortcuts

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