git

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Oct 16, 2018 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ProgressLogger

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

ProgressLogger is a writer for git progress

func (*ProgressLogger) Write

func (l *ProgressLogger) Write(p []byte) (n int, err error)

Write a log without CR or later.

type Service

type Service interface {
	Clone(ctx context.Context, dir string, src TargetSource) error
}

Service describes a git service.

func New

func New() (Service, error)

New returns the Service.

type TargetSource added in v0.4.0

type TargetSource interface {
	GetURL() string
	GetRef() string
	GetSHA() plumbing.Hash
}

TargetSource is a interface returns clone URL, Ref and SHA for target

Directories

Path Synopsis
Package mock_git is a generated GoMock package.
Package mock_git is a generated GoMock package.

Jump to

Keyboard shortcuts

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