git

package
v0.0.0-...-b3607fc Latest Latest
Warning

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

Go to latest
Published: Jan 23, 2025 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetGithubToken

func GetGithubToken(privateKeyFile string, githubAppId, githubInstallationId int64) (string, error)

func NewGit

func NewGit(cfg *GitConfig, filename string) (io.Writer, error)

Types

type AuthTokenClaim

type AuthTokenClaim struct {
	*jwt.RegisteredClaims
}

type GitConfig

type GitConfig struct {
	GitUrl               string
	GitDirectory         string
	GitPrivateKeyFile    string
	GitPassword          string
	GithubAppId          int64
	GithubInstallationId int64
}

type InstallationAuthResponse

type InstallationAuthResponse struct {
	Token       string    `json:"token"`
	ExpiresAt   time.Time `json:"expires_at"`
	Permissions struct {
		Checks       string `json:"checks"`
		Contents     string `json:"contents"`
		Deployments  string `json:"deployments"`
		Metadata     string `json:"metadata"`
		PullRequests string `json:"pull_requests"`
		Statuses     string `json:"statuses"`
	} `json:"permissions"`
	RepositorySelection string `json:"repository_selection"`
}

Jump to

Keyboard shortcuts

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