api

package
v11.1.4-modfix Latest Latest
Warning

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

Go to latest
Published: Aug 20, 2024 License: AGPL-3.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Api

type Api struct {
	Log                log.Logger
	RouteRegister      routing.RouteRegister
	AccessControl      ac.AccessControl
	Features           featuremgmt.FeatureToggles
	SSOSettingsService ssosettings.Service
}

func ProvideApi

func ProvideApi(
	ssoSettingsSvc ssosettings.Service,
	routeRegister routing.RouteRegister,
	ac ac.AccessControl,
) *Api

func (*Api) RegisterAPIEndpoints

func (api *Api) RegisterAPIEndpoints()

RegisterAPIEndpoints Registers Endpoints on Grafana Router

type GetProviderSettingsParams

type GetProviderSettingsParams struct {
	// in:path
	// required:true
	Provider string `json:"key"`
}

swagger:parameters getProviderSettings

type GetSSOSettingsResponse

type GetSSOSettingsResponse struct {
	// in: body
	Body struct {
		ID       string         `json:"id"`
		Provider string         `json:"provider"`
		Settings map[string]any `json:"settings"`
		Source   string         `json:"source"`
	} `json:"body"`
}

swagger:response getSSOSettingsResponse

type ListAllProvidersSettingsParams

type ListAllProvidersSettingsParams struct {
}

swagger:parameters listAllProvidersSettings

type ListSSOSettingsResponse

type ListSSOSettingsResponse struct {
	// in: body
	Body []struct {
		ID       string         `json:"id"`
		Provider string         `json:"provider"`
		Settings map[string]any `json:"settings"`
		Source   string         `json:"source"`
	} `json:"body"`
}

swagger:response listSSOSettingsResponse

type RemoveProviderSettingsParams

type RemoveProviderSettingsParams struct {
	// in:path
	// required:true
	Provider string `json:"key"`
}

swagger:parameters removeProviderSettings

type UpdateProviderSettingsParams

type UpdateProviderSettingsParams struct {
	// in:path
	// required:true
	Provider string `json:"key"`
	// in:body
	// required:true
	Body struct {
		ID       string         `json:"id"`
		Provider string         `json:"provider"`
		Settings map[string]any `json:"settings"`
	} `json:"body"`
}

swagger:parameters updateProviderSettings

Jump to

Keyboard shortcuts

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