Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DownloadArchiveRequest ¶
type DownloadArchiveRequest struct { Hostname string `path:"hostname"` Namespace string `path:"namespace"` Type string `path:"type"` Archive string `path:"archive"` Version string OS string Arch string Context *gin.Context // contains filtered or unexported fields }
func (*DownloadArchiveRequest) SetGinContext ¶
func (r *DownloadArchiveRequest) SetGinContext(ctx *gin.Context)
func (*DownloadArchiveRequest) Validate ¶
func (r *DownloadArchiveRequest) Validate() error
type GetMetadataRequest ¶
type GetMetadataRequest struct { Hostname string `path:"hostname"` Namespace string `path:"namespace"` Type string `path:"type"` Action string `path:"action"` // Eg. Index.json for list versions, {version}.json for list versioned package. Context *gin.Context // contains filtered or unexported fields }
func (*GetMetadataRequest) SetGinContext ¶
func (r *GetMetadataRequest) SetGinContext(ctx *gin.Context)
func (*GetMetadataRequest) Validate ¶
func (r *GetMetadataRequest) Validate() error
func (*GetMetadataRequest) Version ¶
func (r *GetMetadataRequest) Version() string
type GetMetadataResponse ¶
type Handler ¶
type Handler struct {
// contains filtered or unexported fields
}
func (*Handler) DownloadArchive ¶
func (h *Handler) DownloadArchive(req DownloadArchiveRequest) (render.Render, error)
func (*Handler) GetMetadata ¶
func (h *Handler) GetMetadata(req GetMetadataRequest) (GetMetadataResponse, error)
func (*Handler) SyncMetadata ¶
func (h *Handler) SyncMetadata(req SyncMetadataRequest) error
type SyncMetadataRequest ¶
type SyncMetadataRequest struct { Timeout time.Duration `query:"timeout,default=2m"` Context *gin.Context // contains filtered or unexported fields }
func (*SyncMetadataRequest) SetGinContext ¶
func (r *SyncMetadataRequest) SetGinContext(ctx *gin.Context)
Click to show internal directories.
Click to hide internal directories.