Documentation ¶
Index ¶
Constants ¶
View Source
const BLOB_HANDLER_NAME = "ocm/npmPackage"
Variables ¶
This section is empty.
Functions ¶
func NewArtifactHandler ¶
func NewArtifactHandler(repospec *Config) cpi.BlobHandler
Types ¶
type Attachment ¶
type Attachment struct { ContentType string `json:"content_type"` Data []byte `json:"data"` Length int `json:"length"` }
func NewAttachment ¶
func NewAttachment(data []byte) *Attachment
type Body ¶
type Body struct { ID string `json:"_id"` Name string `json:"name"` Description string `json:"description"` DistTags struct { Latest string `json:"latest"` } `json:"dist-tags"` Versions map[string]*Package `json:"versions"` Readme string `json:"readme"` Attachments map[string]*Attachment `json:"_attachments"` }
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.