nexus

package
v1.27.8 Latest Latest
Warning

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

Go to latest
Published: Jan 24, 2021 License: LGPL-3.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FilePathWalkDir added in v1.27.0

func FilePathWalkDir(root string) ([]string, error)

func GetSnapshotTimestampVersion

func GetSnapshotTimestampVersion(gav config.MavenGav, deliverable Deliverable) string

Create app version. If not snapshot build, then return version from GAV. Otherwise, create new snapshot version based on deliverable.

Types

type BinaryDownloader

type BinaryDownloader struct {
	Path string
}

func (*BinaryDownloader) DownloadArtifact

func (n *BinaryDownloader) DownloadArtifact(c *config.MavenGav, na *config.NexusAccess) (Deliverable, error)

type Deliverable

type Deliverable struct {
	Path string
	SHA1 string
}

type Dependency added in v1.27.0

type Dependency struct {
	Name string
	SHA1 string
	Size int64
}

func ExtractDependecyMetadata added in v1.27.0

func ExtractDependecyMetadata(buildFolder string) ([]Dependency, error)

type Downloader

type Downloader interface {
	DownloadArtifact(c *config.MavenGav, ns *config.NexusAccess) (Deliverable, error)
}

func NewBinaryDownloader

func NewBinaryDownloader(path string) Downloader

func NewNexusDownloader

func NewNexusDownloader(baseUrl string) Downloader

type NexusDownloader

type NexusDownloader struct {
	// contains filtered or unexported fields
}

func (*NexusDownloader) DownloadArtifact

func (n *NexusDownloader) DownloadArtifact(c *config.MavenGav, na *config.NexusAccess) (Deliverable, error)

Jump to

Keyboard shortcuts

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