types

package
v0.0.0-...-1908093 Latest Latest
Warning

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

Go to latest
Published: Nov 22, 2020 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const (
	PreferGoGit  = PreferredLib("go-git")
	PreferGit2Go = PreferredLib("git2go")
)
View Source
const (
	InvalidTagMode = GoGitTagMode(gogit.InvalidTagMode)
	TagFollowing   = GoGitTagMode(gogit.TagFollowing)
	AllTags        = GoGitTagMode(gogit.AllTags)
	NoTags         = GoGitTagMode(gogit.NoTags)
)
View Source
const (
	StatusCurrent         = git2go.StatusCurrent
	StatusIndexNew        = git2go.StatusIndexNew
	StatusIndexModified   = git2go.StatusIndexModified
	StatusIndexDeleted    = git2go.StatusIndexDeleted
	StatusIndexRenamed    = git2go.StatusIndexRenamed
	StatusIndexTypeChange = git2go.StatusIndexTypeChange
	StatusWtNew           = git2go.StatusWtNew
	StatusWtModified      = git2go.StatusWtModified
	StatusWtDeleted       = git2go.StatusWtDeleted
	StatusWtTypeChange    = git2go.StatusWtTypeChange
	StatusWtRenamed       = git2go.StatusWtRenamed
	StatusIgnored         = git2go.StatusIgnored
	StatusConflicted      = git2go.StatusConflicted
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Auth

type Auth struct {
	User       string
	Password   string
	SSHId      string
	Passphrase string
}

func (Auth) GenGit2GoAuth

func (a Auth) GenGit2GoAuth(url string, username string, allowedTypes gitgo.CredType) (*gitgo.Cred, error)

func (Auth) GenGoGitAuth

func (a Auth) GenGoGitAuth(url string) (transport.AuthMethod, error)

type Branch

type Branch struct {
	Git2Go *git2go.Branch
	GoGit  *config.Branch
}

func (Branch) Name

func (r Branch) Name() string

func (Branch) String

func (r Branch) String() string

type Commit

type Commit struct {
	GoGit  *object.Commit
	Git2Go *git.Commit
}

type Diff

type Diff struct {
	Git2Go *git2go.Diff
	GoGit  object.Changes
}

func (Diff) String

func (r Diff) String() string

type Git2GoDownloadTags

type Git2GoDownloadTags gitgo.DownloadTags

type Git2GoStatus

type Git2GoStatus git2go.Status

type GoGitSubmoduleRescursivity

type GoGitSubmoduleRescursivity gogit.SubmoduleRescursivity

type GoGitTagMode

type GoGitTagMode gogit.TagMode
type HEAD struct {
	Git2Go *git2go.Reference
	GoGit  *plumbing.Reference
}

type Options

type Options struct {
	Progress io.Writer
	WorkDir  string
	PreferredLib
	Auth

	// Opened Repository will be saved in the Options if enabled
	FollowOpenedRepo bool
	CtxRepo          *Repository
	Context          context.Context
}

func (*Options) OpenGit2GoRepo

func (opt *Options) OpenGit2GoRepo() (repo *gitgo.Repository, err error)

func (*Options) OpenGoGitRepo

func (opt *Options) OpenGoGitRepo() (repo *gogit.Repository, err error)

func (*Options) WithContext

func (opt *Options) WithContext(ctx context.Context) *Options

func (*Options) WithLibGit2Go

func (opt *Options) WithLibGit2Go() *Options

func (*Options) WithLibGoGit

func (opt *Options) WithLibGoGit() *Options

func (*Options) WithPreferredLib

func (opt *Options) WithPreferredLib(lib PreferredLib) *Options

func (*Options) WithRepo

func (opt *Options) WithRepo(repo *Repository)

type PreferredLib

type PreferredLib string

type Reference

type Reference struct {
	GoGit  *plumbing.Reference
	Git2Go *git.Reference
}

type Remote

type Remote struct {
	Git2Go *git2go.Remote
	GoGit  *gogit.Remote
}

func (Remote) Name

func (r Remote) Name() string

func (Remote) String

func (r Remote) String() string

func (Remote) URL

func (r Remote) URL() string

type Repository

type Repository struct {
	Git2Go *git2go.Repository
	GoGit  *gogit.Repository
}

type Status

type Status struct {
	Git2Go *git2go.StatusList
	GoGit  gogit.Status
}

type User

type User struct {
	Name  string
	Email string
}

Jump to

Keyboard shortcuts

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