github

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2022 License: Apache-2.0 Imports: 3 Imported by: ? 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

This section is empty.

Functions

This section is empty.

Types

type Client

type Client interface {
	client.ActionClient
}

type Github

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

func New

func New(opts *Options) (*Github, error)

func (*Github) GetClient

func (gh *Github) GetClient() *client.Client

func (*Github) GetWebhookServer

func (gh *Github) GetWebhookServer() *webhook.Server

type Options

type Options struct {
	AccessToken       string
	APIEndpoint       string
	AppID             int64
	AppPrivateKey     string
	AppInstallationID string
	WebhookAddress    string
	WebhookPath       string
	WebhookSecret     string
}

func (*Options) BindFlags

func (o *Options) BindFlags(fs *flag.FlagSet)

type Opts

type Opts func(*Options)

Opts allows to manipulate Options.

func UseFlagOptions

func UseFlagOptions(in *Options) Opts

UseFlagOptions configures the Github to use the Options set by parsing option flags from the CLI.

Directories

Path Synopsis
mock
Package mock_github is a generated GoMock package.
Package mock_github is a generated GoMock package.
Package errors provides helpers to determines github api client errors.
Package errors provides helpers to determines github api client errors.

Jump to

Keyboard shortcuts

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