common

package
v0.0.0-...-06bcc1c Latest Latest
Warning

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

Go to latest
Published: Mar 21, 2024 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GitScm

type GitScm struct {
	http.Client
	Config      types.GitConfig
	AuthHeaders map[string]string
	// contains filtered or unexported fields
}

GitScm is gitlab or github source code manager

func NewGitScm

func NewGitScm(config types.GitConfig, authHeaders map[string]string) (*GitScm, error)

NewGitScm .

func (*GitScm) Artifact

func (g *GitScm) Artifact(ctx context.Context, 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(ctx context.Context, 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