pluginproxy

package
v0.0.0-test Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 24, 2021 License: AGPL-3.0 Imports: 31 Imported by: 296

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ApplyRoute

func ApplyRoute(ctx context.Context, req *http.Request, proxyPath string, route *plugins.Route,
	ds DSInfo, cfg *setting.Cfg)

ApplyRoute should use the plugin route data to set auth headers and custom headers.

func NewApiPluginProxy

func NewApiPluginProxy(ctx *models.ReqContext, proxyPath string, route *plugins.Route,
	appID string, cfg *setting.Cfg, secretsService secrets.Service) *httputil.ReverseProxy

NewApiPluginProxy create a plugin proxy

Types

type DSInfo

type DSInfo struct {
	ID                      int64
	Updated                 time.Time
	JSONData                map[string]interface{}
	DecryptedSecureJSONData map[string]string
}

type DataSourceProxy

type DataSourceProxy struct {
	// contains filtered or unexported fields
}

func NewDataSourceProxy

func NewDataSourceProxy(ds *models.DataSource, pluginRoutes []*plugins.Route, ctx *models.ReqContext,
	proxyPath string, cfg *setting.Cfg, clientProvider httpclient.Provider,
	oAuthTokenService oauthtoken.OAuthTokenService, dsService *datasources.Service) (*DataSourceProxy, error)

NewDataSourceProxy creates a new Datasource proxy

func (*DataSourceProxy) HandleRequest

func (proxy *DataSourceProxy) HandleRequest()

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL