Documentation
¶
Index ¶
- type RepoHandlers
- func (r *RepoHandlers) CreateRepo(w http.ResponseWriter, req *http.Request)
- func (r *RepoHandlers) DeleteRepo(w http.ResponseWriter, req *http.Request, params handlers.Params)
- func (r *RepoHandlers) GetRepo(w http.ResponseWriter, req *http.Request, params handlers.Params)
- func (r *RepoHandlers) ListRepos(w http.ResponseWriter, req *http.Request)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RepoHandlers ¶ added in v0.5.0
type RepoHandlers struct {
// contains filtered or unexported fields
}
RepoHandlers defines handlers that serve chart data
func NewRepoHandlers ¶ added in v0.5.0
func NewRepoHandlers(db datastore.Session) *RepoHandlers
NewRepoHandlers takes a datastore.Session implementation and returns a RepoHandlers struct
func (*RepoHandlers) CreateRepo ¶ added in v0.5.0
func (r *RepoHandlers) CreateRepo(w http.ResponseWriter, req *http.Request)
CreateRepo adds a repo to the list of enabled repositories to index
func (*RepoHandlers) DeleteRepo ¶ added in v0.5.0
func (r *RepoHandlers) DeleteRepo(w http.ResponseWriter, req *http.Request, params handlers.Params)
DeleteRepo deletes a repo from the list of enabled repositories to index
func (*RepoHandlers) GetRepo ¶ added in v0.5.0
func (r *RepoHandlers) GetRepo(w http.ResponseWriter, req *http.Request, params handlers.Params)
GetRepo returns a repo
func (*RepoHandlers) ListRepos ¶ added in v0.5.0
func (r *RepoHandlers) ListRepos(w http.ResponseWriter, req *http.Request)
ListRepos returns all repositories
Click to show internal directories.
Click to hide internal directories.