Documentation ¶
Index ¶
- Constants
- Variables
- func AddDataSource(c *middleware.Context, cmd m.AddDataSourceCommand)
- func AdminCreateUser(c *middleware.Context, form dtos.AdminCreateUserForm)
- func AdminDeleteUser(c *middleware.Context)
- func AdminGetSettings(c *middleware.Context)
- func AdminGetStats(c *middleware.Context)
- func AdminUpdateUserPassword(c *middleware.Context, form dtos.AdminUpdateUserPasswordForm)
- func AdminUpdateUserPermissions(c *middleware.Context, form dtos.AdminUpdateUserPermissionsForm)
- func AppPluginRoute(route *plugins.AppPluginRoute, appId string) macaron.Handler
- func ChangeActiveOrgAndRedirectToHome(c *middleware.Context)
- func CreateDashboardSnapshot(c *middleware.Context, cmd m.CreateDashboardSnapshotCommand)
- func DeleteDashboard(c *middleware.Context)
- func DeleteDashboardSnapshot(c *middleware.Context)
- func DeleteDataSourceById(c *middleware.Context)
- func DeleteDataSourceByName(c *middleware.Context)
- func GenStateString() string
- func GetDashboard(c *middleware.Context)
- func GetDashboardFromJsonFile(c *middleware.Context)
- func GetDashboardSnapshot(c *middleware.Context)
- func GetDashboardTags(c *middleware.Context)
- func GetFrontendSettings(c *middleware.Context)
- func GetSharingOptions(c *middleware.Context)
- func Index(c *middleware.Context)
- func InitAppPluginRoutes(r *macaron.Macaron)
- func LoadPlaylistDashboards(orgId, userId, playlistId int64) (dtos.PlaylistDashboardsSlice, error)
- func LoadPlaylistItemDTOs(id int64) ([]m.PlaylistItemDTO, error)
- func LoadPlaylistItems(id int64) ([]m.PlaylistItem, error)
- func LoginApiPing(c *middleware.Context)
- func LoginView(c *middleware.Context)
- func Logout(c *middleware.Context)
- func NotFoundHandler(c *middleware.Context)
- func OAuthLogin(ctx *middleware.Context)
- func ProxyGnetRequest(c *middleware.Context)
- func RenderToPng(c *middleware.Context)
- func ReverseProxyGnetReq(proxyPath string) *httputil.ReverseProxy
- func Search(c *middleware.Context)
- func ValidateOrgAlert(c *middleware.Context)
- func ValidateOrgPlaylist(c *middleware.Context)
- type HttpServer
- type NormalResponse
- type RegisterNamedMiddleware
- type Response
- func AddApiKey(c *middleware.Context, cmd m.AddApiKeyCommand) Response
- func AddOrgInvite(c *middleware.Context, inviteDto dtos.AddInviteForm) Response
- func AddOrgUser(c *middleware.Context, cmd m.AddOrgUserCommand) Response
- func AddOrgUserToCurrentOrg(c *middleware.Context, cmd m.AddOrgUserCommand) Response
- func AlertTest(c *middleware.Context, dto dtos.AlertTestCommand) Response
- func CalculateDashboardDiff(c *middleware.Context, apiOptions dtos.CalculateDiffOptions) Response
- func ChangeUserPassword(c *middleware.Context, cmd m.ChangeUserPasswordCommand) Response
- func ClearHelpFlags(c *middleware.Context) Response
- func CompleteInvite(c *middleware.Context, completeInvite dtos.CompleteInviteForm) Response
- func CreateAlertNotification(c *middleware.Context, cmd models.CreateAlertNotificationCommand) Response
- func CreateOrg(c *middleware.Context, cmd m.CreateOrgCommand) Response
- func CreatePlaylist(c *middleware.Context, cmd m.CreatePlaylistCommand) Response
- func DelAlert(c *middleware.Context) Response
- func DeleteAlertNotification(c *middleware.Context) Response
- func DeleteAnnotations(c *middleware.Context, cmd dtos.DeleteAnnotationsCmd) Response
- func DeleteApiKey(c *middleware.Context) Response
- func DeleteOrgById(c *middleware.Context) Response
- func DeletePlaylist(c *middleware.Context) Response
- func GenerateError(c *middleware.Context) Response
- func GenerateSqlTestData(c *middleware.Context) Response
- func GetAlert(c *middleware.Context) Response
- func GetAlertNotificationById(c *middleware.Context) Response
- func GetAlertNotifications(c *middleware.Context) Response
- func GetAlertNotifiers(c *middleware.Context) Response
- func GetAlertStatesForDashboard(c *middleware.Context) Response
- func GetAlerts(c *middleware.Context) Response
- func GetAnnotations(c *middleware.Context) Response
- func GetApiKeys(c *middleware.Context) Response
- func GetDashboardVersion(c *middleware.Context) Response
- func GetDashboardVersions(c *middleware.Context) Response
- func GetDataSourceById(c *middleware.Context) Response
- func GetDataSourceByName(c *middleware.Context) Response
- func GetDataSourceIdByName(c *middleware.Context) Response
- func GetDataSources(c *middleware.Context) Response
- func GetHomeDashboard(c *middleware.Context) Response
- func GetInviteInfoByCode(c *middleware.Context) Response
- func GetOrgById(c *middleware.Context) Response
- func GetOrgByName(c *middleware.Context) Response
- func GetOrgCurrent(c *middleware.Context) Response
- func GetOrgPreferences(c *middleware.Context) Response
- func GetOrgQuotas(c *middleware.Context) Response
- func GetOrgUsers(c *middleware.Context) Response
- func GetOrgUsersForCurrentOrg(c *middleware.Context) Response
- func GetPendingOrgInvites(c *middleware.Context) Response
- func GetPlaylist(c *middleware.Context) Response
- func GetPlaylistDashboards(c *middleware.Context) Response
- func GetPlaylistItems(c *middleware.Context) Response
- func GetPluginDashboards(c *middleware.Context) Response
- func GetPluginList(c *middleware.Context) Response
- func GetPluginMarkdown(c *middleware.Context) Response
- func GetPluginSettingById(c *middleware.Context) Response
- func GetSignUpOptions(c *middleware.Context) Response
- func GetSignedInUser(c *middleware.Context) Response
- func GetSignedInUserOrgList(c *middleware.Context) Response
- func GetTestDataRandomWalk(c *middleware.Context) Response
- func GetTestDataScenarios(c *middleware.Context) Response
- func GetUserById(c *middleware.Context) Response
- func GetUserByLoginOrEmail(c *middleware.Context) Response
- func GetUserOrgList(c *middleware.Context) Response
- func GetUserPreferences(c *middleware.Context) Response
- func GetUserQuotas(c *middleware.Context) Response
- func ImportDashboard(c *middleware.Context, apiCmd dtos.ImportDashboardCommand) Response
- func LoginPost(c *middleware.Context, cmd dtos.LoginCommand) Response
- func NotificationTest(c *middleware.Context, dto dtos.NotificationTestCommand) Response
- func PauseAlert(c *middleware.Context, dto dtos.PauseAlertCommand) Response
- func PauseAllAlerts(c *middleware.Context, dto dtos.PauseAllAlertsCommand) Response
- func PostAnnotation(c *middleware.Context, cmd dtos.PostAnnotationsCmd) Response
- func PostDashboard(c *middleware.Context, cmd m.SaveDashboardCommand) Response
- func QueryMetrics(c *middleware.Context, reqDto dtos.MetricRequest) Response
- func RemoveOrgUser(c *middleware.Context) Response
- func RemoveOrgUserForCurrentOrg(c *middleware.Context) Response
- func ResetPassword(c *middleware.Context, form dtos.ResetUserPasswordForm) Response
- func RestoreDashboardVersion(c *middleware.Context, apiCmd dtos.RestoreDashboardVersionCommand) Response
- func RevokeInvite(c *middleware.Context) Response
- func SearchDashboardSnapshots(c *middleware.Context) Response
- func SearchOrgs(c *middleware.Context) Response
- func SearchPlaylists(c *middleware.Context) Response
- func SearchUsers(c *middleware.Context) Response
- func SearchUsersWithPaging(c *middleware.Context) Response
- func SendResetPasswordEmail(c *middleware.Context, form dtos.SendResetPasswordEmailForm) Response
- func SetHelpFlag(c *middleware.Context) Response
- func SetHomeDashboard(c *middleware.Context, cmd m.SavePreferencesCommand) Response
- func SignUp(c *middleware.Context, form dtos.SignUpForm) Response
- func SignUpStep2(c *middleware.Context, form dtos.SignUpStep2Form) Response
- func StarDashboard(c *middleware.Context) Response
- func UnstarDashboard(c *middleware.Context) Response
- func UpdateAlertNotification(c *middleware.Context, cmd models.UpdateAlertNotificationCommand) Response
- func UpdateDataSource(c *middleware.Context, cmd m.UpdateDataSourceCommand) Response
- func UpdateOrg(c *middleware.Context, form dtos.UpdateOrgForm) Response
- func UpdateOrgAddress(c *middleware.Context, form dtos.UpdateOrgAddressForm) Response
- func UpdateOrgAddressCurrent(c *middleware.Context, form dtos.UpdateOrgAddressForm) Response
- func UpdateOrgCurrent(c *middleware.Context, form dtos.UpdateOrgForm) Response
- func UpdateOrgPreferences(c *middleware.Context, dtoCmd dtos.UpdatePrefsCmd) Response
- func UpdateOrgQuota(c *middleware.Context, cmd m.UpdateOrgQuotaCmd) Response
- func UpdateOrgUser(c *middleware.Context, cmd m.UpdateOrgUserCommand) Response
- func UpdateOrgUserForCurrentOrg(c *middleware.Context, cmd m.UpdateOrgUserCommand) Response
- func UpdatePlaylist(c *middleware.Context, cmd m.UpdatePlaylistCommand) Response
- func UpdatePluginSetting(c *middleware.Context, cmd m.UpdatePluginSettingCmd) Response
- func UpdateSignedInUser(c *middleware.Context, cmd m.UpdateUserCommand) Response
- func UpdateUser(c *middleware.Context, cmd m.UpdateUserCommand) Response
- func UpdateUserActiveOrg(c *middleware.Context) Response
- func UpdateUserPreferences(c *middleware.Context, dtoCmd dtos.UpdatePrefsCmd) Response
- func UpdateUserQuota(c *middleware.Context, cmd m.UpdateUserQuotaCmd) Response
- func UserSetUsingOrg(c *middleware.Context) Response
- type RouteRegister
- type Router
Constants ¶
const HeaderNameNoBackendCache = "X-Grafana-NoCache"
const (
VIEW_INDEX = "index"
)
Variables ¶
var ( NotFound = func() Response { return ApiError(404, "Not found", nil) } ServerError = func(err error) Response { return ApiError(500, "Server error", err) } )
var ( ErrProviderDeniedRequest = errors.New("Login provider denied login request") ErrEmailNotAllowed = errors.New("Required email domain not fulfilled") ErrSignUpNotAllowed = errors.New("Signup is not allowed for this adapter") ErrUsersQuotaReached = errors.New("Users quota reached") ErrNoEmail = errors.New("Login provider didn't return an email address") )
Functions ¶
func AddDataSource ¶
func AddDataSource(c *middleware.Context, cmd m.AddDataSourceCommand)
func AdminCreateUser ¶
func AdminCreateUser(c *middleware.Context, form dtos.AdminCreateUserForm)
func AdminDeleteUser ¶
func AdminDeleteUser(c *middleware.Context)
func AdminGetSettings ¶
func AdminGetSettings(c *middleware.Context)
func AdminGetStats ¶
func AdminGetStats(c *middleware.Context)
func AdminUpdateUserPassword ¶
func AdminUpdateUserPassword(c *middleware.Context, form dtos.AdminUpdateUserPasswordForm)
func AdminUpdateUserPermissions ¶
func AdminUpdateUserPermissions(c *middleware.Context, form dtos.AdminUpdateUserPermissionsForm)
func AppPluginRoute ¶
func AppPluginRoute(route *plugins.AppPluginRoute, appId string) macaron.Handler
func ChangeActiveOrgAndRedirectToHome ¶
func ChangeActiveOrgAndRedirectToHome(c *middleware.Context)
GET /profile/switch-org/:id
func CreateDashboardSnapshot ¶
func CreateDashboardSnapshot(c *middleware.Context, cmd m.CreateDashboardSnapshotCommand)
func DeleteDashboard ¶
func DeleteDashboard(c *middleware.Context)
func DeleteDashboardSnapshot ¶
func DeleteDashboardSnapshot(c *middleware.Context)
func DeleteDataSourceById ¶
func DeleteDataSourceById(c *middleware.Context)
func DeleteDataSourceByName ¶
func DeleteDataSourceByName(c *middleware.Context)
func GenStateString ¶
func GenStateString() string
func GetDashboard ¶
func GetDashboard(c *middleware.Context)
func GetDashboardFromJsonFile ¶
func GetDashboardFromJsonFile(c *middleware.Context)
func GetDashboardSnapshot ¶
func GetDashboardSnapshot(c *middleware.Context)
func GetDashboardTags ¶
func GetDashboardTags(c *middleware.Context)
func GetFrontendSettings ¶
func GetFrontendSettings(c *middleware.Context)
func GetSharingOptions ¶
func GetSharingOptions(c *middleware.Context)
func Index ¶
func Index(c *middleware.Context)
func InitAppPluginRoutes ¶
func InitAppPluginRoutes(r *macaron.Macaron)
func LoadPlaylistDashboards ¶
func LoadPlaylistDashboards(orgId, userId, playlistId int64) (dtos.PlaylistDashboardsSlice, error)
func LoadPlaylistItemDTOs ¶
func LoadPlaylistItemDTOs(id int64) ([]m.PlaylistItemDTO, error)
func LoadPlaylistItems ¶
func LoadPlaylistItems(id int64) ([]m.PlaylistItem, error)
func LoginApiPing ¶
func LoginApiPing(c *middleware.Context)
func LoginView ¶
func LoginView(c *middleware.Context)
func Logout ¶
func Logout(c *middleware.Context)
func NotFoundHandler ¶
func NotFoundHandler(c *middleware.Context)
func OAuthLogin ¶
func OAuthLogin(ctx *middleware.Context)
func ProxyGnetRequest ¶
func ProxyGnetRequest(c *middleware.Context)
func RenderToPng ¶
func RenderToPng(c *middleware.Context)
func ReverseProxyGnetReq ¶
func ReverseProxyGnetReq(proxyPath string) *httputil.ReverseProxy
func Search ¶
func Search(c *middleware.Context)
func ValidateOrgAlert ¶
func ValidateOrgAlert(c *middleware.Context)
func ValidateOrgPlaylist ¶
func ValidateOrgPlaylist(c *middleware.Context)
Types ¶
type HttpServer ¶
type HttpServer struct {
// contains filtered or unexported fields
}
func NewHttpServer ¶
func NewHttpServer() *HttpServer
func (*HttpServer) ProxyDataSourceRequest ¶
func (hs *HttpServer) ProxyDataSourceRequest(c *middleware.Context)
type NormalResponse ¶
type NormalResponse struct {
// contains filtered or unexported fields
}
func ApiSuccess ¶
func ApiSuccess(message string) *NormalResponse
func Json ¶
func Json(status int, body interface{}) *NormalResponse
func Respond ¶
func Respond(status int, body interface{}) *NormalResponse
func (*NormalResponse) Cache ¶
func (r *NormalResponse) Cache(ttl string) *NormalResponse
func (*NormalResponse) Header ¶
func (r *NormalResponse) Header(key, value string) *NormalResponse
func (*NormalResponse) WriteTo ¶
func (r *NormalResponse) WriteTo(ctx *middleware.Context)
type RegisterNamedMiddleware ¶
type Response ¶
type Response interface {
WriteTo(ctx *middleware.Context)
}
func AddApiKey ¶
func AddApiKey(c *middleware.Context, cmd m.AddApiKeyCommand) Response
func AddOrgInvite ¶
func AddOrgInvite(c *middleware.Context, inviteDto dtos.AddInviteForm) Response
func AddOrgUser ¶
func AddOrgUser(c *middleware.Context, cmd m.AddOrgUserCommand) Response
POST /api/orgs/:orgId/users
func AddOrgUserToCurrentOrg ¶
func AddOrgUserToCurrentOrg(c *middleware.Context, cmd m.AddOrgUserCommand) Response
POST /api/org/users
func AlertTest ¶
func AlertTest(c *middleware.Context, dto dtos.AlertTestCommand) Response
POST /api/alerts/test
func CalculateDashboardDiff ¶
func CalculateDashboardDiff(c *middleware.Context, apiOptions dtos.CalculateDiffOptions) Response
POST /api/dashboards/calculate-diff performs diffs on two dashboards
func ChangeUserPassword ¶
func ChangeUserPassword(c *middleware.Context, cmd m.ChangeUserPasswordCommand) Response
func ClearHelpFlags ¶
func ClearHelpFlags(c *middleware.Context) Response
func CompleteInvite ¶
func CompleteInvite(c *middleware.Context, completeInvite dtos.CompleteInviteForm) Response
func CreateAlertNotification ¶
func CreateAlertNotification(c *middleware.Context, cmd models.CreateAlertNotificationCommand) Response
func CreateOrg ¶
func CreateOrg(c *middleware.Context, cmd m.CreateOrgCommand) Response
POST /api/orgs
func CreatePlaylist ¶
func CreatePlaylist(c *middleware.Context, cmd m.CreatePlaylistCommand) Response
func DeleteAlertNotification ¶
func DeleteAlertNotification(c *middleware.Context) Response
func DeleteAnnotations ¶
func DeleteAnnotations(c *middleware.Context, cmd dtos.DeleteAnnotationsCmd) Response
func DeleteApiKey ¶
func DeleteApiKey(c *middleware.Context) Response
func DeletePlaylist ¶
func DeletePlaylist(c *middleware.Context) Response
func GenerateError ¶
func GenerateError(c *middleware.Context) Response
Genereates a index out of range error
func GenerateSqlTestData ¶
func GenerateSqlTestData(c *middleware.Context) Response
GET /api/tsdb/testdata/gensql
func GetAlertNotificationById ¶
func GetAlertNotificationById(c *middleware.Context) Response
func GetAlertNotifications ¶
func GetAlertNotifications(c *middleware.Context) Response
func GetAlertNotifiers ¶
func GetAlertNotifiers(c *middleware.Context) Response
func GetAlertStatesForDashboard ¶
func GetAlertStatesForDashboard(c *middleware.Context) Response
func GetAnnotations ¶
func GetAnnotations(c *middleware.Context) Response
func GetApiKeys ¶
func GetApiKeys(c *middleware.Context) Response
func GetDashboardVersion ¶
func GetDashboardVersion(c *middleware.Context) Response
GetDashboardVersion returns the dashboard version with the given ID.
func GetDashboardVersions ¶
func GetDashboardVersions(c *middleware.Context) Response
GetDashboardVersions returns all dashboard versions as JSON
func GetDataSourceById ¶
func GetDataSourceById(c *middleware.Context) Response
func GetDataSourceByName ¶
func GetDataSourceByName(c *middleware.Context) Response
Get /api/datasources/name/:name
func GetDataSourceIdByName ¶
func GetDataSourceIdByName(c *middleware.Context) Response
Get /api/datasources/id/:name
func GetDataSources ¶
func GetDataSources(c *middleware.Context) Response
func GetHomeDashboard ¶
func GetHomeDashboard(c *middleware.Context) Response
func GetInviteInfoByCode ¶
func GetInviteInfoByCode(c *middleware.Context) Response
func GetOrgPreferences ¶
func GetOrgPreferences(c *middleware.Context) Response
GET /api/org/preferences
func GetOrgQuotas ¶
func GetOrgQuotas(c *middleware.Context) Response
func GetOrgUsersForCurrentOrg ¶
func GetOrgUsersForCurrentOrg(c *middleware.Context) Response
GET /api/org/users
func GetPendingOrgInvites ¶
func GetPendingOrgInvites(c *middleware.Context) Response
func GetPlaylist ¶
func GetPlaylist(c *middleware.Context) Response
func GetPlaylistDashboards ¶
func GetPlaylistDashboards(c *middleware.Context) Response
func GetPlaylistItems ¶
func GetPlaylistItems(c *middleware.Context) Response
func GetPluginDashboards ¶
func GetPluginDashboards(c *middleware.Context) Response
func GetPluginList ¶
func GetPluginList(c *middleware.Context) Response
func GetPluginMarkdown ¶
func GetPluginMarkdown(c *middleware.Context) Response
func GetPluginSettingById ¶
func GetPluginSettingById(c *middleware.Context) Response
func GetSignUpOptions ¶
func GetSignUpOptions(c *middleware.Context) Response
GET /api/user/signup/options
func GetSignedInUser ¶
func GetSignedInUser(c *middleware.Context) Response
GET /api/user (current authenticated user)
func GetSignedInUserOrgList ¶
func GetSignedInUserOrgList(c *middleware.Context) Response
GET /api/user/orgs
func GetTestDataRandomWalk ¶
func GetTestDataRandomWalk(c *middleware.Context) Response
GET /api/tsdb/testdata/random-walk
func GetTestDataScenarios ¶
func GetTestDataScenarios(c *middleware.Context) Response
GET /api/tsdb/testdata/scenarios
func GetUserByLoginOrEmail ¶
func GetUserByLoginOrEmail(c *middleware.Context) Response
GET /api/users/lookup
func GetUserPreferences ¶
func GetUserPreferences(c *middleware.Context) Response
GET /api/user/preferences
func GetUserQuotas ¶
func GetUserQuotas(c *middleware.Context) Response
func ImportDashboard ¶
func ImportDashboard(c *middleware.Context, apiCmd dtos.ImportDashboardCommand) Response
func LoginPost ¶
func LoginPost(c *middleware.Context, cmd dtos.LoginCommand) Response
func NotificationTest ¶
func NotificationTest(c *middleware.Context, dto dtos.NotificationTestCommand) Response
POST /api/alert-notifications/test
func PauseAlert ¶
func PauseAlert(c *middleware.Context, dto dtos.PauseAlertCommand) Response
POST /api/alerts/:alertId/pause
func PauseAllAlerts ¶
func PauseAllAlerts(c *middleware.Context, dto dtos.PauseAllAlertsCommand) Response
POST /api/admin/pause-all-alerts
func PostAnnotation ¶
func PostAnnotation(c *middleware.Context, cmd dtos.PostAnnotationsCmd) Response
func PostDashboard ¶
func PostDashboard(c *middleware.Context, cmd m.SaveDashboardCommand) Response
func QueryMetrics ¶
func QueryMetrics(c *middleware.Context, reqDto dtos.MetricRequest) Response
POST /api/tsdb/query
func RemoveOrgUser ¶
func RemoveOrgUser(c *middleware.Context) Response
DELETE /api/orgs/:orgId/users/:userId
func RemoveOrgUserForCurrentOrg ¶
func RemoveOrgUserForCurrentOrg(c *middleware.Context) Response
DELETE /api/org/users/:userId
func ResetPassword ¶
func ResetPassword(c *middleware.Context, form dtos.ResetUserPasswordForm) Response
func RestoreDashboardVersion ¶
func RestoreDashboardVersion(c *middleware.Context, apiCmd dtos.RestoreDashboardVersionCommand) Response
RestoreDashboardVersion restores a dashboard to the given version.
func RevokeInvite ¶
func RevokeInvite(c *middleware.Context) Response
func SearchDashboardSnapshots ¶
func SearchDashboardSnapshots(c *middleware.Context) Response
func SearchOrgs ¶
func SearchOrgs(c *middleware.Context) Response
func SearchPlaylists ¶
func SearchPlaylists(c *middleware.Context) Response
func SearchUsersWithPaging ¶
func SearchUsersWithPaging(c *middleware.Context) Response
GET /api/search
func SendResetPasswordEmail ¶
func SendResetPasswordEmail(c *middleware.Context, form dtos.SendResetPasswordEmailForm) Response
func SetHelpFlag ¶
func SetHelpFlag(c *middleware.Context) Response
func SetHomeDashboard ¶
func SetHomeDashboard(c *middleware.Context, cmd m.SavePreferencesCommand) Response
POST /api/preferences/set-home-dash
func SignUp ¶
func SignUp(c *middleware.Context, form dtos.SignUpForm) Response
POST /api/user/signup
func SignUpStep2 ¶
func SignUpStep2(c *middleware.Context, form dtos.SignUpStep2Form) Response
func StarDashboard ¶
func StarDashboard(c *middleware.Context) Response
func UnstarDashboard ¶
func UnstarDashboard(c *middleware.Context) Response
func UpdateAlertNotification ¶
func UpdateAlertNotification(c *middleware.Context, cmd models.UpdateAlertNotificationCommand) Response
func UpdateDataSource ¶
func UpdateDataSource(c *middleware.Context, cmd m.UpdateDataSourceCommand) Response
func UpdateOrg ¶
func UpdateOrg(c *middleware.Context, form dtos.UpdateOrgForm) Response
PUT /api/orgs/:orgId
func UpdateOrgAddress ¶
func UpdateOrgAddress(c *middleware.Context, form dtos.UpdateOrgAddressForm) Response
PUT /api/orgs/:orgId/address
func UpdateOrgAddressCurrent ¶
func UpdateOrgAddressCurrent(c *middleware.Context, form dtos.UpdateOrgAddressForm) Response
PUT /api/org/address
func UpdateOrgCurrent ¶
func UpdateOrgCurrent(c *middleware.Context, form dtos.UpdateOrgForm) Response
PUT /api/org
func UpdateOrgPreferences ¶
func UpdateOrgPreferences(c *middleware.Context, dtoCmd dtos.UpdatePrefsCmd) Response
PUT /api/org/preferences
func UpdateOrgQuota ¶
func UpdateOrgQuota(c *middleware.Context, cmd m.UpdateOrgQuotaCmd) Response
func UpdateOrgUser ¶
func UpdateOrgUser(c *middleware.Context, cmd m.UpdateOrgUserCommand) Response
PATCH /api/orgs/:orgId/users/:userId
func UpdateOrgUserForCurrentOrg ¶
func UpdateOrgUserForCurrentOrg(c *middleware.Context, cmd m.UpdateOrgUserCommand) Response
PATCH /api/org/users/:userId
func UpdatePlaylist ¶
func UpdatePlaylist(c *middleware.Context, cmd m.UpdatePlaylistCommand) Response
func UpdatePluginSetting ¶
func UpdatePluginSetting(c *middleware.Context, cmd m.UpdatePluginSettingCmd) Response
func UpdateSignedInUser ¶
func UpdateSignedInUser(c *middleware.Context, cmd m.UpdateUserCommand) Response
POST /api/user
func UpdateUser ¶
func UpdateUser(c *middleware.Context, cmd m.UpdateUserCommand) Response
POST /api/users/:id
func UpdateUserActiveOrg ¶
func UpdateUserActiveOrg(c *middleware.Context) Response
POST /api/users/:id/using/:orgId
func UpdateUserPreferences ¶
func UpdateUserPreferences(c *middleware.Context, dtoCmd dtos.UpdatePrefsCmd) Response
PUT /api/user/preferences
func UpdateUserQuota ¶
func UpdateUserQuota(c *middleware.Context, cmd m.UpdateUserQuotaCmd) Response
func UserSetUsingOrg ¶
func UserSetUsingOrg(c *middleware.Context) Response
POST /api/user/using/:id
type RouteRegister ¶
type RouteRegister interface { Get(string, ...macaron.Handler) Post(string, ...macaron.Handler) Delete(string, ...macaron.Handler) Put(string, ...macaron.Handler) Patch(string, ...macaron.Handler) Any(string, ...macaron.Handler) Group(string, func(RouteRegister), ...macaron.Handler) Register(Router) *macaron.Router }
Source Files ¶
- admin.go
- admin_users.go
- alerting.go
- annotations.go
- api.go
- apikey.go
- app_routes.go
- common.go
- dashboard.go
- dashboard_snapshot.go
- dataproxy.go
- datasources.go
- frontendsettings.go
- grafana_com_proxy.go
- http_server.go
- index.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
- route_register.go
- search.go
- signup.go
- stars.go
- user.go