ghx

package
v1.10.0 Latest Latest
Warning

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

Go to latest
Published: Sep 7, 2021 License: MIT 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 {
	*github.Client
	// contains filtered or unexported fields
}

func New

func New(o *Options) *Client

func (*Client) ListOrgRepositories

func (c *Client) ListOrgRepositories(ctx context.Context, opts *github.RepositoryListByOrgOptions) ([]*github.Repository, error)

func (*Client) ListOrganizations

func (c *Client) ListOrganizations(ctx context.Context, opts *github.ListOptions) ([]*github.Organization, error)

func (*Client) ListRepositories

func (c *Client) ListRepositories(ctx context.Context, opts *github.RepositoryListOptions) ([]*github.Repository, error)

func (*Client) Run

func (c *Client) Run(ctx context.Context) error

type Options

type Options struct {
	Logger   *zap.SugaredLogger `json:"-" yaml:"-"`
	ApiToken string             `json:"api_token" yaml:"api_token"`
	User     string             `json:"user" yaml:"user"`
	Org      string             `json:"org" yaml:"org"`
}

Jump to

Keyboard shortcuts

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