wrapper

package
v0.59.1 Latest Latest
Warning

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

Go to latest
Published: Nov 19, 2024 License: Apache-2.0 Imports: 4 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 {
	Client *github.Client
}

Client is the wrapper around google's go-github client

func NewClient

func NewClient(token string) Client

NewClient returns an actual github client

func (Client) ListRepoAlerts

func (gc Client) ListRepoAlerts(ctx context.Context, owner string, repo string, opt *github.AlertListOptions) ([]*github.Alert, *github.Response, error)

ListRepoAlerts is a thin wrapper around github's ListRepoAlerts

func (Client) ListRepoDependabotAlerts

func (gc Client) ListRepoDependabotAlerts(ctx context.Context, owner string, repo string, opt *github.ListAlertsOptions) ([]*github.DependabotAlert, *github.Response, error)

ListRepoDependabotAlerts is a thin wrapper around github's ListRepoDependabotAlerts

type Wrapper

type Wrapper interface {
	// ListRepoAlerts is a thin wrapper around github's equivalent
	ListRepoAlerts(ctx context.Context, owner string, repo string, opt *github.AlertListOptions) ([]*github.Alert, *github.Response, error)

	// ListRepoDependabotAlerts is a thin wrapper around github's equivalent
	ListRepoDependabotAlerts(ctx context.Context, owner string, repo string, opt *github.ListAlertsOptions) ([]*github.DependabotAlert, *github.Response, error)
}

Wrapper is the wrapper interface that allows the github client to be pluggable

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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