artifacts

package
v0.0.0-...-014443d Latest Latest
Warning

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

Go to latest
Published: Jan 10, 2022 License: MIT Imports: 37 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CfgFileExt     = "yml"
	HiddenN3DR     = "." + projectName
	DefaultCfgFile = "config"
)
View Source
const (
	DefaultCfgFileWithExt = DefaultCfgFile + "." + CfgFileExt
)

Variables

This section is empty.

Functions

func TempDownloadDir

func TempDownloadDir(downloadDirName string) (string, error)

Types

type Nexus3

type Nexus3 struct {
	URL                                                                                            string `validate:"nonzero,regexp=^http(s)?://[a-z0-9\\.-]+(:[0-9]+)?(/[a-z0-9\\.-]+)*$"`
	APIVersion, ArtifactType, DownloadDirName, DownloadDirNameZip, Pass, Repository, User, ZipName string
	ZIP                                                                                            bool
}

Nexus3 contains the attributes that are used by several functions

func (*Nexus3) BackupAllNPMArtifacts

func (n *Nexus3) BackupAllNPMArtifacts(repository, dir, regex string) error

func (*Nexus3) Bladibla

func (n *Nexus3) Bladibla(url, dir, regex string) error

func (*Nexus3) CountRepositories

func (n *Nexus3) CountRepositories() error

func (Nexus3) CreateZip

func (n Nexus3) CreateZip(dir string, zipDirDest string) (err error)

CreateZip adds all artifacts to a ZIP archive

func (*Nexus3) Downloads

func (n *Nexus3) Downloads(regex string) error

Downloads retrieves artifacts from all repositories

func (*Nexus3) RepositoryNames

func (n *Nexus3) RepositoryNames() error

func (Nexus3) StoreArtifactsOnDiskChannel

func (n Nexus3) StoreArtifactsOnDiskChannel(dir, regex string) error

func (Nexus3) Upload

func (n Nexus3) Upload(skipErrors bool) error

Upload posts an artifact as a multipart to a specific nexus3 repository

func (*Nexus3) ValidateNexusURL

func (n *Nexus3) ValidateNexusURL() error

type RetryLogAdaptor

type RetryLogAdaptor struct{}

RetryLogAdaptor adapts the retryablehttp.Logger interface to the logrus logger.

func (*RetryLogAdaptor) Printf

func (*RetryLogAdaptor) Printf(fmtStr string, vars ...interface{})

Printf implements the retryablehttp.Logger interface

Jump to

Keyboard shortcuts

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