Documentation ¶
Overview ¶
Package httpsrv contains functions and data for a functional identity-api server.
Package httpsrv provides primitives to interact with the openapi HTTP API.
Code generated by github.com/deepmap/oapi-codegen/v2 version v2.1.0 DO NOT EDIT.
Index ¶
- Variables
- func RegisterHandlers(router EchoRouter, si ServerInterface)
- func RegisterHandlersWithBaseURL(router EchoRouter, si ServerInterface, baseURL string)
- type APIHandler
- type AddGroupMembers200JSONResponse
- type AddGroupMembersRequestObject
- type AddGroupMembersResponseObject
- type CreateGroup200JSONResponse
- type CreateGroupRequestObject
- type CreateGroupResponseObject
- type CreateIssuer200JSONResponse
- type CreateIssuerRequestObject
- type CreateIssuerResponseObject
- type CreateOAuthClient200JSONResponse
- type CreateOAuthClientRequestObject
- type CreateOAuthClientResponseObject
- type DeleteGroup200JSONResponse
- type DeleteGroupRequestObject
- type DeleteGroupResponseObject
- type DeleteIssuer200JSONResponse
- type DeleteIssuerRequestObject
- type DeleteIssuerResponseObject
- type DeleteOAuthClient200JSONResponse
- type DeleteOAuthClientRequestObject
- type DeleteOAuthClientResponseObject
- type EchoRouter
- type GetGroupByID200JSONResponse
- type GetGroupByIDRequestObject
- type GetGroupByIDResponseObject
- type GetIssuerByID200JSONResponse
- type GetIssuerByIDRequestObject
- type GetIssuerByIDResponseObject
- type GetIssuerUsers200JSONResponse
- type GetIssuerUsersRequestObject
- type GetIssuerUsersResponseObject
- type GetOAuthClient200JSONResponse
- type GetOAuthClientRequestObject
- type GetOAuthClientResponseObject
- type GetOwnerOAuthClients200JSONResponse
- type GetOwnerOAuthClientsRequestObject
- type GetOwnerOAuthClientsResponseObject
- type GetUserByID200JSONResponse
- type GetUserByIDRequestObject
- type GetUserByIDResponseObject
- type GroupCollectionJSONResponse
- type GroupIDCollectionJSONResponse
- type GroupMemberCollectionJSONResponse
- type IssuerCollectionJSONResponse
- type ListGroupMembers200JSONResponse
- type ListGroupMembersRequestObject
- type ListGroupMembersResponseObject
- type ListGroups200JSONResponse
- type ListGroupsRequestObject
- type ListGroupsResponseObject
- type ListOwnerIssuers200JSONResponse
- type ListOwnerIssuersRequestObject
- type ListOwnerIssuersResponseObject
- type ListUserGroups200JSONResponse
- type ListUserGroupsRequestObject
- type ListUserGroupsResponseObject
- type OAuthClientCollectionJSONResponse
- type RemoveGroupMember200JSONResponse
- type RemoveGroupMemberRequestObject
- type RemoveGroupMemberResponseObject
- type ReplaceGroupMembers200JSONResponse
- type ReplaceGroupMembersRequestObject
- type ReplaceGroupMembersResponseObject
- type ServerInterface
- type ServerInterfaceWrapper
- func (w *ServerInterfaceWrapper) AddGroupMembers(ctx echo.Context) error
- func (w *ServerInterfaceWrapper) CreateGroup(ctx echo.Context) error
- func (w *ServerInterfaceWrapper) CreateIssuer(ctx echo.Context) error
- func (w *ServerInterfaceWrapper) CreateOAuthClient(ctx echo.Context) error
- func (w *ServerInterfaceWrapper) DeleteGroup(ctx echo.Context) error
- func (w *ServerInterfaceWrapper) DeleteIssuer(ctx echo.Context) error
- func (w *ServerInterfaceWrapper) DeleteOAuthClient(ctx echo.Context) error
- func (w *ServerInterfaceWrapper) GetGroupByID(ctx echo.Context) error
- func (w *ServerInterfaceWrapper) GetIssuerByID(ctx echo.Context) error
- func (w *ServerInterfaceWrapper) GetIssuerUsers(ctx echo.Context) error
- func (w *ServerInterfaceWrapper) GetOAuthClient(ctx echo.Context) error
- func (w *ServerInterfaceWrapper) GetOwnerOAuthClients(ctx echo.Context) error
- func (w *ServerInterfaceWrapper) GetUserByID(ctx echo.Context) error
- func (w *ServerInterfaceWrapper) ListGroupMembers(ctx echo.Context) error
- func (w *ServerInterfaceWrapper) ListGroups(ctx echo.Context) error
- func (w *ServerInterfaceWrapper) ListOwnerIssuers(ctx echo.Context) error
- func (w *ServerInterfaceWrapper) ListUserGroups(ctx echo.Context) error
- func (w *ServerInterfaceWrapper) RemoveGroupMember(ctx echo.Context) error
- func (w *ServerInterfaceWrapper) ReplaceGroupMembers(ctx echo.Context) error
- func (w *ServerInterfaceWrapper) UpdateGroup(ctx echo.Context) error
- func (w *ServerInterfaceWrapper) UpdateIssuer(ctx echo.Context) error
- type StrictHandlerFunc
- type StrictMiddlewareFunc
- type StrictServerInterface
- type UpdateGroup200JSONResponse
- type UpdateGroupRequestObject
- type UpdateGroupResponseObject
- type UpdateIssuer200JSONResponse
- type UpdateIssuerRequestObject
- type UpdateIssuerResponseObject
- type UserCollectionJSONResponse
Constants ¶
This section is empty.
Variables ¶
var ( // ErrDBRollbackFailed is returned when a database rollback fails ErrDBRollbackFailed = errors.New("failed to rollback database transaction") )
Functions ¶
func RegisterHandlers ¶
func RegisterHandlers(router EchoRouter, si ServerInterface)
RegisterHandlers adds each server route to the EchoRouter.
func RegisterHandlersWithBaseURL ¶ added in v0.1.3
func RegisterHandlersWithBaseURL(router EchoRouter, si ServerInterface, baseURL string)
Registers handlers, and prepends BaseURL to the paths, so that the paths can be served under a prefix.
Types ¶
type APIHandler ¶
type APIHandler struct {
// contains filtered or unexported fields
}
APIHandler represents an identity-api management API handler.
func NewAPIHandler ¶
func NewAPIHandler( engine storage.Engine, es events.Service, amw *echoaudit.Middleware, middleware ...echo.MiddlewareFunc, ) (*APIHandler, error)
NewAPIHandler creates an API handler with the given storage engine.
func (*APIHandler) Routes ¶
func (h *APIHandler) Routes(rg *echo.Group)
Routes registers the API's routes against the provided router group.
type AddGroupMembers200JSONResponse ¶ added in v0.1.21
type AddGroupMembers200JSONResponse AddGroupMembersResponse
func (AddGroupMembers200JSONResponse) VisitAddGroupMembersResponse ¶ added in v0.1.21
func (response AddGroupMembers200JSONResponse) VisitAddGroupMembersResponse(w http.ResponseWriter) error
type AddGroupMembersRequestObject ¶ added in v0.1.21
type AddGroupMembersRequestObject struct { GroupID GroupID `json:"groupID"` Body *AddGroupMembersJSONRequestBody }
type AddGroupMembersResponseObject ¶ added in v0.1.21
type AddGroupMembersResponseObject interface {
VisitAddGroupMembersResponse(w http.ResponseWriter) error
}
type CreateGroup200JSONResponse ¶ added in v0.1.21
type CreateGroup200JSONResponse Group
func (CreateGroup200JSONResponse) VisitCreateGroupResponse ¶ added in v0.1.21
func (response CreateGroup200JSONResponse) VisitCreateGroupResponse(w http.ResponseWriter) error
type CreateGroupRequestObject ¶ added in v0.1.21
type CreateGroupRequestObject struct { OwnerID OwnerID `json:"ownerID"` Body *CreateGroupJSONRequestBody }
type CreateGroupResponseObject ¶ added in v0.1.21
type CreateGroupResponseObject interface {
VisitCreateGroupResponse(w http.ResponseWriter) error
}
type CreateIssuer200JSONResponse ¶
type CreateIssuer200JSONResponse Issuer
func (CreateIssuer200JSONResponse) VisitCreateIssuerResponse ¶
func (response CreateIssuer200JSONResponse) VisitCreateIssuerResponse(w http.ResponseWriter) error
type CreateIssuerRequestObject ¶
type CreateIssuerRequestObject struct { OwnerID gidx.PrefixedID `json:"ownerID"` Body *CreateIssuerJSONRequestBody }
type CreateIssuerResponseObject ¶
type CreateIssuerResponseObject interface {
VisitCreateIssuerResponse(w http.ResponseWriter) error
}
type CreateOAuthClient200JSONResponse ¶ added in v0.0.8
type CreateOAuthClient200JSONResponse OAuthClient
func (CreateOAuthClient200JSONResponse) VisitCreateOAuthClientResponse ¶ added in v0.0.8
func (response CreateOAuthClient200JSONResponse) VisitCreateOAuthClientResponse(w http.ResponseWriter) error
type CreateOAuthClientRequestObject ¶ added in v0.0.8
type CreateOAuthClientRequestObject struct { OwnerID gidx.PrefixedID `json:"ownerID"` Body *CreateOAuthClientJSONRequestBody }
type CreateOAuthClientResponseObject ¶ added in v0.0.8
type CreateOAuthClientResponseObject interface {
VisitCreateOAuthClientResponse(w http.ResponseWriter) error
}
type DeleteGroup200JSONResponse ¶ added in v0.1.21
type DeleteGroup200JSONResponse DeleteResponse
func (DeleteGroup200JSONResponse) VisitDeleteGroupResponse ¶ added in v0.1.21
func (response DeleteGroup200JSONResponse) VisitDeleteGroupResponse(w http.ResponseWriter) error
type DeleteGroupRequestObject ¶ added in v0.1.21
type DeleteGroupRequestObject struct {
GroupID GroupID `json:"groupID"`
}
type DeleteGroupResponseObject ¶ added in v0.1.21
type DeleteGroupResponseObject interface {
VisitDeleteGroupResponse(w http.ResponseWriter) error
}
type DeleteIssuer200JSONResponse ¶
type DeleteIssuer200JSONResponse DeleteResponse
func (DeleteIssuer200JSONResponse) VisitDeleteIssuerResponse ¶
func (response DeleteIssuer200JSONResponse) VisitDeleteIssuerResponse(w http.ResponseWriter) error
type DeleteIssuerRequestObject ¶
type DeleteIssuerRequestObject struct {
Id gidx.PrefixedID `json:"id"`
}
type DeleteIssuerResponseObject ¶
type DeleteIssuerResponseObject interface {
VisitDeleteIssuerResponse(w http.ResponseWriter) error
}
type DeleteOAuthClient200JSONResponse ¶ added in v0.0.8
type DeleteOAuthClient200JSONResponse DeleteResponse
func (DeleteOAuthClient200JSONResponse) VisitDeleteOAuthClientResponse ¶ added in v0.0.8
func (response DeleteOAuthClient200JSONResponse) VisitDeleteOAuthClientResponse(w http.ResponseWriter) error
type DeleteOAuthClientRequestObject ¶ added in v0.0.8
type DeleteOAuthClientRequestObject struct {
ClientID gidx.PrefixedID `json:"clientID"`
}
type DeleteOAuthClientResponseObject ¶ added in v0.0.8
type DeleteOAuthClientResponseObject interface {
VisitDeleteOAuthClientResponse(w http.ResponseWriter) error
}
type EchoRouter ¶ added in v0.1.3
type EchoRouter interface { CONNECT(path string, h echo.HandlerFunc, m ...echo.MiddlewareFunc) *echo.Route DELETE(path string, h echo.HandlerFunc, m ...echo.MiddlewareFunc) *echo.Route GET(path string, h echo.HandlerFunc, m ...echo.MiddlewareFunc) *echo.Route HEAD(path string, h echo.HandlerFunc, m ...echo.MiddlewareFunc) *echo.Route OPTIONS(path string, h echo.HandlerFunc, m ...echo.MiddlewareFunc) *echo.Route PATCH(path string, h echo.HandlerFunc, m ...echo.MiddlewareFunc) *echo.Route POST(path string, h echo.HandlerFunc, m ...echo.MiddlewareFunc) *echo.Route PUT(path string, h echo.HandlerFunc, m ...echo.MiddlewareFunc) *echo.Route TRACE(path string, h echo.HandlerFunc, m ...echo.MiddlewareFunc) *echo.Route }
This is a simple interface which specifies echo.Route addition functions which are present on both echo.Echo and echo.Group, since we want to allow using either of them for path registration
type GetGroupByID200JSONResponse ¶ added in v0.1.21
type GetGroupByID200JSONResponse Group
func (GetGroupByID200JSONResponse) VisitGetGroupByIDResponse ¶ added in v0.1.21
func (response GetGroupByID200JSONResponse) VisitGetGroupByIDResponse(w http.ResponseWriter) error
type GetGroupByIDRequestObject ¶ added in v0.1.21
type GetGroupByIDRequestObject struct {
GroupID GroupID `json:"groupID"`
}
type GetGroupByIDResponseObject ¶ added in v0.1.21
type GetGroupByIDResponseObject interface {
VisitGetGroupByIDResponse(w http.ResponseWriter) error
}
type GetIssuerByID200JSONResponse ¶
type GetIssuerByID200JSONResponse Issuer
func (GetIssuerByID200JSONResponse) VisitGetIssuerByIDResponse ¶
func (response GetIssuerByID200JSONResponse) VisitGetIssuerByIDResponse(w http.ResponseWriter) error
type GetIssuerByIDRequestObject ¶
type GetIssuerByIDRequestObject struct {
Id gidx.PrefixedID `json:"id"`
}
type GetIssuerByIDResponseObject ¶
type GetIssuerByIDResponseObject interface {
VisitGetIssuerByIDResponse(w http.ResponseWriter) error
}
type GetIssuerUsers200JSONResponse ¶ added in v0.1.20
type GetIssuerUsers200JSONResponse struct{ UserCollectionJSONResponse }
func (GetIssuerUsers200JSONResponse) VisitGetIssuerUsersResponse ¶ added in v0.1.20
func (response GetIssuerUsers200JSONResponse) VisitGetIssuerUsersResponse(w http.ResponseWriter) error
type GetIssuerUsersRequestObject ¶ added in v0.1.20
type GetIssuerUsersRequestObject struct { IssuerID IssuerID `json:"id"` Params GetIssuerUsersParams }
type GetIssuerUsersResponseObject ¶ added in v0.1.20
type GetIssuerUsersResponseObject interface {
VisitGetIssuerUsersResponse(w http.ResponseWriter) error
}
type GetOAuthClient200JSONResponse ¶ added in v0.0.8
type GetOAuthClient200JSONResponse OAuthClient
func (GetOAuthClient200JSONResponse) VisitGetOAuthClientResponse ¶ added in v0.0.8
func (response GetOAuthClient200JSONResponse) VisitGetOAuthClientResponse(w http.ResponseWriter) error
type GetOAuthClientRequestObject ¶ added in v0.0.8
type GetOAuthClientRequestObject struct {
ClientID gidx.PrefixedID `json:"clientID"`
}
type GetOAuthClientResponseObject ¶ added in v0.0.8
type GetOAuthClientResponseObject interface {
VisitGetOAuthClientResponse(w http.ResponseWriter) error
}
type GetOwnerOAuthClients200JSONResponse ¶ added in v0.1.20
type GetOwnerOAuthClients200JSONResponse struct {
OAuthClientCollectionJSONResponse
}
func (GetOwnerOAuthClients200JSONResponse) VisitGetOwnerOAuthClientsResponse ¶ added in v0.1.20
func (response GetOwnerOAuthClients200JSONResponse) VisitGetOwnerOAuthClientsResponse(w http.ResponseWriter) error
type GetOwnerOAuthClientsRequestObject ¶ added in v0.1.20
type GetOwnerOAuthClientsRequestObject struct { OwnerID OwnerID `json:"ownerID"` Params GetOwnerOAuthClientsParams }
type GetOwnerOAuthClientsResponseObject ¶ added in v0.1.20
type GetOwnerOAuthClientsResponseObject interface {
VisitGetOwnerOAuthClientsResponse(w http.ResponseWriter) error
}
type GetUserByID200JSONResponse ¶ added in v0.1.17
type GetUserByID200JSONResponse User
func (GetUserByID200JSONResponse) VisitGetUserByIDResponse ¶ added in v0.1.17
func (response GetUserByID200JSONResponse) VisitGetUserByIDResponse(w http.ResponseWriter) error
type GetUserByIDRequestObject ¶ added in v0.1.17
type GetUserByIDRequestObject struct {
UserID gidx.PrefixedID `json:"userID"`
}
type GetUserByIDResponseObject ¶ added in v0.1.17
type GetUserByIDResponseObject interface {
VisitGetUserByIDResponse(w http.ResponseWriter) error
}
type GroupCollectionJSONResponse ¶ added in v0.1.21
type GroupCollectionJSONResponse struct { Groups []Group `json:"groups"` // Pagination collection response pagination Pagination Pagination `json:"pagination"` }
type GroupIDCollectionJSONResponse ¶ added in v0.1.21
type GroupIDCollectionJSONResponse struct { GroupIDs []gidx.PrefixedID `json:"group_ids"` // Pagination collection response pagination Pagination Pagination `json:"pagination"` }
type GroupMemberCollectionJSONResponse ¶ added in v0.1.21
type GroupMemberCollectionJSONResponse struct { GroupID gidx.PrefixedID `json:"group_id"` MemberIDs []gidx.PrefixedID `json:"member_ids"` // Pagination collection response pagination Pagination Pagination `json:"pagination"` }
type IssuerCollectionJSONResponse ¶ added in v0.1.20
type IssuerCollectionJSONResponse struct { Issuers []Issuer `json:"issuers"` // Pagination collection response pagination Pagination Pagination `json:"pagination"` }
type ListGroupMembers200JSONResponse ¶ added in v0.1.21
type ListGroupMembers200JSONResponse struct {
GroupMemberCollectionJSONResponse
}
func (ListGroupMembers200JSONResponse) VisitListGroupMembersResponse ¶ added in v0.1.21
func (response ListGroupMembers200JSONResponse) VisitListGroupMembersResponse(w http.ResponseWriter) error
type ListGroupMembersRequestObject ¶ added in v0.1.21
type ListGroupMembersRequestObject struct { GroupID GroupID `json:"groupID"` Params ListGroupMembersParams }
type ListGroupMembersResponseObject ¶ added in v0.1.21
type ListGroupMembersResponseObject interface {
VisitListGroupMembersResponse(w http.ResponseWriter) error
}
type ListGroups200JSONResponse ¶ added in v0.1.21
type ListGroups200JSONResponse struct{ GroupCollectionJSONResponse }
func (ListGroups200JSONResponse) VisitListGroupsResponse ¶ added in v0.1.21
func (response ListGroups200JSONResponse) VisitListGroupsResponse(w http.ResponseWriter) error
type ListGroupsRequestObject ¶ added in v0.1.21
type ListGroupsRequestObject struct { OwnerID OwnerID `json:"ownerID"` Params ListGroupsParams }
type ListGroupsResponseObject ¶ added in v0.1.21
type ListGroupsResponseObject interface {
VisitListGroupsResponse(w http.ResponseWriter) error
}
type ListOwnerIssuers200JSONResponse ¶ added in v0.1.20
type ListOwnerIssuers200JSONResponse struct{ IssuerCollectionJSONResponse }
func (ListOwnerIssuers200JSONResponse) VisitListOwnerIssuersResponse ¶ added in v0.1.20
func (response ListOwnerIssuers200JSONResponse) VisitListOwnerIssuersResponse(w http.ResponseWriter) error
type ListOwnerIssuersRequestObject ¶ added in v0.1.20
type ListOwnerIssuersRequestObject struct { OwnerID OwnerID `json:"ownerID"` Params ListOwnerIssuersParams }
type ListOwnerIssuersResponseObject ¶ added in v0.1.20
type ListOwnerIssuersResponseObject interface {
VisitListOwnerIssuersResponse(w http.ResponseWriter) error
}
type ListUserGroups200JSONResponse ¶ added in v0.1.21
type ListUserGroups200JSONResponse struct{ GroupIDCollectionJSONResponse }
func (ListUserGroups200JSONResponse) VisitListUserGroupsResponse ¶ added in v0.1.21
func (response ListUserGroups200JSONResponse) VisitListUserGroupsResponse(w http.ResponseWriter) error
type ListUserGroupsRequestObject ¶ added in v0.1.21
type ListUserGroupsRequestObject struct { UserID gidx.PrefixedID `json:"userID"` Params ListUserGroupsParams }
type ListUserGroupsResponseObject ¶ added in v0.1.21
type ListUserGroupsResponseObject interface {
VisitListUserGroupsResponse(w http.ResponseWriter) error
}
type OAuthClientCollectionJSONResponse ¶ added in v0.1.20
type OAuthClientCollectionJSONResponse struct { Clients []OAuthClient `json:"clients"` // Pagination collection response pagination Pagination Pagination `json:"pagination"` }
type RemoveGroupMember200JSONResponse ¶ added in v0.1.21
type RemoveGroupMember200JSONResponse DeleteResponse
func (RemoveGroupMember200JSONResponse) VisitRemoveGroupMemberResponse ¶ added in v0.1.21
func (response RemoveGroupMember200JSONResponse) VisitRemoveGroupMemberResponse(w http.ResponseWriter) error
type RemoveGroupMemberRequestObject ¶ added in v0.1.21
type RemoveGroupMemberRequestObject struct { GroupID GroupID `json:"groupID"` SubjectID SubjectID `json:"subjectID"` }
type RemoveGroupMemberResponseObject ¶ added in v0.1.21
type RemoveGroupMemberResponseObject interface {
VisitRemoveGroupMemberResponse(w http.ResponseWriter) error
}
type ReplaceGroupMembers200JSONResponse ¶ added in v0.1.21
type ReplaceGroupMembers200JSONResponse AddGroupMembersResponse
func (ReplaceGroupMembers200JSONResponse) VisitReplaceGroupMembersResponse ¶ added in v0.1.21
func (response ReplaceGroupMembers200JSONResponse) VisitReplaceGroupMembersResponse(w http.ResponseWriter) error
type ReplaceGroupMembersRequestObject ¶ added in v0.1.21
type ReplaceGroupMembersRequestObject struct { GroupID GroupID `json:"groupID"` Body *ReplaceGroupMembersJSONRequestBody }
type ReplaceGroupMembersResponseObject ¶ added in v0.1.21
type ReplaceGroupMembersResponseObject interface {
VisitReplaceGroupMembersResponse(w http.ResponseWriter) error
}
type ServerInterface ¶
type ServerInterface interface { // Deletes an OAuth Client // (DELETE /api/v1/clients/{clientID}) DeleteOAuthClient(ctx echo.Context, clientID gidx.PrefixedID) error // Gets information about an OAuth 2.0 Client. // (GET /api/v1/clients/{clientID}) GetOAuthClient(ctx echo.Context, clientID gidx.PrefixedID) error // Deletes a Group // (DELETE /api/v1/groups/{groupID}) DeleteGroup(ctx echo.Context, groupID GroupID) error // Gets information about a Group. // (GET /api/v1/groups/{groupID}) GetGroupByID(ctx echo.Context, groupID GroupID) error // Updates a Group // (PATCH /api/v1/groups/{groupID}) UpdateGroup(ctx echo.Context, groupID GroupID) error // Gets members of a Group // (GET /api/v1/groups/{groupID}/members) ListGroupMembers(ctx echo.Context, groupID GroupID, params ListGroupMembersParams) error // Adds a member to a Group // (POST /api/v1/groups/{groupID}/members) AddGroupMembers(ctx echo.Context, groupID GroupID) error // Replaces members of a Group // (PUT /api/v1/groups/{groupID}/members) ReplaceGroupMembers(ctx echo.Context, groupID GroupID) error // Removes a member from a Group // (DELETE /api/v1/groups/{groupID}/members/{subjectID}) RemoveGroupMember(ctx echo.Context, groupID GroupID, subjectID SubjectID) error // Deletes an issuer with the given ID. // (DELETE /api/v1/issuers/{id}) DeleteIssuer(ctx echo.Context, id gidx.PrefixedID) error // Gets an issuer by ID. // (GET /api/v1/issuers/{id}) GetIssuerByID(ctx echo.Context, id gidx.PrefixedID) error // Updates an issuer. // (PATCH /api/v1/issuers/{id}) UpdateIssuer(ctx echo.Context, id gidx.PrefixedID) error // Gets users by issuer id // (GET /api/v1/issuers/{id}/users) GetIssuerUsers(ctx echo.Context, issuerID IssuerID, params GetIssuerUsersParams) error // Gets oauth clients by owner id // (GET /api/v1/owners/{ownerID}/clients) GetOwnerOAuthClients(ctx echo.Context, ownerID OwnerID, params GetOwnerOAuthClientsParams) error // Creates an OAuth client. // (POST /api/v1/owners/{ownerID}/clients) CreateOAuthClient(ctx echo.Context, ownerID gidx.PrefixedID) error // List all groups for an owner. // (GET /api/v1/owners/{ownerID}/groups) ListGroups(ctx echo.Context, ownerID OwnerID, params ListGroupsParams) error // Creates a Group // (POST /api/v1/owners/{ownerID}/groups) CreateGroup(ctx echo.Context, ownerID OwnerID) error // Gets issuers by owner id // (GET /api/v1/owners/{ownerID}/issuers) ListOwnerIssuers(ctx echo.Context, ownerID OwnerID, params ListOwnerIssuersParams) error // Creates an issuer. // (POST /api/v1/owners/{ownerID}/issuers) CreateIssuer(ctx echo.Context, ownerID gidx.PrefixedID) error // Gets information about a User. // (GET /api/v1/users/{userID}) GetUserByID(ctx echo.Context, userID gidx.PrefixedID) error // Lists groups by user id // (GET /api/v1/users/{userID}/groups) ListUserGroups(ctx echo.Context, userID gidx.PrefixedID, params ListUserGroupsParams) error }
ServerInterface represents all server handlers.
func NewStrictHandler ¶
func NewStrictHandler(ssi StrictServerInterface, middlewares []StrictMiddlewareFunc) ServerInterface
type ServerInterfaceWrapper ¶
type ServerInterfaceWrapper struct {
Handler ServerInterface
}
ServerInterfaceWrapper converts echo contexts to parameters.
func (*ServerInterfaceWrapper) AddGroupMembers ¶ added in v0.1.21
func (w *ServerInterfaceWrapper) AddGroupMembers(ctx echo.Context) error
AddGroupMembers converts echo context to params.
func (*ServerInterfaceWrapper) CreateGroup ¶ added in v0.1.21
func (w *ServerInterfaceWrapper) CreateGroup(ctx echo.Context) error
CreateGroup converts echo context to params.
func (*ServerInterfaceWrapper) CreateIssuer ¶
func (w *ServerInterfaceWrapper) CreateIssuer(ctx echo.Context) error
CreateIssuer converts echo context to params.
func (*ServerInterfaceWrapper) CreateOAuthClient ¶ added in v0.0.8
func (w *ServerInterfaceWrapper) CreateOAuthClient(ctx echo.Context) error
CreateOAuthClient converts echo context to params.
func (*ServerInterfaceWrapper) DeleteGroup ¶ added in v0.1.21
func (w *ServerInterfaceWrapper) DeleteGroup(ctx echo.Context) error
DeleteGroup converts echo context to params.
func (*ServerInterfaceWrapper) DeleteIssuer ¶
func (w *ServerInterfaceWrapper) DeleteIssuer(ctx echo.Context) error
DeleteIssuer converts echo context to params.
func (*ServerInterfaceWrapper) DeleteOAuthClient ¶ added in v0.0.8
func (w *ServerInterfaceWrapper) DeleteOAuthClient(ctx echo.Context) error
DeleteOAuthClient converts echo context to params.
func (*ServerInterfaceWrapper) GetGroupByID ¶ added in v0.1.21
func (w *ServerInterfaceWrapper) GetGroupByID(ctx echo.Context) error
GetGroupByID converts echo context to params.
func (*ServerInterfaceWrapper) GetIssuerByID ¶
func (w *ServerInterfaceWrapper) GetIssuerByID(ctx echo.Context) error
GetIssuerByID converts echo context to params.
func (*ServerInterfaceWrapper) GetIssuerUsers ¶ added in v0.1.20
func (w *ServerInterfaceWrapper) GetIssuerUsers(ctx echo.Context) error
GetIssuerUsers converts echo context to params.
func (*ServerInterfaceWrapper) GetOAuthClient ¶ added in v0.0.8
func (w *ServerInterfaceWrapper) GetOAuthClient(ctx echo.Context) error
GetOAuthClient converts echo context to params.
func (*ServerInterfaceWrapper) GetOwnerOAuthClients ¶ added in v0.1.20
func (w *ServerInterfaceWrapper) GetOwnerOAuthClients(ctx echo.Context) error
GetOwnerOAuthClients converts echo context to params.
func (*ServerInterfaceWrapper) GetUserByID ¶ added in v0.1.17
func (w *ServerInterfaceWrapper) GetUserByID(ctx echo.Context) error
GetUserByID converts echo context to params.
func (*ServerInterfaceWrapper) ListGroupMembers ¶ added in v0.1.21
func (w *ServerInterfaceWrapper) ListGroupMembers(ctx echo.Context) error
ListGroupMembers converts echo context to params.
func (*ServerInterfaceWrapper) ListGroups ¶ added in v0.1.21
func (w *ServerInterfaceWrapper) ListGroups(ctx echo.Context) error
ListGroups converts echo context to params.
func (*ServerInterfaceWrapper) ListOwnerIssuers ¶ added in v0.1.20
func (w *ServerInterfaceWrapper) ListOwnerIssuers(ctx echo.Context) error
ListOwnerIssuers converts echo context to params.
func (*ServerInterfaceWrapper) ListUserGroups ¶ added in v0.1.21
func (w *ServerInterfaceWrapper) ListUserGroups(ctx echo.Context) error
ListUserGroups converts echo context to params.
func (*ServerInterfaceWrapper) RemoveGroupMember ¶ added in v0.1.21
func (w *ServerInterfaceWrapper) RemoveGroupMember(ctx echo.Context) error
RemoveGroupMember converts echo context to params.
func (*ServerInterfaceWrapper) ReplaceGroupMembers ¶ added in v0.1.21
func (w *ServerInterfaceWrapper) ReplaceGroupMembers(ctx echo.Context) error
ReplaceGroupMembers converts echo context to params.
func (*ServerInterfaceWrapper) UpdateGroup ¶ added in v0.1.21
func (w *ServerInterfaceWrapper) UpdateGroup(ctx echo.Context) error
UpdateGroup converts echo context to params.
func (*ServerInterfaceWrapper) UpdateIssuer ¶
func (w *ServerInterfaceWrapper) UpdateIssuer(ctx echo.Context) error
UpdateIssuer converts echo context to params.
type StrictHandlerFunc ¶
type StrictHandlerFunc = strictecho.StrictEchoHandlerFunc
type StrictMiddlewareFunc ¶
type StrictMiddlewareFunc = strictecho.StrictEchoMiddlewareFunc
type StrictServerInterface ¶
type StrictServerInterface interface { // Deletes an OAuth Client // (DELETE /api/v1/clients/{clientID}) DeleteOAuthClient(ctx context.Context, request DeleteOAuthClientRequestObject) (DeleteOAuthClientResponseObject, error) // Gets information about an OAuth 2.0 Client. // (GET /api/v1/clients/{clientID}) GetOAuthClient(ctx context.Context, request GetOAuthClientRequestObject) (GetOAuthClientResponseObject, error) // Deletes a Group // (DELETE /api/v1/groups/{groupID}) DeleteGroup(ctx context.Context, request DeleteGroupRequestObject) (DeleteGroupResponseObject, error) // Gets information about a Group. // (GET /api/v1/groups/{groupID}) GetGroupByID(ctx context.Context, request GetGroupByIDRequestObject) (GetGroupByIDResponseObject, error) // Updates a Group // (PATCH /api/v1/groups/{groupID}) UpdateGroup(ctx context.Context, request UpdateGroupRequestObject) (UpdateGroupResponseObject, error) // Gets members of a Group // (GET /api/v1/groups/{groupID}/members) ListGroupMembers(ctx context.Context, request ListGroupMembersRequestObject) (ListGroupMembersResponseObject, error) // Adds a member to a Group // (POST /api/v1/groups/{groupID}/members) AddGroupMembers(ctx context.Context, request AddGroupMembersRequestObject) (AddGroupMembersResponseObject, error) // Replaces members of a Group // (PUT /api/v1/groups/{groupID}/members) ReplaceGroupMembers(ctx context.Context, request ReplaceGroupMembersRequestObject) (ReplaceGroupMembersResponseObject, error) // Removes a member from a Group // (DELETE /api/v1/groups/{groupID}/members/{subjectID}) RemoveGroupMember(ctx context.Context, request RemoveGroupMemberRequestObject) (RemoveGroupMemberResponseObject, error) // Deletes an issuer with the given ID. // (DELETE /api/v1/issuers/{id}) DeleteIssuer(ctx context.Context, request DeleteIssuerRequestObject) (DeleteIssuerResponseObject, error) // Gets an issuer by ID. // (GET /api/v1/issuers/{id}) GetIssuerByID(ctx context.Context, request GetIssuerByIDRequestObject) (GetIssuerByIDResponseObject, error) // Updates an issuer. // (PATCH /api/v1/issuers/{id}) UpdateIssuer(ctx context.Context, request UpdateIssuerRequestObject) (UpdateIssuerResponseObject, error) // Gets users by issuer id // (GET /api/v1/issuers/{id}/users) GetIssuerUsers(ctx context.Context, request GetIssuerUsersRequestObject) (GetIssuerUsersResponseObject, error) // Gets oauth clients by owner id // (GET /api/v1/owners/{ownerID}/clients) GetOwnerOAuthClients(ctx context.Context, request GetOwnerOAuthClientsRequestObject) (GetOwnerOAuthClientsResponseObject, error) // Creates an OAuth client. // (POST /api/v1/owners/{ownerID}/clients) CreateOAuthClient(ctx context.Context, request CreateOAuthClientRequestObject) (CreateOAuthClientResponseObject, error) // List all groups for an owner. // (GET /api/v1/owners/{ownerID}/groups) ListGroups(ctx context.Context, request ListGroupsRequestObject) (ListGroupsResponseObject, error) // Creates a Group // (POST /api/v1/owners/{ownerID}/groups) CreateGroup(ctx context.Context, request CreateGroupRequestObject) (CreateGroupResponseObject, error) // Gets issuers by owner id // (GET /api/v1/owners/{ownerID}/issuers) ListOwnerIssuers(ctx context.Context, request ListOwnerIssuersRequestObject) (ListOwnerIssuersResponseObject, error) // Creates an issuer. // (POST /api/v1/owners/{ownerID}/issuers) CreateIssuer(ctx context.Context, request CreateIssuerRequestObject) (CreateIssuerResponseObject, error) // Gets information about a User. // (GET /api/v1/users/{userID}) GetUserByID(ctx context.Context, request GetUserByIDRequestObject) (GetUserByIDResponseObject, error) // Lists groups by user id // (GET /api/v1/users/{userID}/groups) ListUserGroups(ctx context.Context, request ListUserGroupsRequestObject) (ListUserGroupsResponseObject, error) }
StrictServerInterface represents all server handlers.
type UpdateGroup200JSONResponse ¶ added in v0.1.21
type UpdateGroup200JSONResponse Group
func (UpdateGroup200JSONResponse) VisitUpdateGroupResponse ¶ added in v0.1.21
func (response UpdateGroup200JSONResponse) VisitUpdateGroupResponse(w http.ResponseWriter) error
type UpdateGroupRequestObject ¶ added in v0.1.21
type UpdateGroupRequestObject struct { GroupID GroupID `json:"groupID"` Body *UpdateGroupJSONRequestBody }
type UpdateGroupResponseObject ¶ added in v0.1.21
type UpdateGroupResponseObject interface {
VisitUpdateGroupResponse(w http.ResponseWriter) error
}
type UpdateIssuer200JSONResponse ¶
type UpdateIssuer200JSONResponse Issuer
func (UpdateIssuer200JSONResponse) VisitUpdateIssuerResponse ¶
func (response UpdateIssuer200JSONResponse) VisitUpdateIssuerResponse(w http.ResponseWriter) error
type UpdateIssuerRequestObject ¶
type UpdateIssuerRequestObject struct { Id gidx.PrefixedID `json:"id"` Body *UpdateIssuerJSONRequestBody }
type UpdateIssuerResponseObject ¶
type UpdateIssuerResponseObject interface {
VisitUpdateIssuerResponse(w http.ResponseWriter) error
}
type UserCollectionJSONResponse ¶ added in v0.1.20
type UserCollectionJSONResponse struct { // Pagination collection response pagination Pagination Pagination `json:"pagination"` Users []User `json:"users"` }