git

package
v0.0.0-...-607164b Latest Latest
Warning

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

Go to latest
Published: May 29, 2026 License: AGPL-3.0 Imports: 3 Imported by: 0

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 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