api

package
v0.0.0-...-37936d6 Latest Latest
Warning

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

Go to latest
Published: May 16, 2023 License: MIT Imports: 28 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Command

func Command() *cli.Command

Command returns a cli.Command that starts an HTTP router to serve the SCIM API.

func CreateHandler

func CreateHandler(svc service.Create, log *zerolog.Logger) func(rw http.ResponseWriter, r *http.Request, params httprouter.Params)

CreateHandler returns a route handler function for creating SCIM resources.

func DeleteHandler

func DeleteHandler(svc service.Delete, log *zerolog.Logger) func(rw http.ResponseWriter, r *http.Request, params httprouter.Params)

DeleteHandler returns a route handler function for deleting SCIM resource.

func GetHandler

func GetHandler(svc service.Get, log *zerolog.Logger) func(rw http.ResponseWriter, r *http.Request, params httprouter.Params)

GetHandler returns a route handler function for getting SCIM resource.

func HealthHandler

func HealthHandler(mongoClient *mongo.Client, rabbitConn *amqp.Connection) func(rw http.ResponseWriter, r *http.Request, params httprouter.Params)

HealthHandler returns a http handler to report service health status.

func PatchHandler

func PatchHandler(svc service.Patch, log *zerolog.Logger) func(rw http.ResponseWriter, r *http.Request, params httprouter.Params)

PatchHandler returns a route handler function for patching SCIM resource.

func ReplaceHandler

func ReplaceHandler(svc service.Replace, log *zerolog.Logger) func(rw http.ResponseWriter, r *http.Request, params httprouter.Params)

ReplaceHandler returns a route handler function for replacing SCIM resource.

func ResourceTypeByIdHandler

func ResourceTypeByIdHandler(resourceTypes ...*spec.ResourceType) func(rw http.ResponseWriter, r *http.Request, params httprouter.Params)

ResourceTypeByIdHandler returns a route handler function get ResourceType by its id.

func ResourceTypesHandler

func ResourceTypesHandler(resourceTypes ...*spec.ResourceType) func(rw http.ResponseWriter, r *http.Request, params httprouter.Params)

ResourceTypesHandler returns a route handler function for getting all defined ResourceType.

func SchemaByIdHandler

func SchemaByIdHandler() func(rw http.ResponseWriter, r *http.Request, params httprouter.Params)

SchemaByIdHandler returns a route handler function get Schema by its id.

func SchemasHandler

func SchemasHandler() func(rw http.ResponseWriter, r *http.Request, params httprouter.Params)

SchemasHandler returns a route handler function for getting all defined Schema.

func SearchHandler

func SearchHandler(svc service.Query, log *zerolog.Logger) func(rw http.ResponseWriter, r *http.Request, params httprouter.Params)

SearchHandler returns a route handler function for searching SCIM resources. This handler could be used in HTTP GET and HTTP POST scenarios, as defined in the SCIM specification.

func ServiceProviderConfigHandler

func ServiceProviderConfigHandler(config *spec.ServiceProviderConfig) func(rw http.ResponseWriter, r *http.Request, params httprouter.Params)

ServiceProviderConfigHandler returns a http route handler to write service provider config info.

Types

This section is empty.

Jump to

Keyboard shortcuts

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