pullapprove

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Dec 28, 2020 License: MIT Imports: 5 Imported by: 0

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