maven

package
v0.11.0 Latest Latest
Warning

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

Go to latest
Published: Jun 7, 2024 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

View Source
const BlobHandlerName = "ocm/" + resourcetypes.MAVEN_PACKAGE

Variables

This section is empty.

Functions

func NewArtifactHandler

func NewArtifactHandler(repospec *Config) cpi.BlobHandler

Types

type Config

type Config struct {
	Url        string         `json:"url"`
	Path       string         `json:"path"`
	FileSystem vfs.FileSystem `json:"-"`
}

func NewFileConfig

func NewFileConfig(path string, fss ...vfs.FileSystem) *Config

func NewUrlConfig

func NewUrlConfig(url string, fss ...vfs.FileSystem) *Config

func (*Config) GetRepository

func (c *Config) GetRepository(ctx cpi.ContextProvider) (*maven.Repository, error)

func (*Config) UnmarshalJSON

func (c *Config) UnmarshalJSON(data []byte) error

type RegistrationHandler

type RegistrationHandler struct{}

func (*RegistrationHandler) GetHandlers

func (*RegistrationHandler) RegisterByName

func (r *RegistrationHandler) RegisterByName(handler string, ctx cpi.Context, config cpi.BlobHandlerConfig, olist ...cpi.BlobHandlerOption) (bool, error)

Jump to

Keyboard shortcuts

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