github

package
v0.0.0-...-b1ff3cb Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2026 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func TokenFingerprint

func TokenFingerprint(accessToken string) string

func TokenLength

func TokenLength(accessToken string) int

Types

type Client

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

func NewClient

func NewClient(client *http.Client, config Config) *Client

func (*Client) FetchRepositoryMetadata

func (c *Client) FetchRepositoryMetadata(ctx context.Context, accessToken string, identity domain.GitRepositoryIdentity) (*domain.GitHubRepositoryMetadata, error)

type Config

type Config struct {
	APIBase                     string
	DisableTransportDiagnostics bool
}

type GitHubRepositoryMetadata

type GitHubRepositoryMetadata struct {
	DefaultBranch string `json:"default_branch"`
	HTMLURL       string `json:"html_url"`
}

Jump to

Keyboard shortcuts

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