scm

package
v0.0.0-...-ede0ace Latest Latest
Warning

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

Go to latest
Published: Jan 27, 2019 License: GPL-3.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckClone

func CheckClone(ctx context.Context, gitConfig model.GitConfig) int

CheckClone is used to check a git repository conf. Because this method is made to be used through the http api only, it returns a http status directly.

Internally, it Start a dahu-git container and call it with given GitConfig. If an error append during container handling, 500 http code is returned. Else the return code of the call to dahu-git is forwarded.

func Clone

func Clone(ctx context.Context, conf CloneConfiguration) error

todo factorisation with CheckClone()

Types

type CloneConfiguration

type CloneConfiguration struct {
	GitConfig  model.GitConfig
	BranchName string
	VolumeName string
	LogWriter  io.Writer
	NetworkId  string
}

Jump to

Keyboard shortcuts

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