Documentation ¶
Overview ¶
Package api contains API logic.
Index ¶
- Variables
- func AddDataSource(c *models.ReqContext, cmd models.AddDataSourceCommand) response.Response
- func AddOrgInvite(c *models.ReqContext, inviteDto dtos.AddInviteForm) response.Response
- func AddOrgUser(c *models.ReqContext, cmd models.AddOrgUserCommand) response.Response
- func AddOrgUserToCurrentOrg(c *models.ReqContext, cmd models.AddOrgUserCommand) response.Response
- func AdminCreateUser(c *models.ReqContext, form dtos.AdminCreateUserForm) response.Response
- func AdminDeleteUser(c *models.ReqContext) response.Response
- func AdminEnableUser(c *models.ReqContext) response.Response
- func AdminGetSettings(c *models.ReqContext) response.Response
- func AdminGetStats(c *models.ReqContext) response.Response
- func AdminUpdateUserPassword(c *models.ReqContext, form dtos.AdminUpdateUserPasswordForm) response.Response
- func AdminUpdateUserPermissions(c *models.ReqContext, form dtos.AdminUpdateUserPermissionsForm) response.Response
- func AlertTest(c *models.ReqContext, dto dtos.AlertTestCommand) response.Response
- func AppPluginRoute(route *plugins.AppPluginRoute, appID string, hs *HTTPServer) macaron.Handler
- func BasicAuthenticatedRequest(req macaron.Request, expectedUser, expectedPass string) bool
- func CalculateDashboardDiff(c *models.ReqContext, apiOptions dtos.CalculateDiffOptions) response.Response
- func ChangeUserPassword(c *models.ReqContext, cmd models.ChangeUserPasswordCommand) response.Response
- func ClearHelpFlags(c *models.ReqContext) response.Response
- func CreateAlertNotification(c *models.ReqContext, cmd models.CreateAlertNotificationCommand) response.Response
- func CreateDashboardSnapshot(c *models.ReqContext, cmd models.CreateDashboardSnapshotCommand)
- func CreateOrg(c *models.ReqContext, cmd models.CreateOrgCommand) response.Response
- func CreatePlaylist(c *models.ReqContext, cmd models.CreatePlaylistCommand) response.Response
- func DeleteAPIKey(c *models.ReqContext) response.Response
- func DeleteAlertNotification(c *models.ReqContext) response.Response
- func DeleteAlertNotificationByUID(c *models.ReqContext) response.Response
- func DeleteAnnotationByID(c *models.ReqContext) response.Response
- func DeleteAnnotations(c *models.ReqContext, cmd dtos.DeleteAnnotationsCmd) response.Response
- func DeleteDashboardSnapshot(c *models.ReqContext) response.Response
- func DeleteDashboardSnapshotByDeleteKey(c *models.ReqContext) response.Response
- func DeleteDataSourceById(c *models.ReqContext) response.Response
- func DeleteDataSourceByName(c *models.ReqContext) response.Response
- func DeleteDataSourceByUID(c *models.ReqContext) response.Response
- func DeleteOrgByID(c *models.ReqContext) response.Response
- func DeletePlaylist(c *models.ReqContext) response.Response
- func GenStateString() (string, error)
- func GenerateSQLTestData(c *models.ReqContext) response.Response
- func GetAPIKeys(c *models.ReqContext) response.Response
- func GetAlert(c *models.ReqContext) response.Response
- func GetAlertNotificationByID(c *models.ReqContext) response.Response
- func GetAlertNotificationByUID(c *models.ReqContext) response.Response
- func GetAlertNotificationLookup(c *models.ReqContext) response.Response
- func GetAlertNotifications(c *models.ReqContext) response.Response
- func GetAlertNotifiers(c *models.ReqContext) response.Response
- func GetAlertStatesForDashboard(c *models.ReqContext) response.Response
- func GetAlerts(c *models.ReqContext) response.Response
- func GetAnnotations(c *models.ReqContext) response.Response
- func GetAuthProviderLabel(authModule string) string
- func GetDashboardSnapshot(c *models.ReqContext) response.Response
- func GetDashboardTags(c *models.ReqContext)
- func GetDashboardVersion(c *models.ReqContext) response.Response
- func GetDashboardVersions(c *models.ReqContext) response.Response
- func GetDataSourceById(c *models.ReqContext) response.Response
- func GetDataSourceByName(c *models.ReqContext) response.Response
- func GetDataSourceByUID(c *models.ReqContext) response.Response
- func GetDataSourceIdByName(c *models.ReqContext) response.Response
- func GetFolderByID(c *models.ReqContext) response.Response
- func GetFolderByUID(c *models.ReqContext) response.Response
- func GetFolders(c *models.ReqContext) response.Response
- func GetInviteInfoByCode(c *models.ReqContext) response.Response
- func GetOrgByID(c *models.ReqContext) response.Response
- func GetOrgCurrent(c *models.ReqContext) response.Response
- func GetOrgPreferences(c *models.ReqContext) response.Response
- func GetOrgQuotas(c *models.ReqContext) response.Response
- func GetPendingOrgInvites(c *models.ReqContext) response.Response
- func GetPlaylist(c *models.ReqContext) response.Response
- func GetPlaylistDashboards(c *models.ReqContext) response.Response
- func GetPlaylistItems(c *models.ReqContext) response.Response
- func GetPluginDashboards(c *models.ReqContext) response.Response
- func GetPluginMarkdown(c *models.ReqContext) response.Response
- func GetPluginSettingByID(c *models.ReqContext) response.Response
- func GetSharingOptions(c *models.ReqContext)
- func GetSignUpOptions(c *models.ReqContext) response.Response
- func GetSignedInUser(c *models.ReqContext) response.Response
- func GetSignedInUserOrgList(c *models.ReqContext) response.Response
- func GetSignedInUserTeamList(c *models.ReqContext) response.Response
- func GetTestDataRandomWalk(c *models.ReqContext) response.Response
- func GetUserByID(c *models.ReqContext) response.Response
- func GetUserByLoginOrEmail(c *models.ReqContext) response.Response
- func GetUserOrgList(c *models.ReqContext) response.Response
- func GetUserPreferences(c *models.ReqContext) response.Response
- func GetUserQuotas(c *models.ReqContext) response.Response
- func GetUserTeams(c *models.ReqContext) response.Response
- func ImportDashboard(c *models.ReqContext, apiCmd dtos.ImportDashboardCommand) response.Response
- func LoadPlaylistDashboards(orgID int64, signedInUser *models.SignedInUser, playlistID int64) (dtos.PlaylistDashboardsSlice, error)
- func LoadPlaylistItemDTOs(id int64) ([]models.PlaylistItemDTO, error)
- func LoadPlaylistItems(id int64) ([]models.PlaylistItem, error)
- func NewFrontendLogMessageHandler(store *frontendlogging.SourceMapStore) frontendLogMessageHandler
- func NotificationTest(c *models.ReqContext, dto dtos.NotificationTestCommand) response.Response
- func PatchAnnotation(c *models.ReqContext, cmd dtos.PatchAnnotationsCmd) response.Response
- func PauseAlert(c *models.ReqContext, dto dtos.PauseAlertCommand) response.Response
- func PauseAllAlerts(c *models.ReqContext, dto dtos.PauseAllAlertsCommand) response.Response
- func PostAnnotation(c *models.ReqContext, cmd dtos.PostAnnotationsCmd) response.Response
- func PostGraphiteAnnotation(c *models.ReqContext, cmd dtos.PostGraphiteAnnotationsCmd) response.Response
- func ProxyGnetRequest(c *models.ReqContext)
- func RemoveOrgUser(c *models.ReqContext) response.Response
- func RemoveOrgUserForCurrentOrg(c *models.ReqContext) response.Response
- func ResetPassword(c *models.ReqContext, form dtos.ResetUserPasswordForm) response.Response
- func ReverseProxyGnetReq(proxyPath string) *httputil.ReverseProxy
- func RevokeInvite(c *models.ReqContext) response.Response
- func Search(c *models.ReqContext) response.Response
- func SearchDashboardSnapshots(c *models.ReqContext) response.Response
- func SearchOrgs(c *models.ReqContext) response.Response
- func SearchPlaylists(c *models.ReqContext) response.Response
- func SearchUsers(c *models.ReqContext) response.Response
- func SearchUsersWithPaging(c *models.ReqContext) response.Response
- func SendResetPasswordEmail(c *models.ReqContext, form dtos.SendResetPasswordEmailForm) response.Response
- func SetHelpFlag(c *models.ReqContext) response.Response
- func SetHomeDashboard(c *models.ReqContext, cmd models.SavePreferencesCommand) response.Response
- func SignUp(c *models.ReqContext, form dtos.SignUpForm) response.Response
- func StarDashboard(c *models.ReqContext) response.Response
- func UnstarDashboard(c *models.ReqContext) response.Response
- func UpdateAlertNotification(c *models.ReqContext, cmd models.UpdateAlertNotificationCommand) response.Response
- func UpdateAlertNotificationByUID(c *models.ReqContext, cmd models.UpdateAlertNotificationWithUidCommand) response.Response
- func UpdateAnnotation(c *models.ReqContext, cmd dtos.UpdateAnnotationsCmd) response.Response
- func UpdateDataSource(c *models.ReqContext, cmd models.UpdateDataSourceCommand) response.Response
- func UpdateFolder(c *models.ReqContext, cmd models.UpdateFolderCommand) response.Response
- func UpdateOrg(c *models.ReqContext, form dtos.UpdateOrgForm) response.Response
- func UpdateOrgAddress(c *models.ReqContext, form dtos.UpdateOrgAddressForm) response.Response
- func UpdateOrgAddressCurrent(c *models.ReqContext, form dtos.UpdateOrgAddressForm) response.Response
- func UpdateOrgCurrent(c *models.ReqContext, form dtos.UpdateOrgForm) response.Response
- func UpdateOrgPreferences(c *models.ReqContext, dtoCmd dtos.UpdatePrefsCmd) response.Response
- func UpdateOrgQuota(c *models.ReqContext, cmd models.UpdateOrgQuotaCmd) response.Response
- func UpdateOrgUser(c *models.ReqContext, cmd models.UpdateOrgUserCommand) response.Response
- func UpdateOrgUserForCurrentOrg(c *models.ReqContext, cmd models.UpdateOrgUserCommand) response.Response
- func UpdatePlaylist(c *models.ReqContext, cmd models.UpdatePlaylistCommand) response.Response
- func UpdatePluginSetting(c *models.ReqContext, cmd models.UpdatePluginSettingCmd) response.Response
- func UpdateSignedInUser(c *models.ReqContext, cmd models.UpdateUserCommand) response.Response
- func UpdateUser(c *models.ReqContext, cmd models.UpdateUserCommand) response.Response
- func UpdateUserActiveOrg(c *models.ReqContext) response.Response
- func UpdateUserPreferences(c *models.ReqContext, dtoCmd dtos.UpdatePrefsCmd) response.Response
- func UpdateUserQuota(c *models.ReqContext, cmd models.UpdateUserQuotaCmd) response.Response
- func UserSetUsingOrg(c *models.ReqContext) response.Response
- func ValidateOrgAlert(c *models.ReqContext)
- func ValidateOrgPlaylist(c *models.ReqContext)
- type CreateAnnotationError
- type CreateExternalSnapshotResponse
- type HTTPServer
- func (hs *HTTPServer) AddAPIKey(c *models.ReqContext, cmd models.AddApiKeyCommand) response.Response
- func (hs *HTTPServer) AddMiddleware(middleware macaron.Handler)
- func (hs *HTTPServer) AddTeamMember(c *models.ReqContext, cmd models.AddTeamMemberCommand) response.Response
- func (hs *HTTPServer) AdminDisableUser(c *models.ReqContext) response.Response
- func (hs *HTTPServer) AdminGetUserAuthTokens(c *models.ReqContext) response.Response
- func (hs *HTTPServer) AdminLogoutUser(c *models.ReqContext) response.Response
- func (hs *HTTPServer) AdminProvisioningReloadDashboards(c *models.ReqContext) response.Response
- func (hs *HTTPServer) AdminProvisioningReloadDatasources(c *models.ReqContext) response.Response
- func (hs *HTTPServer) AdminProvisioningReloadNotifications(c *models.ReqContext) response.Response
- func (hs *HTTPServer) AdminProvisioningReloadPlugins(c *models.ReqContext) response.Response
- func (hs *HTTPServer) AdminRevokeUserAuthToken(c *models.ReqContext, cmd models.RevokeAuthTokenCmd) response.Response
- func (hs *HTTPServer) CallDatasourceResource(c *models.ReqContext)
- func (hs *HTTPServer) CallResource(c *models.ReqContext)
- func (hs *HTTPServer) ChangeActiveOrgAndRedirectToHome(c *models.ReqContext)
- func (hs *HTTPServer) CheckDatasourceHealth(c *models.ReqContext) response.Response
- func (hs *HTTPServer) CheckHealth(c *models.ReqContext) response.Response
- func (hs *HTTPServer) CollectPluginMetrics(c *models.ReqContext) response.Response
- func (hs *HTTPServer) CompleteInvite(c *models.ReqContext, completeInvite dtos.CompleteInviteForm) response.Response
- func (hs *HTTPServer) CookieOptionsFromCfg() cookies.CookieOptions
- func (hs *HTTPServer) CreateFolder(c *models.ReqContext, cmd models.CreateFolderCommand) response.Response
- func (hs *HTTPServer) CreateTeam(c *models.ReqContext, cmd models.CreateTeamCommand) response.Response
- func (hs *HTTPServer) DeleteDashboardBySlug(c *models.ReqContext) response.Response
- func (hs *HTTPServer) DeleteDashboardByUID(c *models.ReqContext) response.Response
- func (hs *HTTPServer) DeleteFolder(c *models.ReqContext) response.Response
- func (hs *HTTPServer) DeleteTeamByID(c *models.ReqContext) response.Response
- func (hs *HTTPServer) GetDashboard(c *models.ReqContext) response.Response
- func (hs *HTTPServer) GetDashboardPermissionList(c *models.ReqContext) response.Response
- func (hs *HTTPServer) GetDataSources(c *models.ReqContext) response.Response
- func (hs *HTTPServer) GetFolderPermissionList(c *models.ReqContext) response.Response
- func (hs *HTTPServer) GetFrontendSettings(c *models.ReqContext)
- func (hs *HTTPServer) GetHomeDashboard(c *models.ReqContext) response.Response
- func (hs *HTTPServer) GetLDAPStatus(c *models.ReqContext) response.Response
- func (hs *HTTPServer) GetOrgByName(c *models.ReqContext) response.Response
- func (hs *HTTPServer) GetOrgUsers(c *models.ReqContext) response.Response
- func (hs *HTTPServer) GetOrgUsersForCurrentOrg(c *models.ReqContext) response.Response
- func (hs *HTTPServer) GetOrgUsersForCurrentOrgLookup(c *models.ReqContext) response.Response
- func (hs *HTTPServer) GetPluginErrorsList(c *models.ReqContext) response.Response
- func (hs *HTTPServer) GetPluginList(c *models.ReqContext) response.Response
- func (hs *HTTPServer) GetTeamByID(c *models.ReqContext) response.Response
- func (hs *HTTPServer) GetTeamMembers(c *models.ReqContext) response.Response
- func (hs *HTTPServer) GetTeamPreferences(c *models.ReqContext) response.Response
- func (hs *HTTPServer) GetUserAuthTokens(c *models.ReqContext) response.Response
- func (hs *HTTPServer) GetUserFromLDAP(c *models.ReqContext) response.Response
- func (hs *HTTPServer) Index(c *models.ReqContext)
- func (hs *HTTPServer) Init() error
- func (hs *HTTPServer) ListSortOptions(c *models.ReqContext) response.Response
- func (hs *HTTPServer) LoginAPIPing(c *models.ReqContext) response.Response
- func (hs *HTTPServer) LoginPost(c *models.ReqContext, cmd dtos.LoginCommand) response.Response
- func (hs *HTTPServer) LoginView(c *models.ReqContext)
- func (hs *HTTPServer) Logout(c *models.ReqContext)
- func (hs *HTTPServer) NotFoundHandler(c *models.ReqContext)
- func (hs *HTTPServer) OAuthLogin(ctx *models.ReqContext)
- func (hs *HTTPServer) PostDashboard(c *models.ReqContext, cmd models.SaveDashboardCommand) response.Response
- func (hs *HTTPServer) PostFrontendMetrics(c *models.ReqContext, cmd metrics.PostFrontendMetricsCommand) response.Response
- func (hs *HTTPServer) PostSyncUserWithLDAP(c *models.ReqContext) response.Response
- func (hs *HTTPServer) ProxyDataSourceRequest(c *models.ReqContext)
- func (hs *HTTPServer) QueryMetrics(c *models.ReqContext, reqDto dtos.MetricRequest) response.Response
- func (hs *HTTPServer) QueryMetricsV2(c *models.ReqContext, reqDTO dtos.MetricRequest) response.Response
- func (hs *HTTPServer) RedirectResponseWithError(ctx *models.ReqContext, err error, v ...interface{}) *response.RedirectResponse
- func (hs *HTTPServer) ReloadLDAPCfg() response.Response
- func (hs *HTTPServer) RemoveTeamMember(c *models.ReqContext) response.Response
- func (hs *HTTPServer) RenderToPng(c *models.ReqContext)
- func (hs *HTTPServer) RestoreDashboardVersion(c *models.ReqContext, apiCmd dtos.RestoreDashboardVersionCommand) response.Response
- func (hs *HTTPServer) RevokeUserAuthToken(c *models.ReqContext, cmd models.RevokeAuthTokenCmd) response.Response
- func (hs *HTTPServer) Run(ctx context.Context) error
- func (hs *HTTPServer) SearchTeams(c *models.ReqContext) response.Response
- func (hs *HTTPServer) SignUpStep2(c *models.ReqContext, form dtos.SignUpStep2Form) response.Response
- func (hs *HTTPServer) UpdateDashboardPermissions(c *models.ReqContext, apiCmd dtos.UpdateDashboardAclCommand) response.Response
- func (hs *HTTPServer) UpdateFolderPermissions(c *models.ReqContext, apiCmd dtos.UpdateDashboardAclCommand) response.Response
- func (hs *HTTPServer) UpdateTeam(c *models.ReqContext, cmd models.UpdateTeamCommand) response.Response
- func (hs *HTTPServer) UpdateTeamMember(c *models.ReqContext, cmd models.UpdateTeamMemberCommand) response.Response
- func (hs *HTTPServer) UpdateTeamPreferences(c *models.ReqContext, dtoCmd dtos.UpdatePrefsCmd) response.Response
- func (hs *HTTPServer) ValidateRedirectTo(redirectTo string) error
- type LDAPAttribute
- type LDAPRoleDTO
- type LDAPServerDTO
- type LDAPUserDTO
- type LoginError
Constants ¶
This section is empty.
Variables ¶
var ErrPluginNotFound error = errors.New("plugin not found, no installed plugin with that id")
ErrPluginNotFound is returned when an requested plugin is not installed.
var (
OauthStateCookieName = "oauth_state"
)
Functions ¶
func AddDataSource ¶
func AddDataSource(c *models.ReqContext, cmd models.AddDataSourceCommand) response.Response
func AddOrgInvite ¶
func AddOrgInvite(c *models.ReqContext, inviteDto dtos.AddInviteForm) response.Response
func AddOrgUser ¶
func AddOrgUser(c *models.ReqContext, cmd models.AddOrgUserCommand) response.Response
POST /api/orgs/:orgId/users
func AddOrgUserToCurrentOrg ¶
func AddOrgUserToCurrentOrg(c *models.ReqContext, cmd models.AddOrgUserCommand) response.Response
POST /api/org/users
func AdminCreateUser ¶
func AdminCreateUser(c *models.ReqContext, form dtos.AdminCreateUserForm) response.Response
func AdminDeleteUser ¶
func AdminDeleteUser(c *models.ReqContext) response.Response
func AdminEnableUser ¶
func AdminEnableUser(c *models.ReqContext) response.Response
POST /api/admin/users/:id/enable
func AdminGetSettings ¶
func AdminGetSettings(c *models.ReqContext) response.Response
func AdminGetStats ¶
func AdminGetStats(c *models.ReqContext) response.Response
func AdminUpdateUserPassword ¶
func AdminUpdateUserPassword(c *models.ReqContext, form dtos.AdminUpdateUserPasswordForm) response.Response
func AdminUpdateUserPermissions ¶
func AdminUpdateUserPermissions(c *models.ReqContext, form dtos.AdminUpdateUserPermissionsForm) response.Response
PUT /api/admin/users/:id/permissions
func AlertTest ¶
func AlertTest(c *models.ReqContext, dto dtos.AlertTestCommand) response.Response
POST /api/alerts/test
func AppPluginRoute ¶
func AppPluginRoute(route *plugins.AppPluginRoute, appID string, hs *HTTPServer) macaron.Handler
func BasicAuthenticatedRequest ¶
BasicAuthenticatedRequest parses the provided HTTP request for basic authentication credentials and returns true if the provided credentials match the expected username and password. Returns false if the request is unauthenticated. Uses constant-time comparison in order to mitigate timing attacks.
func CalculateDashboardDiff ¶
func CalculateDashboardDiff(c *models.ReqContext, apiOptions dtos.CalculateDiffOptions) response.Response
POST /api/dashboards/calculate-diff performs diffs on two dashboards
func ChangeUserPassword ¶
func ChangeUserPassword(c *models.ReqContext, cmd models.ChangeUserPasswordCommand) response.Response
func ClearHelpFlags ¶
func ClearHelpFlags(c *models.ReqContext) response.Response
func CreateAlertNotification ¶
func CreateAlertNotification(c *models.ReqContext, cmd models.CreateAlertNotificationCommand) response.Response
func CreateDashboardSnapshot ¶
func CreateDashboardSnapshot(c *models.ReqContext, cmd models.CreateDashboardSnapshotCommand)
POST /api/snapshots
func CreateOrg ¶
func CreateOrg(c *models.ReqContext, cmd models.CreateOrgCommand) response.Response
POST /api/orgs
func CreatePlaylist ¶
func CreatePlaylist(c *models.ReqContext, cmd models.CreatePlaylistCommand) response.Response
func DeleteAPIKey ¶
func DeleteAPIKey(c *models.ReqContext) response.Response
func DeleteAlertNotification ¶
func DeleteAlertNotification(c *models.ReqContext) response.Response
func DeleteAlertNotificationByUID ¶
func DeleteAlertNotificationByUID(c *models.ReqContext) response.Response
func DeleteAnnotationByID ¶
func DeleteAnnotationByID(c *models.ReqContext) response.Response
func DeleteAnnotations ¶
func DeleteAnnotations(c *models.ReqContext, cmd dtos.DeleteAnnotationsCmd) response.Response
func DeleteDashboardSnapshot ¶
func DeleteDashboardSnapshot(c *models.ReqContext) response.Response
DELETE /api/snapshots/:key
func DeleteDashboardSnapshotByDeleteKey ¶
func DeleteDashboardSnapshotByDeleteKey(c *models.ReqContext) response.Response
GET /api/snapshots-delete/:deleteKey
func DeleteDataSourceById ¶
func DeleteDataSourceById(c *models.ReqContext) response.Response
func DeleteDataSourceByName ¶
func DeleteDataSourceByName(c *models.ReqContext) response.Response
func DeleteDataSourceByUID ¶
func DeleteDataSourceByUID(c *models.ReqContext) response.Response
DELETE /api/datasources/uid/:uid
func DeleteOrgByID ¶
func DeleteOrgByID(c *models.ReqContext) response.Response
GET /api/orgs/:orgId
func DeletePlaylist ¶
func DeletePlaylist(c *models.ReqContext) response.Response
func GenStateString ¶
func GenerateSQLTestData ¶
func GenerateSQLTestData(c *models.ReqContext) response.Response
GET /api/tsdb/testdata/gensql
func GetAPIKeys ¶
func GetAPIKeys(c *models.ReqContext) response.Response
func GetAlertNotificationByID ¶
func GetAlertNotificationByID(c *models.ReqContext) response.Response
func GetAlertNotificationByUID ¶
func GetAlertNotificationByUID(c *models.ReqContext) response.Response
func GetAlertNotificationLookup ¶
func GetAlertNotificationLookup(c *models.ReqContext) response.Response
func GetAlertNotifications ¶
func GetAlertNotifications(c *models.ReqContext) response.Response
func GetAlertNotifiers ¶
func GetAlertNotifiers(c *models.ReqContext) response.Response
func GetAlertStatesForDashboard ¶
func GetAlertStatesForDashboard(c *models.ReqContext) response.Response
func GetAnnotations ¶
func GetAnnotations(c *models.ReqContext) response.Response
func GetAuthProviderLabel ¶
func GetDashboardSnapshot ¶
func GetDashboardSnapshot(c *models.ReqContext) response.Response
GET /api/snapshots/:key
func GetDashboardTags ¶
func GetDashboardTags(c *models.ReqContext)
func GetDashboardVersion ¶
func GetDashboardVersion(c *models.ReqContext) response.Response
GetDashboardVersion returns the dashboard version with the given ID.
func GetDashboardVersions ¶
func GetDashboardVersions(c *models.ReqContext) response.Response
GetDashboardVersions returns all dashboard versions as JSON
func GetDataSourceById ¶
func GetDataSourceById(c *models.ReqContext) response.Response
func GetDataSourceByName ¶
func GetDataSourceByName(c *models.ReqContext) response.Response
Get /api/datasources/name/:name
func GetDataSourceByUID ¶
func GetDataSourceByUID(c *models.ReqContext) response.Response
GET /api/datasources/uid/:uid
func GetDataSourceIdByName ¶
func GetDataSourceIdByName(c *models.ReqContext) response.Response
Get /api/datasources/id/:name
func GetFolderByID ¶
func GetFolderByID(c *models.ReqContext) response.Response
func GetFolderByUID ¶
func GetFolderByUID(c *models.ReqContext) response.Response
func GetFolders ¶
func GetFolders(c *models.ReqContext) response.Response
func GetInviteInfoByCode ¶
func GetInviteInfoByCode(c *models.ReqContext) response.Response
GetInviteInfoByCode gets a pending user invite corresponding to a certain code. A response containing an InviteInfo object is returned if the invite is found. If a (pending) invite is not found, 404 is returned.
func GetOrgPreferences ¶
func GetOrgPreferences(c *models.ReqContext) response.Response
GET /api/org/preferences
func GetOrgQuotas ¶
func GetOrgQuotas(c *models.ReqContext) response.Response
func GetPendingOrgInvites ¶
func GetPendingOrgInvites(c *models.ReqContext) response.Response
func GetPlaylist ¶
func GetPlaylist(c *models.ReqContext) response.Response
func GetPlaylistDashboards ¶
func GetPlaylistDashboards(c *models.ReqContext) response.Response
func GetPlaylistItems ¶
func GetPlaylistItems(c *models.ReqContext) response.Response
func GetPluginDashboards ¶
func GetPluginDashboards(c *models.ReqContext) response.Response
func GetPluginMarkdown ¶
func GetPluginMarkdown(c *models.ReqContext) response.Response
func GetPluginSettingByID ¶
func GetPluginSettingByID(c *models.ReqContext) response.Response
func GetSharingOptions ¶
func GetSharingOptions(c *models.ReqContext)
func GetSignUpOptions ¶
func GetSignUpOptions(c *models.ReqContext) response.Response
GET /api/user/signup/options
func GetSignedInUser ¶
func GetSignedInUser(c *models.ReqContext) response.Response
GET /api/user (current authenticated user)
func GetSignedInUserOrgList ¶
func GetSignedInUserOrgList(c *models.ReqContext) response.Response
GET /api/user/orgs
func GetSignedInUserTeamList ¶
func GetSignedInUserTeamList(c *models.ReqContext) response.Response
GET /api/user/teams
func GetTestDataRandomWalk ¶
func GetTestDataRandomWalk(c *models.ReqContext) response.Response
GET /api/tsdb/testdata/random-walk
func GetUserByLoginOrEmail ¶
func GetUserByLoginOrEmail(c *models.ReqContext) response.Response
GET /api/users/lookup
func GetUserOrgList ¶
func GetUserOrgList(c *models.ReqContext) response.Response
GET /api/users/:id/orgs
func GetUserPreferences ¶
func GetUserPreferences(c *models.ReqContext) response.Response
GET /api/user/preferences
func GetUserQuotas ¶
func GetUserQuotas(c *models.ReqContext) response.Response
func GetUserTeams ¶
func GetUserTeams(c *models.ReqContext) response.Response
GET /api/users/:id/teams
func ImportDashboard ¶
func ImportDashboard(c *models.ReqContext, apiCmd dtos.ImportDashboardCommand) response.Response
func LoadPlaylistDashboards ¶
func LoadPlaylistDashboards(orgID int64, signedInUser *models.SignedInUser, playlistID int64) (dtos.PlaylistDashboardsSlice, error)
func LoadPlaylistItemDTOs ¶
func LoadPlaylistItemDTOs(id int64) ([]models.PlaylistItemDTO, error)
func LoadPlaylistItems ¶
func LoadPlaylistItems(id int64) ([]models.PlaylistItem, error)
func NewFrontendLogMessageHandler ¶
func NewFrontendLogMessageHandler(store *frontendlogging.SourceMapStore) frontendLogMessageHandler
func NotificationTest ¶
func NotificationTest(c *models.ReqContext, dto dtos.NotificationTestCommand) response.Response
POST /api/alert-notifications/test
func PatchAnnotation ¶
func PatchAnnotation(c *models.ReqContext, cmd dtos.PatchAnnotationsCmd) response.Response
func PauseAlert ¶
func PauseAlert(c *models.ReqContext, dto dtos.PauseAlertCommand) response.Response
POST /api/alerts/:alertId/pause
func PauseAllAlerts ¶
func PauseAllAlerts(c *models.ReqContext, dto dtos.PauseAllAlertsCommand) response.Response
POST /api/admin/pause-all-alerts
func PostAnnotation ¶
func PostAnnotation(c *models.ReqContext, cmd dtos.PostAnnotationsCmd) response.Response
func PostGraphiteAnnotation ¶
func PostGraphiteAnnotation(c *models.ReqContext, cmd dtos.PostGraphiteAnnotationsCmd) response.Response
func ProxyGnetRequest ¶
func ProxyGnetRequest(c *models.ReqContext)
func RemoveOrgUser ¶
func RemoveOrgUser(c *models.ReqContext) response.Response
DELETE /api/orgs/:orgId/users/:userId
func RemoveOrgUserForCurrentOrg ¶
func RemoveOrgUserForCurrentOrg(c *models.ReqContext) response.Response
DELETE /api/org/users/:userId
func ResetPassword ¶
func ResetPassword(c *models.ReqContext, form dtos.ResetUserPasswordForm) response.Response
func ReverseProxyGnetReq ¶
func ReverseProxyGnetReq(proxyPath string) *httputil.ReverseProxy
func RevokeInvite ¶
func RevokeInvite(c *models.ReqContext) response.Response
func SearchDashboardSnapshots ¶
func SearchDashboardSnapshots(c *models.ReqContext) response.Response
GET /api/dashboard/snapshots
func SearchOrgs ¶
func SearchOrgs(c *models.ReqContext) response.Response
func SearchPlaylists ¶
func SearchPlaylists(c *models.ReqContext) response.Response
func SearchUsersWithPaging ¶
func SearchUsersWithPaging(c *models.ReqContext) response.Response
GET /api/users/search
func SendResetPasswordEmail ¶
func SendResetPasswordEmail(c *models.ReqContext, form dtos.SendResetPasswordEmailForm) response.Response
func SetHelpFlag ¶
func SetHelpFlag(c *models.ReqContext) response.Response
func SetHomeDashboard ¶
func SetHomeDashboard(c *models.ReqContext, cmd models.SavePreferencesCommand) response.Response
POST /api/preferences/set-home-dash
func SignUp ¶
func SignUp(c *models.ReqContext, form dtos.SignUpForm) response.Response
POST /api/user/signup
func StarDashboard ¶
func StarDashboard(c *models.ReqContext) response.Response
func UnstarDashboard ¶
func UnstarDashboard(c *models.ReqContext) response.Response
func UpdateAlertNotification ¶
func UpdateAlertNotification(c *models.ReqContext, cmd models.UpdateAlertNotificationCommand) response.Response
func UpdateAlertNotificationByUID ¶
func UpdateAlertNotificationByUID(c *models.ReqContext, cmd models.UpdateAlertNotificationWithUidCommand) response.Response
func UpdateAnnotation ¶
func UpdateAnnotation(c *models.ReqContext, cmd dtos.UpdateAnnotationsCmd) response.Response
func UpdateDataSource ¶
func UpdateDataSource(c *models.ReqContext, cmd models.UpdateDataSourceCommand) response.Response
func UpdateFolder ¶
func UpdateFolder(c *models.ReqContext, cmd models.UpdateFolderCommand) response.Response
func UpdateOrg ¶
func UpdateOrg(c *models.ReqContext, form dtos.UpdateOrgForm) response.Response
PUT /api/orgs/:orgId
func UpdateOrgAddress ¶
func UpdateOrgAddress(c *models.ReqContext, form dtos.UpdateOrgAddressForm) response.Response
PUT /api/orgs/:orgId/address
func UpdateOrgAddressCurrent ¶
func UpdateOrgAddressCurrent(c *models.ReqContext, form dtos.UpdateOrgAddressForm) response.Response
PUT /api/org/address
func UpdateOrgCurrent ¶
func UpdateOrgCurrent(c *models.ReqContext, form dtos.UpdateOrgForm) response.Response
PUT /api/org
func UpdateOrgPreferences ¶
func UpdateOrgPreferences(c *models.ReqContext, dtoCmd dtos.UpdatePrefsCmd) response.Response
PUT /api/org/preferences
func UpdateOrgQuota ¶
func UpdateOrgQuota(c *models.ReqContext, cmd models.UpdateOrgQuotaCmd) response.Response
func UpdateOrgUser ¶
func UpdateOrgUser(c *models.ReqContext, cmd models.UpdateOrgUserCommand) response.Response
PATCH /api/orgs/:orgId/users/:userId
func UpdateOrgUserForCurrentOrg ¶
func UpdateOrgUserForCurrentOrg(c *models.ReqContext, cmd models.UpdateOrgUserCommand) response.Response
PATCH /api/org/users/:userId
func UpdatePlaylist ¶
func UpdatePlaylist(c *models.ReqContext, cmd models.UpdatePlaylistCommand) response.Response
func UpdatePluginSetting ¶
func UpdatePluginSetting(c *models.ReqContext, cmd models.UpdatePluginSettingCmd) response.Response
func UpdateSignedInUser ¶
func UpdateSignedInUser(c *models.ReqContext, cmd models.UpdateUserCommand) response.Response
POST /api/user
func UpdateUser ¶
func UpdateUser(c *models.ReqContext, cmd models.UpdateUserCommand) response.Response
POST /api/users/:id
func UpdateUserActiveOrg ¶
func UpdateUserActiveOrg(c *models.ReqContext) response.Response
POST /api/users/:id/using/:orgId
func UpdateUserPreferences ¶
func UpdateUserPreferences(c *models.ReqContext, dtoCmd dtos.UpdatePrefsCmd) response.Response
PUT /api/user/preferences
func UpdateUserQuota ¶
func UpdateUserQuota(c *models.ReqContext, cmd models.UpdateUserQuotaCmd) response.Response
func UserSetUsingOrg ¶
func UserSetUsingOrg(c *models.ReqContext) response.Response
POST /api/user/using/:id
func ValidateOrgAlert ¶
func ValidateOrgAlert(c *models.ReqContext)
func ValidateOrgPlaylist ¶
func ValidateOrgPlaylist(c *models.ReqContext)
Types ¶
type CreateAnnotationError ¶
type CreateAnnotationError struct {
// contains filtered or unexported fields
}
func (*CreateAnnotationError) Error ¶
func (e *CreateAnnotationError) Error() string
type HTTPServer ¶
type HTTPServer struct { RouteRegister routing.RouteRegister `inject:""` Bus bus.Bus `inject:""` RenderService rendering.Service `inject:""` Cfg *setting.Cfg `inject:""` HooksService *hooks.HooksService `inject:""` CacheService *localcache.CacheService `inject:""` DatasourceCache datasources.CacheService `inject:""` AuthTokenService models.UserTokenService `inject:""` QuotaService *quota.QuotaService `inject:""` RemoteCacheService *remotecache.RemoteCache `inject:""` ProvisioningService provisioning.ProvisioningService `inject:""` Login *login.LoginService `inject:""` License models.Licensing `inject:""` BackendPluginManager backendplugin.Manager `inject:""` PluginRequestValidator models.PluginRequestValidator `inject:""` PluginManager *plugins.PluginManager `inject:""` SearchService *search.SearchService `inject:""` ShortURLService *shorturls.ShortURLService `inject:""` Live *live.GrafanaLive `inject:""` ContextHandler *contexthandler.ContextHandler `inject:""` SQLStore *sqlstore.SQLStore `inject:""` LibraryPanelService *librarypanels.LibraryPanelService `inject:""` Listener net.Listener // contains filtered or unexported fields }
func (*HTTPServer) AddAPIKey ¶
func (hs *HTTPServer) AddAPIKey(c *models.ReqContext, cmd models.AddApiKeyCommand) response.Response
func (*HTTPServer) AddMiddleware ¶
func (hs *HTTPServer) AddMiddleware(middleware macaron.Handler)
func (*HTTPServer) AddTeamMember ¶
func (hs *HTTPServer) AddTeamMember(c *models.ReqContext, cmd models.AddTeamMemberCommand) response.Response
POST /api/teams/:teamId/members
func (*HTTPServer) AdminDisableUser ¶
func (hs *HTTPServer) AdminDisableUser(c *models.ReqContext) response.Response
POST /api/admin/users/:id/disable
func (*HTTPServer) AdminGetUserAuthTokens ¶
func (hs *HTTPServer) AdminGetUserAuthTokens(c *models.ReqContext) response.Response
GET /api/admin/users/:id/auth-tokens
func (*HTTPServer) AdminLogoutUser ¶
func (hs *HTTPServer) AdminLogoutUser(c *models.ReqContext) response.Response
POST /api/admin/users/:id/logout
func (*HTTPServer) AdminProvisioningReloadDashboards ¶
func (hs *HTTPServer) AdminProvisioningReloadDashboards(c *models.ReqContext) response.Response
func (*HTTPServer) AdminProvisioningReloadDatasources ¶
func (hs *HTTPServer) AdminProvisioningReloadDatasources(c *models.ReqContext) response.Response
func (*HTTPServer) AdminProvisioningReloadNotifications ¶
func (hs *HTTPServer) AdminProvisioningReloadNotifications(c *models.ReqContext) response.Response
func (*HTTPServer) AdminProvisioningReloadPlugins ¶
func (hs *HTTPServer) AdminProvisioningReloadPlugins(c *models.ReqContext) response.Response
func (*HTTPServer) AdminRevokeUserAuthToken ¶
func (hs *HTTPServer) AdminRevokeUserAuthToken(c *models.ReqContext, cmd models.RevokeAuthTokenCmd) response.Response
POST /api/admin/users/:id/revoke-auth-token
func (*HTTPServer) CallDatasourceResource ¶
func (hs *HTTPServer) CallDatasourceResource(c *models.ReqContext)
/api/datasources/:id/resources/*
func (*HTTPServer) CallResource ¶
func (hs *HTTPServer) CallResource(c *models.ReqContext)
CallResource passes a resource call from a plugin to the backend plugin.
/api/plugins/:pluginId/resources/*
func (*HTTPServer) ChangeActiveOrgAndRedirectToHome ¶
func (hs *HTTPServer) ChangeActiveOrgAndRedirectToHome(c *models.ReqContext)
GET /profile/switch-org/:id
func (*HTTPServer) CheckDatasourceHealth ¶
func (hs *HTTPServer) CheckDatasourceHealth(c *models.ReqContext) response.Response
CheckDatasourceHealth sends a health check request to the plugin datasource /api/datasource/:id/health
func (*HTTPServer) CheckHealth ¶
func (hs *HTTPServer) CheckHealth(c *models.ReqContext) response.Response
CheckHealth returns the health of a plugin. /api/plugins/:pluginId/health
func (*HTTPServer) CollectPluginMetrics ¶
func (hs *HTTPServer) CollectPluginMetrics(c *models.ReqContext) response.Response
CollectPluginMetrics collect metrics from a plugin.
/api/plugins/:pluginId/metrics
func (*HTTPServer) CompleteInvite ¶
func (hs *HTTPServer) CompleteInvite(c *models.ReqContext, completeInvite dtos.CompleteInviteForm) response.Response
func (*HTTPServer) CookieOptionsFromCfg ¶
func (hs *HTTPServer) CookieOptionsFromCfg() cookies.CookieOptions
func (*HTTPServer) CreateFolder ¶
func (hs *HTTPServer) CreateFolder(c *models.ReqContext, cmd models.CreateFolderCommand) response.Response
func (*HTTPServer) CreateTeam ¶
func (hs *HTTPServer) CreateTeam(c *models.ReqContext, cmd models.CreateTeamCommand) response.Response
POST /api/teams
func (*HTTPServer) DeleteDashboardBySlug ¶
func (hs *HTTPServer) DeleteDashboardBySlug(c *models.ReqContext) response.Response
func (*HTTPServer) DeleteDashboardByUID ¶
func (hs *HTTPServer) DeleteDashboardByUID(c *models.ReqContext) response.Response
func (*HTTPServer) DeleteFolder ¶
func (hs *HTTPServer) DeleteFolder(c *models.ReqContext) response.Response
func (*HTTPServer) DeleteTeamByID ¶
func (hs *HTTPServer) DeleteTeamByID(c *models.ReqContext) response.Response
DELETE /api/teams/:teamId
func (*HTTPServer) GetDashboard ¶
func (hs *HTTPServer) GetDashboard(c *models.ReqContext) response.Response
func (*HTTPServer) GetDashboardPermissionList ¶
func (hs *HTTPServer) GetDashboardPermissionList(c *models.ReqContext) response.Response
func (*HTTPServer) GetDataSources ¶
func (hs *HTTPServer) GetDataSources(c *models.ReqContext) response.Response
func (*HTTPServer) GetFolderPermissionList ¶
func (hs *HTTPServer) GetFolderPermissionList(c *models.ReqContext) response.Response
func (*HTTPServer) GetFrontendSettings ¶
func (hs *HTTPServer) GetFrontendSettings(c *models.ReqContext)
func (*HTTPServer) GetHomeDashboard ¶
func (hs *HTTPServer) GetHomeDashboard(c *models.ReqContext) response.Response
GetHomeDashboard returns the home dashboard.
func (*HTTPServer) GetLDAPStatus ¶
func (hs *HTTPServer) GetLDAPStatus(c *models.ReqContext) response.Response
GetLDAPStatus attempts to connect to all the configured LDAP servers and returns information on whenever they're available or not.
func (*HTTPServer) GetOrgByName ¶
func (hs *HTTPServer) GetOrgByName(c *models.ReqContext) response.Response
Get /api/orgs/name/:name
func (*HTTPServer) GetOrgUsers ¶
func (hs *HTTPServer) GetOrgUsers(c *models.ReqContext) response.Response
GET /api/orgs/:orgId/users
func (*HTTPServer) GetOrgUsersForCurrentOrg ¶
func (hs *HTTPServer) GetOrgUsersForCurrentOrg(c *models.ReqContext) response.Response
GET /api/org/users
func (*HTTPServer) GetOrgUsersForCurrentOrgLookup ¶
func (hs *HTTPServer) GetOrgUsersForCurrentOrgLookup(c *models.ReqContext) response.Response
GET /api/org/users/lookup
func (*HTTPServer) GetPluginErrorsList ¶
func (hs *HTTPServer) GetPluginErrorsList(c *models.ReqContext) response.Response
func (*HTTPServer) GetPluginList ¶
func (hs *HTTPServer) GetPluginList(c *models.ReqContext) response.Response
func (*HTTPServer) GetTeamByID ¶
func (hs *HTTPServer) GetTeamByID(c *models.ReqContext) response.Response
GET /api/teams/:teamId
func (*HTTPServer) GetTeamMembers ¶
func (hs *HTTPServer) GetTeamMembers(c *models.ReqContext) response.Response
GET /api/teams/:teamId/members
func (*HTTPServer) GetTeamPreferences ¶
func (hs *HTTPServer) GetTeamPreferences(c *models.ReqContext) response.Response
GET /api/teams/:teamId/preferences
func (*HTTPServer) GetUserAuthTokens ¶
func (hs *HTTPServer) GetUserAuthTokens(c *models.ReqContext) response.Response
GET /api/user/auth-tokens
func (*HTTPServer) GetUserFromLDAP ¶
func (hs *HTTPServer) GetUserFromLDAP(c *models.ReqContext) response.Response
GetUserFromLDAP finds an user based on a username in LDAP. This helps illustrate how would the particular user be mapped in Grafana when synced.
func (*HTTPServer) Index ¶
func (hs *HTTPServer) Index(c *models.ReqContext)
func (*HTTPServer) Init ¶
func (hs *HTTPServer) Init() error
func (*HTTPServer) ListSortOptions ¶
func (hs *HTTPServer) ListSortOptions(c *models.ReqContext) response.Response
func (*HTTPServer) LoginAPIPing ¶
func (hs *HTTPServer) LoginAPIPing(c *models.ReqContext) response.Response
func (*HTTPServer) LoginPost ¶
func (hs *HTTPServer) LoginPost(c *models.ReqContext, cmd dtos.LoginCommand) response.Response
func (*HTTPServer) LoginView ¶
func (hs *HTTPServer) LoginView(c *models.ReqContext)
func (*HTTPServer) Logout ¶
func (hs *HTTPServer) Logout(c *models.ReqContext)
func (*HTTPServer) NotFoundHandler ¶
func (hs *HTTPServer) NotFoundHandler(c *models.ReqContext)
func (*HTTPServer) OAuthLogin ¶
func (hs *HTTPServer) OAuthLogin(ctx *models.ReqContext)
func (*HTTPServer) PostDashboard ¶
func (hs *HTTPServer) PostDashboard(c *models.ReqContext, cmd models.SaveDashboardCommand) response.Response
func (*HTTPServer) PostFrontendMetrics ¶
func (hs *HTTPServer) PostFrontendMetrics(c *models.ReqContext, cmd metrics.PostFrontendMetricsCommand) response.Response
func (*HTTPServer) PostSyncUserWithLDAP ¶
func (hs *HTTPServer) PostSyncUserWithLDAP(c *models.ReqContext) response.Response
PostSyncUserWithLDAP enables a single Grafana user to be synchronized against LDAP
func (*HTTPServer) ProxyDataSourceRequest ¶
func (hs *HTTPServer) ProxyDataSourceRequest(c *models.ReqContext)
ProxyDataSourceRequest proxies datasource requests
func (*HTTPServer) QueryMetrics ¶
func (hs *HTTPServer) QueryMetrics(c *models.ReqContext, reqDto dtos.MetricRequest) response.Response
QueryMetrics returns query metrics POST /api/tsdb/query
func (*HTTPServer) QueryMetricsV2 ¶
func (hs *HTTPServer) QueryMetricsV2(c *models.ReqContext, reqDTO dtos.MetricRequest) response.Response
QueryMetricsV2 returns query metrics. POST /api/ds/query DataSource query w/ expressions
func (*HTTPServer) RedirectResponseWithError ¶
func (hs *HTTPServer) RedirectResponseWithError(ctx *models.ReqContext, err error, v ...interface{}) *response.RedirectResponse
func (*HTTPServer) ReloadLDAPCfg ¶
func (hs *HTTPServer) ReloadLDAPCfg() response.Response
ReloadLDAPCfg reloads the LDAP configuration
func (*HTTPServer) RemoveTeamMember ¶
func (hs *HTTPServer) RemoveTeamMember(c *models.ReqContext) response.Response
DELETE /api/teams/:teamId/members/:userId
func (*HTTPServer) RenderToPng ¶
func (hs *HTTPServer) RenderToPng(c *models.ReqContext)
func (*HTTPServer) RestoreDashboardVersion ¶
func (hs *HTTPServer) RestoreDashboardVersion(c *models.ReqContext, apiCmd dtos.RestoreDashboardVersionCommand) response.Response
RestoreDashboardVersion restores a dashboard to the given version.
func (*HTTPServer) RevokeUserAuthToken ¶
func (hs *HTTPServer) RevokeUserAuthToken(c *models.ReqContext, cmd models.RevokeAuthTokenCmd) response.Response
POST /api/user/revoke-auth-token
func (*HTTPServer) SearchTeams ¶
func (hs *HTTPServer) SearchTeams(c *models.ReqContext) response.Response
GET /api/teams/search
func (*HTTPServer) SignUpStep2 ¶
func (hs *HTTPServer) SignUpStep2(c *models.ReqContext, form dtos.SignUpStep2Form) response.Response
func (*HTTPServer) UpdateDashboardPermissions ¶
func (hs *HTTPServer) UpdateDashboardPermissions(c *models.ReqContext, apiCmd dtos.UpdateDashboardAclCommand) response.Response
func (*HTTPServer) UpdateFolderPermissions ¶
func (hs *HTTPServer) UpdateFolderPermissions(c *models.ReqContext, apiCmd dtos.UpdateDashboardAclCommand) response.Response
func (*HTTPServer) UpdateTeam ¶
func (hs *HTTPServer) UpdateTeam(c *models.ReqContext, cmd models.UpdateTeamCommand) response.Response
PUT /api/teams/:teamId
func (*HTTPServer) UpdateTeamMember ¶
func (hs *HTTPServer) UpdateTeamMember(c *models.ReqContext, cmd models.UpdateTeamMemberCommand) response.Response
PUT /:teamId/members/:userId
func (*HTTPServer) UpdateTeamPreferences ¶
func (hs *HTTPServer) UpdateTeamPreferences(c *models.ReqContext, dtoCmd dtos.UpdatePrefsCmd) response.Response
PUT /api/teams/:teamId/preferences
func (*HTTPServer) ValidateRedirectTo ¶
func (hs *HTTPServer) ValidateRedirectTo(redirectTo string) error
type LDAPAttribute ¶
type LDAPAttribute struct { ConfigAttributeValue string `json:"cfgAttrValue"` LDAPAttributeValue string `json:"ldapValue"` }
LDAPAttribute is a serializer for user attributes mapped from LDAP. Is meant to display both the serialized value and the LDAP key we received it from.
type LDAPRoleDTO ¶
type LDAPRoleDTO struct { OrgId int64 `json:"orgId"` OrgName string `json:"orgName"` OrgRole models.RoleType `json:"orgRole"` GroupDN string `json:"groupDN"` }
RoleDTO is a serializer for mapped roles from LDAP
type LDAPServerDTO ¶
type LDAPServerDTO struct { Host string `json:"host"` Port int `json:"port"` Available bool `json:"available"` Error string `json:"error"` }
LDAPServerDTO is a serializer for LDAP server statuses
type LDAPUserDTO ¶
type LDAPUserDTO struct { Name *LDAPAttribute `json:"name"` Surname *LDAPAttribute `json:"surname"` Email *LDAPAttribute `json:"email"` Username *LDAPAttribute `json:"login"` IsGrafanaAdmin *bool `json:"isGrafanaAdmin"` IsDisabled bool `json:"isDisabled"` OrgRoles []LDAPRoleDTO `json:"roles"` Teams []models.TeamOrgGroupDTO `json:"teams"` }
LDAPUserDTO is a serializer for users mapped from LDAP
func (*LDAPUserDTO) FetchOrgs ¶
func (user *LDAPUserDTO) FetchOrgs() error
FetchOrgs fetches the organization(s) information by executing a single query to the database. Then, populating the DTO with the information retrieved.
type LoginError ¶
Source Files ¶
- admin.go
- admin_provisioning.go
- admin_users.go
- alerting.go
- annotations.go
- api.go
- apikey.go
- app_routes.go
- basic_auth.go
- dashboard.go
- dashboard_permission.go
- dashboard_snapshot.go
- dataproxy.go
- datasources.go
- folder.go
- folder_permission.go
- frontend_logging.go
- frontend_metrics.go
- frontendsettings.go
- grafana_com_proxy.go
- health.go
- http_server.go
- index.go
- ldap_debug.go
- login.go
- login_oauth.go
- metrics.go
- org.go
- org_invite.go
- org_users.go
- password.go
- playlist.go
- playlist_play.go
- plugins.go
- preferences.go
- quota.go
- render.go
- search.go
- short_url.go
- signup.go
- stars.go
- team.go
- team_members.go
- user.go
- user_token.go
- utils.go