nexus

package
v2.7.20 Latest Latest
Warning

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

Go to latest
Published: Oct 27, 2022 License: LGPL-3.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetSnapshotTimestampVersion

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

GetSnapshotTimestampVersion 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
}

BinaryDownloader configuration

func (*BinaryDownloader) DownloadArtifact

func (n *BinaryDownloader) DownloadArtifact(_ *config.MavenGav) (Deliverable, error)

DownloadArtifact prepare the binary artifact

type Deliverable

type Deliverable struct {
	Path string
	SHA1 string
}

Deliverable struct

type Dependency

type Dependency struct {
	Name string
	SHA1 string
	Size int64
}

Dependency utility struct used for gathering dependency metadata

type Downloader

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

Downloader interface

func NewBinaryDownloader

func NewBinaryDownloader(path string) Downloader

NewBinaryDownloader returns a new BinaryDownloader of type Downloader

func NewMavenDownloader

func NewMavenDownloader(baseURL string, username string, password string) Downloader

NewMavenDownloader MavenDownloader of type Downloader

type MavenDownloader

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

MavenDownloader configuration

func (*MavenDownloader) DownloadArtifact

func (n *MavenDownloader) DownloadArtifact(c *config.MavenGav) (Deliverable, error)

DownloadArtifact downloads a maven artifact

type MavenManifest

type MavenManifest struct {
	Versioning Versioning `xml:"versioning"`
}

MavenManifest minimal representation of maven-metadata.xml

type Snapshot

type Snapshot struct {
	Timestamp   string `xml:"timestamp"`
	BuildNumber int    `xml:"buildNumber"`
}

Snapshot ...

type Versioning

type Versioning struct {
	Snapshot Snapshot `xml:"snapshot"`
}

Versioning ...

Directories

Path Synopsis
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.

Jump to

Keyboard shortcuts

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