clone

package
v0.0.0-...-81934b1 Latest Latest
Warning

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

Go to latest
Published: Jan 17, 2019 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FormatRecord

func FormatRecord(record Record) string

FormatRecord describes the record in a human-readable manner for inclusion into build logs

func PathForRefs

func PathForRefs(baseDir string, refs kube.Refs) string

PathForRefs determines the full path to where refs should be cloned

Types

type Command

type Command struct {
	Command string `json:"command"`
	Output  string `json:"output,omitempty"`
	Error   string `json:"error,omitempty"`
}

Command is a trace of a command executed while achieving the desired git state.

type Record

type Record struct {
	Refs     kube.Refs `json:"refs"`
	Commands []Command `json:"commands"`
	Failed   bool      `json:"failed"`
}

Record is a trace of what the desired git state was, what steps we took to get there, and whether or not we were successful.

func Run

func Run(refs kube.Refs, dir, gitUserName, gitUserEmail, cookiePath string, env []string) Record

Run clones the refs under the prescribed directory and optionally configures the git username and email in the repository as well.

Jump to

Keyboard shortcuts

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