github

package
v0.19.1300 Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2026 License: AGPL-3.0 Imports: 13 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

func CloneURLAuth added in v0.19.1277

func CloneURLAuth(raw string) (string, transport.AuthMethod, error)

CloneURLAuth separates transport credentials from the URL stored by go-git.

func EnsureURL

func EnsureURL(url string) (string, error)

func New

func New(v *validator.Validate, opts ...Option) (*gh, error)

func ParseRepo

func ParseRepo(repo string) (string, string, error)

func RepoPath

func RepoPath(owner, repo, token string) string

Types

type CloneTokenGetter

type CloneTokenGetter interface {
	InstallationToken(context.Context) (string, error)
	ClonePath(context.Context) (string, error)
}

type Option

type Option func(*gh) error

func WithAppKeyClusterInfo

func WithAppKeyClusterInfo(info *kube.ClusterInfo) Option

WithAppKeySecretNamesapce is used to set the k8s secret namespace

func WithAppKeyID

func WithAppKeyID(appKeyID string) Option

WithAppKeyID is used to set the iam role arn to auth with

func WithAppKeySecretName

func WithAppKeySecretName(secretName string) Option

WithAppKeySecretName is used to set the secret name

func WithAppKeySecretNamespace

func WithAppKeySecretNamespace(ns string) Option

WithAppKeySecretNamesapce is used to set the k8s secret namespace

func WithInstallID

func WithInstallID(installID string) Option

WithInstallID is used to set the registry id

func WithRepo

func WithRepo(repo string) Option

WithRepo is used to set the repo with the org/repo format

Jump to

Keyboard shortcuts

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