gogit

package
v0.24.3 Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2022 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Implementation git.Implementation = "go-git"
)

Variables

This section is empty.

Functions

func CheckoutStrategyForOptions added in v0.17.0

func CheckoutStrategyForOptions(_ context.Context, opts git.CheckoutOptions) git.CheckoutStrategy

CheckoutStrategyForOptions returns the git.CheckoutStrategy for the given git.CheckoutOptions.

Types

type CheckoutBranch

type CheckoutBranch struct {
	Branch            string
	RecurseSubmodules bool
}

func (*CheckoutBranch) Checkout

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

type CheckoutCommit

type CheckoutCommit struct {
	Branch            string
	Commit            string
	RecurseSubmodules bool
}

func (*CheckoutCommit) Checkout

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

type CheckoutSemVer

type CheckoutSemVer struct {
	SemVer            string
	RecurseSubmodules bool
}

func (*CheckoutSemVer) Checkout

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

type CheckoutTag

type CheckoutTag struct {
	Tag               string
	RecurseSubmodules bool
}

func (*CheckoutTag) Checkout

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

type CustomPublicKeys added in v0.23.0

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

CustomPublicKeys is a wrapper around ssh.PublicKeys to help us customize the ssh config. It implements ssh.AuthMethod.

func (*CustomPublicKeys) ClientConfig added in v0.23.0

func (a *CustomPublicKeys) ClientConfig() (*gossh.ClientConfig, error)

func (*CustomPublicKeys) Name added in v0.23.0

func (a *CustomPublicKeys) Name() string

func (*CustomPublicKeys) String added in v0.23.0

func (a *CustomPublicKeys) String() string

Jump to

Keyboard shortcuts

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