github

package
v0.0.0-...-70c7384 Latest Latest
Warning

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

Go to latest
Published: Nov 17, 2022 License: BSD-3-Clause Imports: 6 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{}

func NewClient

func NewClient() *Client

func (*Client) ExchangeCodeToAccessKey

func (c *Client) ExchangeCodeToAccessKey(ctx context.Context, clientID, clientSecret, code string) (string, error)

func (*Client) GetUser

func (c *Client) GetUser(ctx context.Context, accessKey, user string) (*github.User, error)

func (*Client) IsMember

func (c *Client) IsMember(ctx context.Context, accessKey string, org, user string) (bool, error)

Jump to

Keyboard shortcuts

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