common

package
v0.0.0-...-1a62c48 Latest Latest
Warning

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

Go to latest
Published: Aug 14, 2018 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func UnzipFile

func UnzipFile(body io.ReadCloser, path string) error

UnzipFile unzip a file(from resp.Body) to the spec path

func ZipFiles

func ZipFiles(filename string, files []string) error

ZipFiles compresses one or many files into a single zip archive file

Types

type GitScm

type GitScm struct {
	http.Client
	Config      types.GitConfig
	AuthHeaders map[string]string
}

GitScm is gitlab or github source code manager

func (*GitScm) Artifact

func (g *GitScm) Artifact(artifact, path string) error

Artifact download the artifact to the path, then unzip it

func (*GitScm) Security

func (g *GitScm) Security(path string) error

Security remove the .git folder

func (*GitScm) SourceCode

func (g *GitScm) SourceCode(repository, path, revision string, submodule bool) error

SourceCode clone code from repository into path, by revision

Jump to

Keyboard shortcuts

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