git

package
v0.0.0-...-1b48a8e Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2026 License: AGPL-3.0 Imports: 4 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CachedGitClient

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

CachedGitClient wraps a GitClienter and adds in-memory caching for Repositories.

func NewCachedGitClient

func NewCachedGitClient(inner domain.GitClienter, c *gocache.Cache, cacheKey string) *CachedGitClient

func (*CachedGitClient) Archive

func (*CachedGitClient) Blob

func (*CachedGitClient) Branches

func (*CachedGitClient) CheckPAT

func (c *CachedGitClient) CheckPAT(ctx context.Context, token, repoURL string) (bool, *domain.BindRepository, error)

func (*CachedGitClient) CreateWebhook

func (c *CachedGitClient) CreateWebhook(ctx context.Context, opts *domain.CreateWebhookOptions) error

func (*CachedGitClient) DeleteWebhook

func (c *CachedGitClient) DeleteWebhook(ctx context.Context, opts *domain.WebhookOptions) error

func (*CachedGitClient) Logs

func (*CachedGitClient) Repositories

func (*CachedGitClient) Tree

func (*CachedGitClient) UserInfo

func (c *CachedGitClient) UserInfo(ctx context.Context, token string) (*domain.PlatformUserInfo, error)

Directories

Path Synopsis
Package atomgit 提供 atomgit (https://atomgit.com) 客户端。
Package atomgit 提供 atomgit (https://atomgit.com) 客户端。
Package cnb 提供腾讯 CNB (Cloud Native Build, cnb.cool) 客户端。
Package cnb 提供腾讯 CNB (Cloud Native Build, cnb.cool) 客户端。
Package codeup 提供阿里云云效 Codeup 客户端。
Package codeup 提供阿里云云效 Codeup 客户端。
Package gitea 提供 Gitea 客户端功能
Package gitea 提供 Gitea 客户端功能
Package gitee 提供 Gitee 客户端功能
Package gitee 提供 Gitee 客户端功能
Package github 提供 GitHub 客户端功能(PAT 模式,不含 GitHub App)
Package github 提供 GitHub 客户端功能(PAT 模式,不含 GitHub App)
Package gitlab 提供 GitLab 客户端功能,支持多个 GitLab 实例
Package gitlab 提供 GitLab 客户端功能,支持多个 GitLab 实例

Jump to

Keyboard shortcuts

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