executers

package
v0.1.18 Latest Latest
Warning

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

Go to latest
Published: Dec 30, 2020 License: Apache-2.0 Imports: 27 Imported by: 3

Documentation

Index

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

func RunWithFallback(goArg []string, url string) error

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 GetDependencies(cachePath string, moduleSlice map[string]bool) ([]Package, error)

func (*Package) CreateBuildInfoDependencies

func (dependencyPackage *Package) CreateBuildInfoDependencies(includeInfoFiles bool) error

Adds the mod, zip and info files as build info dependencies

func (*Package) Dependencies

func (dependencyPackage *Package) Dependencies() []buildinfo.Dependency

func (*Package) GetId

func (dependencyPackage *Package) GetId() string

func (*Package) GetModContent

func (dependencyPackage *Package) GetModContent() []byte

func (*Package) GetZipPath

func (dependencyPackage *Package) GetZipPath() string

func (*Package) Init

func (dependencyPackage *Package) Init() error

Init the dependency information if needed.

func (*Package) New

func (dependencyPackage *Package) New(cachePath string, dep Package) GoPackage

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

func (dependencyPackage *Package) SetModContent(modContent []byte)

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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