Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Scheme = runtime.NewScheme() Codecs = serializer.NewCodecFactory(Scheme) )
View Source
var WireSet = wire.NewSet( ProvideService, wire.Bind(new(RestConfigProvider), new(*service)), wire.Bind(new(Service), new(*service)), wire.Bind(new(DirectRestConfigProvider), new(*service)), wire.Bind(new(builder.APIRegistrar), new(*service)), )
Functions ¶
func ProvideService ¶
func ProvideService( cfg *setting.Cfg, features featuremgmt.FeatureToggles, rr routing.RouteRegister, orgService org.Service, tracing *tracing.TracingService, db db.DB, ) (*service, error)
Types ¶
type DirectRestConfigProvider ¶
type DirectRestConfigProvider interface { // GetDirectRestConfig returns a k8s client configuration that will use the same // logged logged in user as the current request context. This is useful when // creating clients that map legacy API handlers to k8s backed services GetDirectRestConfig(c *contextmodel.ReqContext) *clientrest.Config // This can be used to rewrite incoming requests to path now supported under /apis DirectlyServeHTTP(w http.ResponseWriter, r *http.Request) }
type RestConfigProvider ¶
type RestConfigProvider interface {
GetRestConfig() *clientrest.Config
}
type Service ¶
type Service interface { services.NamedService registry.BackgroundService registry.CanBeDisabled }
Click to show internal directories.
Click to hide internal directories.