Documentation ¶
Index ¶
- Constants
- func RecursivePublish(goModEditMessage string, resolverDeployer *params.ResolverDeployer) error
- func RunWithFallback(goArg []string, url string) error
- func RunWithFallbacksAndPublish(goArg []string, noRegistry, publishDeps bool, ...) error
- type GoPackage
- type Package
- func (dependencyPackage *Package) CreateBuildInfoDependencies(includeInfoFiles bool) error
- func (dependencyPackage *Package) Dependencies() []buildinfo.Dependency
- func (dependencyPackage *Package) GetId() string
- func (dependencyPackage *Package) GetModContent() []byte
- func (dependencyPackage *Package) GetZipPath() string
- func (dependencyPackage *Package) Init() error
- func (dependencyPackage *Package) New(cachePath string, dep Package) GoPackage
- func (dependencyPackage *Package) PopulateModAndPublish(targetRepo string, cache *cache.DependenciesCache, ...) error
- func (dependencyPackage *Package) Publish(summary string, targetRepo string, ...) error
- func (dependencyPackage *Package) SetModContent(modContent []byte)
- type PackageWithDeps
- func (pwd *PackageWithDeps) Init() error
- func (pwd *PackageWithDeps) New(cachePath string, dependency Package) GoPackage
- func (pwd *PackageWithDeps) PatternMatched(regExp *regexp.Regexp) bool
- func (pwd *PackageWithDeps) PopulateModAndPublish(targetRepo string, cache *cache.DependenciesCache, ...) error
Constants ¶
View Source
const ( FailedToRetrieve = "Failed to retrieve" FromBothArtifactoryAndVcs = "from both Artifactory and VCS" )
Variables ¶
This section is empty.
Functions ¶
func RecursivePublish ¶
func RecursivePublish(goModEditMessage string, resolverDeployer *params.ResolverDeployer) error
Populates and publish the dependencies.
func RunWithFallback ¶
Run Go with fallback to VCS without publish
func RunWithFallbacksAndPublish ¶
func RunWithFallbacksAndPublish(goArg []string, noRegistry, publishDeps bool, resolverDeployer *params.ResolverDeployer) error
Runs Go, with multiple fallbacks if needed and publish missing dependencies to Artifactory
Types ¶
type GoPackage ¶
type GoPackage interface { PopulateModAndPublish(targetRepo string, cache *cache.DependenciesCache, serviceManager artifactory.ArtifactoryServicesManager) error Init() error New(cachePath string, dependency Package) GoPackage // contains filtered or unexported methods }
type Package ¶
type Package struct {
// contains filtered or unexported fields
}
Represent go dependency package.
func GetDependencies ¶
func (*Package) CreateBuildInfoDependencies ¶
Adds the mod, zip and info files as build info dependencies
func (*Package) Dependencies ¶
func (dependencyPackage *Package) Dependencies() []buildinfo.Dependency
func (*Package) GetModContent ¶
func (*Package) GetZipPath ¶
func (*Package) PopulateModAndPublish ¶
func (dependencyPackage *Package) PopulateModAndPublish(targetRepo string, cache *cache.DependenciesCache, serviceManager artifactory.ArtifactoryServicesManager) error
func (*Package) Publish ¶
func (dependencyPackage *Package) Publish(summary string, targetRepo string, servicesManager artifactory.ArtifactoryServicesManager) error
func (*Package) SetModContent ¶
type PackageWithDeps ¶
type PackageWithDeps struct { Dependency *Package GoModEditMessage string // contains filtered or unexported fields }
Represents go dependency when running with go-recursive-publish set to true.
func (*PackageWithDeps) Init ¶
func (pwd *PackageWithDeps) Init() error
Init the dependency information if needed.
func (*PackageWithDeps) New ¶
func (pwd *PackageWithDeps) New(cachePath string, dependency Package) GoPackage
Creates a new dependency
func (*PackageWithDeps) PatternMatched ¶
func (pwd *PackageWithDeps) PatternMatched(regExp *regexp.Regexp) bool
Returns true if regex found a match otherwise false.
func (*PackageWithDeps) PopulateModAndPublish ¶
func (pwd *PackageWithDeps) PopulateModAndPublish(targetRepo string, cache *cache.DependenciesCache, serviceManager artifactory.ArtifactoryServicesManager) error
Populate the mod file and publish the dependency and it's transitive dependencies to Artifactory
Source Files ¶
Click to show internal directories.
Click to hide internal directories.