github

package
v0.0.0-...-dab0c99 Latest Latest
Warning

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

Go to latest
Published: Sep 23, 2019 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Owner

func Owner(repo string) string

Owner extracts the owner from the provided repository HTTPS or SSH URL.

Types

type Client

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

Client is a high-level GitHub client, wrapping around a google/go-github/github#Client.

func NewClient

func NewClient(ctx context.Context, username string) (*Client, error)

NewClient returns an authenticated GitHub client.

func (Client) AddDeployKey

func (c Client) AddDeployKey(ctx context.Context, repo string, key *github.Key)

AddDeployKey adds the provided deploy key to the provided repository.

Jump to

Keyboard shortcuts

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