git

package
v1.0.2-0...-81fcf91 Latest Latest
Warning

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

Go to latest
Published: Nov 14, 2025 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetLatestCommit

func GetLatestCommit(url, reference string, gitAuth *GitAuth) (string, error)

Types

type GitAuth

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

func NewGitAuth

func NewGitAuth(ctx context.Context, client client.Client, f *serverlessv1alpha2.Function) (*GitAuth, error)

func (*GitAuth) GetAuthEnvs

func (a *GitAuth) GetAuthEnvs() []corev1.EnvVar

func (*GitAuth) GetAuthMethod

func (a *GitAuth) GetAuthMethod() (transport.AuthMethod, error)

type GoGitCachedCommitChecker

type GoGitCachedCommitChecker struct {
	Cache cache.Cache
	Log   *zap.SugaredLogger
}

func (GoGitCachedCommitChecker) GetLatestCommit

func (g GoGitCachedCommitChecker) GetLatestCommit(url, reference string, gitAuth *GitAuth, force bool) (string, error)

type LastCommitChecker

type LastCommitChecker interface {
	GetLatestCommit(url, reference string, gitAuth *GitAuth, force bool) (string, error)
}

type LastCommitKey

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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