nexus

package
v2.7.10 Latest Latest
Warning

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

Go to latest
Published: Aug 30, 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

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 struct

func (*BinaryDownloader) DownloadArtifact

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

type Deliverable

type Deliverable struct {
	Path string
	SHA1 string
}

Deliverable struct

type Dependency

type Dependency struct {
	Name string
	SHA1 string
	Size int64
}

Dependency struct

func ExtractDependecyMetadata

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

type Downloader

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

Downloader interface

func NewBinaryDownloader

func NewBinaryDownloader(path string) Downloader

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

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