Documentation ¶
Index ¶
Constants ¶
View Source
const BlobHandlerName = "ocm/" + resourcetypes.MAVEN_ARTIFACT
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 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.