utils

package
v0.8.2 Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2025 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const DefaultProject = "default"
View Source
const IsoDateTimeLayout = "2006-01-02T15:04:05.000-0700"
View Source
const SonarIntegration = "sonar"

Variables

This section is empty.

Functions

func BuildApplicationVersionRepoKey added in v0.8.1

func BuildApplicationVersionRepoKey(project string) string

func BuildBuildInfoRepoKey

func BuildBuildInfoRepoKey(project string) string

func BuildReleaseBundleRepoKey

func BuildReleaseBundleRepoKey(project string) string

func GetEnvVariable

func GetEnvVariable(envVarName string) (string, error)

func IsFlagPositiveNumber

func IsFlagPositiveNumber(flag string) bool

func IsRunningUnderGitHubAction

func IsRunningUnderGitHubAction() bool

func IsSonarIntegration

func IsSonarIntegration(integration string) bool

func ParseIsoTimestamp

func ParseIsoTimestamp(isoTimestamp string) (time.Time, error)

func ValidateIntegration

func ValidateIntegration(integration string) error

Types

type AqlResult

type AqlResult struct {
	Results []*servicesUtils.ResultItem `json:"results,omitempty"`
}

func ExecuteAqlQuery

func ExecuteAqlQuery(query string, client *artifactory.ArtifactoryServicesManager) (*AqlResult, error)

ExecuteAqlQuery executes an AQL query and returns the result.

Jump to

Keyboard shortcuts

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