maven

package
v0.16.0 Latest Latest
Warning

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

Go to latest
Published: Oct 15, 2024 License: Apache-2.0 Imports: 26 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 PomGav added in v0.16.0

type PomGav struct {
	GroupId    string `xml:"groupId"`
	ArtifactId string `xml:"artifactId"`
	Version    string `xml:"version"`
}

PomGav defines gav information in a POM file.

func (*PomGav) GAV added in v0.16.0

func (c *PomGav) GAV() string

GAV returns the GAV coordinates of the Maven Coordinates.

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