import "github.com/030/n3dr/cli"
backup.go common.go npm.go oci.go repositories.go upload.go
const ( CfgFileExt = "yml" HiddenN3DR = "." + projectName DefaultCfgFile = "config" )
const ( DefaultCfgFileWithExt = DefaultCfgFile + "." + CfgFileExt )
type Nexus3 struct { URL string `validate:"nonzero,regexp=^http(s)?://.*[a-z]+(:[0-9]+)?$"` User string Pass string Repository string APIVersion string ZIP bool ZipName string DownloadDirName string ArtifactType string }
Nexus3 contains the attributes that are used by several functions
CreateZip adds all artifacts to a ZIP archive
Downloads retrieves artifacts from all repositories
Upload posts an artifact as a multipart to a specific nexus3 repository
type RetryLogAdaptor struct{}
RetryLogAdaptor adapts the retryablehttp.Logger interface to the logrus logger.
func (*RetryLogAdaptor) Printf(fmtStr string, vars ...interface{})
Printf implements the retryablehttp.Logger interface
Package cli imports 35 packages (graph) and is imported by 1 packages. Updated 2021-01-18. Refresh now. Tools for package owners.