mvnrepo

package
v0.0.0-...-4ddab7f Latest Latest
Warning

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

Go to latest
Published: Jan 18, 2023 License: LGPL-2.1 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ContentTypeFilePom   = "text/xml"
	ContentTypeFileXml   = "text/xml"
	ContentTypeFileJar   = "application/java-archive"
	ContentTypeFileOther = "text/plain"
)
View Source
const (
	MavenCentralRepoUrl = "https://repo1.maven.org/maven2"
)

Variables

View Source
var (
	ErrResourceNotFound  = errors.New("resource not found")
	ErrResourceForbidden = errors.New("forbidden")
	ErrOperationFailed   = errors.New("operation failed")
	ErrNotSupported      = errors.New("not supported")
)

Functions

func Init

func Init(engine *gin.Engine, c *config.Config)

Types

type MavenRepository

type MavenRepository interface {
	FetchResource(uri string) ([]byte, string, error)
	MetaResource(uri string) (string, error)

	UploadResource(uri string, data []byte) error
	RemoveResource(uri string) error
}

func NewMvnLocalCacheRepo

func NewMvnLocalCacheRepo(conf config.MavenRepoConf, c *config.Config, sourceRepo MavenRepository) MavenRepository

func NewMvnProxyRepo

func NewMvnProxyRepo(conf config.MavenRepoConf, c *config.Config) MavenRepository

Jump to

Keyboard shortcuts

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