mirror of https://github.com/harness/drone.git
commit
378d8a5374
|
@ -47,7 +47,7 @@ type (
|
|||
}
|
||||
|
||||
// StatusService sends the commit status to an external
|
||||
// external source code management service (e.g. GitHub).
|
||||
// source code management service (e.g. GitHub).
|
||||
StatusService interface {
|
||||
Send(ctx context.Context, user *User, req *StatusInput) error
|
||||
}
|
||||
|
|
|
@ -25,7 +25,7 @@ import (
|
|||
)
|
||||
|
||||
// HandleFind returns an http.HandlerFunc that writes json-encoded
|
||||
// build details to the the response body.
|
||||
// build details to the response body.
|
||||
func HandleFind(
|
||||
repos core.RepositoryStore,
|
||||
builds core.BuildStore,
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
// Use of this source code is governed by the Drone Non-Commercial License
|
||||
// that can be found in the LICENSE file.
|
||||
|
||||
//go:build !oss
|
||||
// +build !oss
|
||||
|
||||
package crons
|
||||
|
@ -16,7 +17,7 @@ import (
|
|||
)
|
||||
|
||||
// HandleFind returns an http.HandlerFunc that writes json-encoded
|
||||
// cronjob details to the the response body.
|
||||
// cronjob details to the response body.
|
||||
func HandleFind(
|
||||
repos core.RepositoryStore,
|
||||
crons core.CronStore,
|
||||
|
|
|
@ -29,7 +29,7 @@ import (
|
|||
|
||||
// FEATURE FLAG enables a static secret value used to sign
|
||||
// incoming requests routed through a proxy. This was implemented
|
||||
// based on feedback from @chiraggadasc and and should not be
|
||||
// based on feedback from @chiraggadasc and should not be
|
||||
// removed until we have a permanent solution in place.
|
||||
var staticSigner = os.Getenv("DRONE_FEATURE_SERVER_PROXY_SECRET")
|
||||
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
// Use of this source code is governed by the Drone Non-Commercial License
|
||||
// that can be found in the LICENSE file.
|
||||
|
||||
//go:build !oss
|
||||
// +build !oss
|
||||
|
||||
package secrets
|
||||
|
@ -16,7 +17,7 @@ import (
|
|||
)
|
||||
|
||||
// HandleFind returns an http.HandlerFunc that writes json-encoded
|
||||
// secret details to the the response body.
|
||||
// secret details to the response body.
|
||||
func HandleFind(
|
||||
repos core.RepositoryStore,
|
||||
secrets core.SecretStore,
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
// Use of this source code is governed by the Drone Non-Commercial License
|
||||
// that can be found in the LICENSE file.
|
||||
|
||||
//go:build !oss
|
||||
// +build !oss
|
||||
|
||||
package secrets
|
||||
|
@ -16,7 +17,7 @@ import (
|
|||
)
|
||||
|
||||
// HandleFind returns an http.HandlerFunc that writes json-encoded
|
||||
// secret details to the the response body.
|
||||
// secret details to the response body.
|
||||
func HandleFind(secrets core.GlobalSecretStore) http.HandlerFunc {
|
||||
return func(w http.ResponseWriter, r *http.Request) {
|
||||
var (
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
// Use of this source code is governed by the Drone Non-Commercial License
|
||||
// that can be found in the LICENSE file.
|
||||
|
||||
//go:build !oss
|
||||
// +build !oss
|
||||
|
||||
package template
|
||||
|
@ -16,7 +17,7 @@ import (
|
|||
)
|
||||
|
||||
// HandleFind returns an http.HandlerFunc that writes json-encoded
|
||||
// template details to the the response body.
|
||||
// template details to the response body.
|
||||
func HandleFind(templateStore core.TemplateStore) http.HandlerFunc {
|
||||
return func(w http.ResponseWriter, r *http.Request) {
|
||||
var (
|
||||
|
|
|
@ -26,7 +26,7 @@ import (
|
|||
)
|
||||
|
||||
// HandleFind returns an http.HandlerFunc that writes json-encoded
|
||||
// user account information to the the response body.
|
||||
// user account information to the response body.
|
||||
func HandleFind(users core.UserStore) http.HandlerFunc {
|
||||
return func(w http.ResponseWriter, r *http.Request) {
|
||||
login := chi.URLParam(r, "user")
|
||||
|
|
Loading…
Reference in New Issue