Help us shape the future of Go! Take the 2026 Go Developer Survey

gogit

package
v0.15.2 Latest Latest
Warning

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

Go to latest
Published: Jun 22, 2021 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AuthSecretStrategyForURL

func AuthSecretStrategyForURL(URL string) (git.AuthSecretStrategy, error)

Types

type BasicAuth

type BasicAuth struct{}

func (*BasicAuth) Method

func (s *BasicAuth) Method(secret corev1.Secret) (*git.Auth, error)

type CheckoutBranch

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

func (*CheckoutBranch) Checkout

func (c *CheckoutBranch) Checkout(ctx context.Context, path, url string, auth *git.Auth) (git.Commit, string, error)

type CheckoutCommit

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

func (*CheckoutCommit) Checkout

func (c *CheckoutCommit) Checkout(ctx context.Context, path, url string, auth *git.Auth) (git.Commit, string, error)

type CheckoutSemVer

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

func (*CheckoutSemVer) Checkout

func (c *CheckoutSemVer) Checkout(ctx context.Context, path, url string, auth *git.Auth) (git.Commit, string, error)

type CheckoutTag

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

func (*CheckoutTag) Checkout

func (c *CheckoutTag) Checkout(ctx context.Context, path, url string, auth *git.Auth) (git.Commit, string, error)

type Commit

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

func (*Commit) Hash

func (c *Commit) Hash() string

func (*Commit) Verify

func (c *Commit) Verify(secret corev1.Secret) error

Verify returns an error if the PGP signature can't be verified

type PublicKeyAuth

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

func (*PublicKeyAuth) Method

func (s *PublicKeyAuth) Method(secret corev1.Secret) (*git.Auth, error)

Jump to

Keyboard shortcuts

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