Documentation ¶
Index ¶
- Constants
- type AffectedIssue
- type Agent
- type Artifact
- type BuildInfo
- func (targetBuildInfo *BuildInfo) Append(buildInfo *BuildInfo)
- func (targetBuildInfo *BuildInfo) SetAgentName(agentName string)
- func (targetBuildInfo *BuildInfo) SetAgentVersion(agentVersion string)
- func (targetBuildInfo *BuildInfo) SetArtifactoryPluginVersion(artifactoryPluginVersion string)
- func (targetBuildInfo *BuildInfo) SetBuildAgentVersion(buildAgentVersion string)
- type Checksum
- type Configuration
- func (config Configuration) ExcludeFilter() Filter
- func (config *Configuration) GetArtifactoryDetails() auth.ServiceDetails
- func (config Configuration) IncludeFilter() Filter
- func (config *Configuration) IsDryRun() bool
- func (config *Configuration) SetArtifactoryDetails(artDetails auth.ServiceDetails)
- type Dependency
- type Env
- type Filter
- type General
- type Issues
- type Module
- type ModuleType
- type Partial
- type Partials
- type PublishedBuildInfo
- type Tracker
- type Vcs
Constants ¶
View Source
const BuildInfoEnvPrefix = "buildInfo.env."
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AffectedIssue ¶ added in v0.3.1
type BuildInfo ¶
type BuildInfo struct { Name string `json:"name,omitempty"` Number string `json:"number,omitempty"` Agent *Agent `json:"agent,omitempty"` BuildAgent *Agent `json:"buildAgent,omitempty"` Modules []Module `json:"modules,omitempty"` Started string `json:"started,omitempty"` Properties Env `json:"properties,omitempty"` ArtifactoryPrincipal string `json:"artifactoryPrincipal,omitempty"` BuildUrl string `json:"url,omitempty"` Issues *Issues `json:"issues,omitempty"` ArtifactoryPluginVersion string `json:"artifactoryPluginVersion,omitempty"` VcsList []Vcs `json:"vcs,omitempty"` }
func (*BuildInfo) Append ¶
Append the modules of the received build info to this build info. If the two build info instances contain modules with identical names, these modules are merged. When merging the modules, the artifacts and dependencies remain unique according to their checksum.
func (*BuildInfo) SetAgentName ¶
func (*BuildInfo) SetAgentVersion ¶
func (*BuildInfo) SetArtifactoryPluginVersion ¶ added in v0.5.9
func (*BuildInfo) SetBuildAgentVersion ¶
type Configuration ¶
type Configuration struct { ArtDetails auth.ServiceDetails BuildUrl string DryRun bool EnvInclude string EnvExclude string }
func (Configuration) ExcludeFilter ¶ added in v0.12.0
func (config Configuration) ExcludeFilter() Filter
ExcludeFilter returns a function used to filter entries of a map based on key
func (*Configuration) GetArtifactoryDetails ¶
func (config *Configuration) GetArtifactoryDetails() auth.ServiceDetails
func (Configuration) IncludeFilter ¶ added in v0.12.0
func (config Configuration) IncludeFilter() Filter
IncludeFilter returns a function used to filter entries of a map based on key
func (*Configuration) IsDryRun ¶
func (config *Configuration) IsDryRun() bool
func (*Configuration) SetArtifactoryDetails ¶
func (config *Configuration) SetArtifactoryDetails(artDetails auth.ServiceDetails)
type Dependency ¶
type Issues ¶ added in v0.3.1
type Issues struct { Tracker *Tracker `json:"tracker,omitempty"` AggregateBuildIssues bool `json:"aggregateBuildIssues,omitempty"` AggregationBuildStatus string `json:"aggregationBuildStatus,omitempty"` AffectedIssues []AffectedIssue `json:"affectedIssues,omitempty"` }
type Module ¶
type Module struct { Type ModuleType `json:"type,omitempty"` Properties interface{} `json:"properties,omitempty"` Id string `json:"id,omitempty"` Artifacts []Artifact `json:"artifacts,omitempty"` ExcludedArtifacts []Artifact `json:"excludedArtifacts,omitempty"` Dependencies []Dependency `json:"dependencies,omitempty"` *Checksum }
type ModuleType ¶ added in v0.17.0
type ModuleType string
const ( TimeFormat = "2006-01-02T15:04:05.000-0700" // Build type Build ModuleType = "build" // Package managers types Generic ModuleType = "generic" Maven ModuleType = "maven" Gradle ModuleType = "gradle" Docker ModuleType = "docker" Npm ModuleType = "npm" Nuget ModuleType = "nuget" Go ModuleType = "go" Pip ModuleType = "pip" )
type Partial ¶
type Partial struct { ModuleType ModuleType `json:"Type,omitempty"` Artifacts []Artifact `json:"Artifacts,omitempty"` Dependencies []Dependency `json:"Dependencies,omitempty"` Env Env `json:"Env,omitempty"` Timestamp int64 `json:"Timestamp,omitempty"` ModuleId string `json:"ModuleId,omitempty"` Issues *Issues `json:"Issues,omitempty"` VcsList []Vcs `json:"vcs,omitempty"` *Checksum }
type PublishedBuildInfo ¶ added in v0.16.0
type PublishedBuildInfo struct { Uri string `json:"uri,omitempty"` BuildInfo BuildInfo `json:"buildInfo,omitempty"` }
Represents the object returned from Artifactory when getting a build info.
Click to show internal directories.
Click to hide internal directories.