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: 0

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