github

package
v0.19.771 Latest Latest
Warning

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

Go to latest
Published: Feb 7, 2026 License: AGPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

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