git

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Jun 27, 2021 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthMethod added in v0.0.4

type AuthMethod = transport.AuthMethod

func PasswordAuth added in v0.0.4

func PasswordAuth(user string, password string) (AuthMethod, error)

func PasswordCallbackAuth added in v0.0.4

func PasswordCallbackAuth(user string, password func() (password string, err error)) (AuthMethod, error)

func PublicKeyAuth added in v0.0.4

func PublicKeyAuth(user string, pemBytes []byte, password string) (AuthMethod, error)

type CloneOptions added in v0.0.4

type CloneOptions = git.CloneOptions

type Describe

type Describe struct {
	Tag     string
	Hash    Hash
	Branch  string
	Counter int
}

func GetDescribe

func GetDescribe(path string) (describe Describe, err error)

func (Describe) String

func (info Describe) String() string

func (Describe) Version added in v0.0.4

func (info Describe) Version(prefix string) string

type Hash added in v0.0.4

type Hash [20]byte

func (Hash) IsZero added in v0.0.4

func (h Hash) IsZero() bool

func (Hash) Short added in v0.0.4

func (h Hash) Short() string

func (Hash) String added in v0.0.4

func (h Hash) String() string

type Repository added in v0.0.4

type Repository = git.Repository

func Clone added in v0.0.4

func Clone(ctx context.Context, path string, isBare bool, o *CloneOptions) (repo *Repository, err error)

func Open added in v0.0.4

func Open(path string) (repo *Repository, err error)

Jump to

Keyboard shortcuts

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