vcsuser

package
v0.0.0-...-fdf59ed Latest Latest
Warning

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

Go to latest
Published: Oct 15, 2020 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Configuration

type Configuration interface {
	GithubUsername() string
	GithubToken() string
	BaseBranch() string
}

Configuration .

type GithubClient

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

GithubClient .

func NewGithubClient

func NewGithubClient(ctx context.Context, c git.Configuration) *GithubClient

NewGithubClient .

func (*GithubClient) Fetch

func (gc *GithubClient) Fetch(ctx context.Context) (VCSUser, error)

Fetch user name and email from VCS public information in turn override private

type VCSUser

type VCSUser interface {
	Name() string
	Email() string
}

VCSUser .

Jump to

Keyboard shortcuts

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