github

package
v0.0.0-...-c2b5c71 Latest Latest
Warning

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

Go to latest
Published: Dec 12, 2023 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Overview

Package github provides a client to interact with Github API

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthenticatedGithubClient

type AuthenticatedGithubClient struct {
	GithubClient *github.Client
	// contains filtered or unexported fields
}

AuthenticatedGithubClient is an oauth2 using Github API client

func NewAuthenticatedGithubClient

func NewAuthenticatedGithubClient(ctx context.Context, token string) (*AuthenticatedGithubClient, error)

NewAuthenticatedGithubClient creates a Github client with custom oauth2 client

func (*AuthenticatedGithubClient) GetUsers

func (c *AuthenticatedGithubClient) GetUsers(ctx context.Context, user string) (*github.User, error)

GetUsers uses authenticated client to get user information

Jump to

Keyboard shortcuts

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