github

package
v0.4.12 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2020 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	*github.Client
	// contains filtered or unexported fields
}

func NewClient

func NewClient(appID, installationID int64, privateKeyPath string) (*Client, error)

NewClient returns a client authenticated as a GitHub App.

func NewClientWithAccessToken

func NewClientWithAccessToken(token string) (*Client, error)

NewClient returns a client authenticated with personal access token.

func (*Client) GetRegistrationToken

func (c *Client) GetRegistrationToken(ctx context.Context, repository, name string) (*github.RegistrationToken, error)

GetRegistrationToken returns a registration token tied with the name of repository and runner.

func (*Client) ListRunners

func (c *Client) ListRunners(ctx context.Context, repository string) ([]*github.Runner, error)

ListRunners returns a list of runners of specified repository name.

func (*Client) RemoveRunner

func (c *Client) RemoveRunner(ctx context.Context, repository string, runnerID int64) error

RemoveRunner removes a runner with specified runner ID from repocitory.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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