git

package
v2.3.1 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2024 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HTTPSCloneURL

func HTTPSCloneURL(source, token, owner, name string, optionalGiteeAddr string) string

HTTPSCloneURL returns HTTPS clone url

func OAuthCloneURL

func OAuthCloneURL(source, token, address, owner, name, scheme string) string

SSHCloneURL returns Oauth clone url e.g. https://oauth2:ACCESS_TOKEN@somegitlab.com/owner/name.git

Types

type GitStep

type GitStep struct {
	Logger *log.JobLogger
	// contains filtered or unexported fields
}

func NewGitStep

func NewGitStep(spec interface{}, dirs *agenttypes.AgentWorkDirs, envs, secretEnvs []string, logger *log.JobLogger) (*GitStep, error)

func (*GitStep) Run

func (s *GitStep) Run(ctx context.Context) error

Jump to

Keyboard shortcuts

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