gh

package
v0.0.0-...-53678da Latest Latest
Warning

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

Go to latest
Published: Jun 17, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrGithubApiCallFailed = errors.New("github error")

Functions

This section is empty.

Types

type Client

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

func NewClient

func NewClient(token string) *Client

func (*Client) FetchKeys

func (client *Client) FetchKeys(ctx context.Context, user string) ([]string, error)

func (*Client) FetchMembers

func (client *Client) FetchMembers(ctx context.Context, orgName string) ([]string, error)

func (*Client) FetchUsers

func (client *Client) FetchUsers(ctx context.Context, orgName string) ([]User, error)

type User

type User struct {
	Login string
	Keys  []string
}

Jump to

Keyboard shortcuts

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