Documentation ¶
Index ¶
- Constants
- type GoPackage
- type Package
- func (dependencyPackage *Package) CreateBuildInfoDependencies() 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)
Constants ¶
View Source
const ( FailedToRetrieve = "Failed to retrieve" FromBothArtifactoryAndVcs = "from both Artifactory and VCS" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
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 ¶
Click to show internal directories.
Click to hide internal directories.