argo

package
v1.8.12 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	EnvKey      = "ARGO_AGENT_TASK_WORKERS"
	Integration = "argoWorkflows"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Ci

type Ci struct{}

func (Ci) Identify

func (_ Ci) Identify() bool

func (Ci) Map

func (ci Ci) Map() (env.Env, error)

func (Ci) MapRepository

func (_ Ci) MapRepository(gitUrl string) string

MapRepository returns repository according to the following rules:

  1. If gitUrl starts with "http(s)://" and ends with ".git", use capture group to set repository.
  2. If gitUrl starts with "git@" and ends with ".git", use capture group to set repository.
  3. Return gitUrl.

func (Ci) MapRepositoryUrl

func (_ Ci) MapRepositoryUrl(gitUrl string) string

MapRepositoryUrl returns repository URL according to the following rules:

  1. If gitUrl starts with "http(s)://" and ends with ".git", use capture group to set repository URL.
  2. If gitUrl is of the form "git@github.com:organisation/reponame.git", rewrite and use "https://github.com/organisation/reponame" as repository URL.
  3. Otherwise, return gitUrl

Jump to

Keyboard shortcuts

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