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 ¶
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.
type RegistrationHandler ¶
type RegistrationHandler struct{}
func (*RegistrationHandler) GetHandlers ¶
func (r *RegistrationHandler) GetHandlers(_ cpi.Context) registrations.HandlerInfos
func (*RegistrationHandler) RegisterByName ¶
func (r *RegistrationHandler) RegisterByName(handler string, ctx cpi.Context, config cpi.BlobHandlerConfig, olist ...cpi.BlobHandlerOption) (bool, error)
Click to show internal directories.
Click to hide internal directories.