github

package
v0.42.1 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type OAuthClient

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

OAuthClient is a oauth client for github.

func NewOAuthClient

func NewOAuthClient(ctx context.Context,
	sso *model.ProjectSSOConfig_GitHub,
	rbac *model.ProjectRBACConfig,
	project *model.Project,
	code string,
) (*OAuthClient, error)

NewOAuthClient creates a new oauth client for GitHub.

func (*OAuthClient) GetUser

func (c *OAuthClient) GetUser(ctx context.Context) (*model.User, error)

GetUser returns a user model.

Jump to

Keyboard shortcuts

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