ci

package
v0.99.0 Latest Latest
Warning

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

Go to latest
Published: May 2, 2025 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var True = "true"

Functions

This section is empty.

Types

type CIEngine

type CIEngine interface {
	URL() string
	Name() string
	IsDebug() bool
}

CIEngine is an interface which allows to detects based on environment variable if Updatecli is executed from a CI environment like Jenkins or GitLab CI

func New

func New() (ci CIEngine, err error)

New returns a newly initialized CIEngine or an error

type GitHubActions

type GitHubActions struct {
}

func (GitHubActions) IsDebug added in v0.86.0

func (gha GitHubActions) IsDebug() bool

func (GitHubActions) Name

func (gha GitHubActions) Name() string

func (GitHubActions) URL

func (gha GitHubActions) URL() string

type GitLabCi

type GitLabCi struct {
}

func (GitLabCi) IsDebug added in v0.86.0

func (gha GitLabCi) IsDebug() bool

func (GitLabCi) Name

func (g GitLabCi) Name() string

func (GitLabCi) URL

func (g GitLabCi) URL() string

type Jenkins

type Jenkins struct {
}

func (Jenkins) IsDebug added in v0.86.0

func (gha Jenkins) IsDebug() bool

func (Jenkins) Name

func (j Jenkins) Name() string

func (Jenkins) URL

func (j Jenkins) URL() string

Jump to

Keyboard shortcuts

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