adminapi

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Apr 18, 2026 License: BSD-3-Clause Imports: 14 Imported by: 0

Documentation

Overview

Package adminapi provides primitives to interact with the openapi HTTP API.

Code generated by github.com/oapi-codegen/oapi-codegen/v2 version v2.6.0 DO NOT EDIT.

Index

Constants

View Source
const (
	SessionidScopes = "sessionid.Scopes"
)

Variables

This section is empty.

Functions

func GetSwagger

func GetSwagger() (swagger *openapi3.T, err error)

GetSwagger returns the Swagger specification corresponding to the generated code in this file. The external references of Swagger specification are resolved. The logic of resolving external references is tightly connected to "import-mapping" feature. Externally referenced files must be embedded in the corresponding golang packages. Urls can be supported but this task was out of the scope.

func Handler

func Handler(si ServerInterface) http.Handler

Handler creates http.Handler with routing matching OpenAPI spec.

func HandlerFromMux

func HandlerFromMux(si ServerInterface, m ServeMux) http.Handler

HandlerFromMux creates http.Handler with routing matching OpenAPI spec based on the provided mux.

func HandlerFromMuxWithBaseURL

func HandlerFromMuxWithBaseURL(si ServerInterface, m ServeMux, baseURL string) http.Handler

func HandlerWithOptions

func HandlerWithOptions(si ServerInterface, options StdHTTPServerOptions) http.Handler

HandlerWithOptions creates http.Handler with additional options

func PathToRawSpec

func PathToRawSpec(pathToFile string) map[string]func() ([]byte, error)

Constructs a synthetic filesystem for resolving external references when loading openapi specifications.

Types

type APIErrorResponse

type APIErrorResponse struct {
	Errors []string `json:"errors"`
}

APIErrorResponse defines model for APIErrorResponse.

type ChangePasswordRequest added in v0.9.0

type ChangePasswordRequest struct {
	NewPassword string `json:"newPassword"`
	OldPassword string `json:"oldPassword"`
}

ChangePasswordRequest defines model for ChangePasswordRequest.

type ChangeUserPassword204Response added in v0.9.0

type ChangeUserPassword204Response struct {
}

func (ChangeUserPassword204Response) VisitChangeUserPasswordResponse added in v0.9.0

func (response ChangeUserPassword204Response) VisitChangeUserPasswordResponse(w http.ResponseWriter) error

type ChangeUserPassword400JSONResponse added in v0.9.0

type ChangeUserPassword400JSONResponse APIErrorResponse

func (ChangeUserPassword400JSONResponse) VisitChangeUserPasswordResponse added in v0.9.0

func (response ChangeUserPassword400JSONResponse) VisitChangeUserPasswordResponse(w http.ResponseWriter) error

type ChangeUserPassword401JSONResponse added in v0.9.0

type ChangeUserPassword401JSONResponse APIErrorResponse

func (ChangeUserPassword401JSONResponse) VisitChangeUserPasswordResponse added in v0.9.0

func (response ChangeUserPassword401JSONResponse) VisitChangeUserPasswordResponse(w http.ResponseWriter) error

type ChangeUserPassword403JSONResponse added in v0.9.0

type ChangeUserPassword403JSONResponse APIErrorResponse

func (ChangeUserPassword403JSONResponse) VisitChangeUserPasswordResponse added in v0.9.0

func (response ChangeUserPassword403JSONResponse) VisitChangeUserPasswordResponse(w http.ResponseWriter) error

type ChangeUserPassword404JSONResponse added in v0.9.0

type ChangeUserPassword404JSONResponse APIErrorResponse

func (ChangeUserPassword404JSONResponse) VisitChangeUserPasswordResponse added in v0.9.0

func (response ChangeUserPassword404JSONResponse) VisitChangeUserPasswordResponse(w http.ResponseWriter) error

type ChangeUserPassword500JSONResponse added in v0.9.0

type ChangeUserPassword500JSONResponse APIErrorResponse

func (ChangeUserPassword500JSONResponse) VisitChangeUserPasswordResponse added in v0.9.0

func (response ChangeUserPassword500JSONResponse) VisitChangeUserPasswordResponse(w http.ResponseWriter) error

type ChangeUserPasswordJSONBody added in v0.9.0

type ChangeUserPasswordJSONBody struct {
	NewPassword string `json:"newPassword"`
	OldPassword string `json:"oldPassword"`
}

ChangeUserPasswordJSONBody defines parameters for ChangeUserPassword.

type ChangeUserPasswordJSONRequestBody added in v0.9.0

type ChangeUserPasswordJSONRequestBody ChangeUserPasswordJSONBody

ChangeUserPasswordJSONRequestBody defines body for ChangeUserPassword for application/json ContentType.

type ChangeUserPasswordRequestObject added in v0.9.0

type ChangeUserPasswordRequestObject struct {
	UserID int `json:"userID"`
	Body   *ChangeUserPasswordJSONRequestBody
}

type ChangeUserPasswordResponseObject added in v0.9.0

type ChangeUserPasswordResponseObject interface {
	VisitChangeUserPasswordResponse(w http.ResponseWriter) error
}

type CreateGroup201JSONResponse added in v0.9.0

type CreateGroup201JSONResponse Group

func (CreateGroup201JSONResponse) VisitCreateGroupResponse added in v0.9.0

func (response CreateGroup201JSONResponse) VisitCreateGroupResponse(w http.ResponseWriter) error

type CreateGroup400JSONResponse added in v0.9.0

type CreateGroup400JSONResponse APIErrorResponse

func (CreateGroup400JSONResponse) VisitCreateGroupResponse added in v0.9.0

func (response CreateGroup400JSONResponse) VisitCreateGroupResponse(w http.ResponseWriter) error

type CreateGroup401JSONResponse added in v0.9.0

type CreateGroup401JSONResponse APIErrorResponse

func (CreateGroup401JSONResponse) VisitCreateGroupResponse added in v0.9.0

func (response CreateGroup401JSONResponse) VisitCreateGroupResponse(w http.ResponseWriter) error

type CreateGroup403JSONResponse added in v0.9.0

type CreateGroup403JSONResponse APIErrorResponse

func (CreateGroup403JSONResponse) VisitCreateGroupResponse added in v0.9.0

func (response CreateGroup403JSONResponse) VisitCreateGroupResponse(w http.ResponseWriter) error

type CreateGroup409JSONResponse added in v0.9.0

type CreateGroup409JSONResponse APIErrorResponse

func (CreateGroup409JSONResponse) VisitCreateGroupResponse added in v0.9.0

func (response CreateGroup409JSONResponse) VisitCreateGroupResponse(w http.ResponseWriter) error

type CreateGroup500JSONResponse added in v0.9.0

type CreateGroup500JSONResponse APIErrorResponse

func (CreateGroup500JSONResponse) VisitCreateGroupResponse added in v0.9.0

func (response CreateGroup500JSONResponse) VisitCreateGroupResponse(w http.ResponseWriter) error

type CreateGroupJSONBody added in v0.9.0

type CreateGroupJSONBody struct {
	Name          string `json:"name"`
	PermissionIDs []int  `json:"permissionIDs"`
}

CreateGroupJSONBody defines parameters for CreateGroup.

type CreateGroupJSONRequestBody added in v0.9.0

type CreateGroupJSONRequestBody CreateGroupJSONBody

CreateGroupJSONRequestBody defines body for CreateGroup for application/json ContentType.

type CreateGroupRequest added in v0.9.0

type CreateGroupRequest struct {
	Name          string `json:"name"`
	PermissionIDs []int  `json:"permissionIDs"`
}

CreateGroupRequest defines model for CreateGroupRequest.

type CreateGroupRequestObject added in v0.9.0

type CreateGroupRequestObject struct {
	Body *CreateGroupJSONRequestBody
}

type CreateGroupResponseObject added in v0.9.0

type CreateGroupResponseObject interface {
	VisitCreateGroupResponse(w http.ResponseWriter) error
}

type CreateUser201Response added in v0.9.0

type CreateUser201Response struct {
}

func (CreateUser201Response) VisitCreateUserResponse added in v0.9.0

func (response CreateUser201Response) VisitCreateUserResponse(w http.ResponseWriter) error

type CreateUser400JSONResponse added in v0.9.0

type CreateUser400JSONResponse APIErrorResponse

func (CreateUser400JSONResponse) VisitCreateUserResponse added in v0.9.0

func (response CreateUser400JSONResponse) VisitCreateUserResponse(w http.ResponseWriter) error

type CreateUser401JSONResponse added in v0.9.0

type CreateUser401JSONResponse APIErrorResponse

func (CreateUser401JSONResponse) VisitCreateUserResponse added in v0.9.0

func (response CreateUser401JSONResponse) VisitCreateUserResponse(w http.ResponseWriter) error

type CreateUser403JSONResponse added in v0.9.0

type CreateUser403JSONResponse APIErrorResponse

func (CreateUser403JSONResponse) VisitCreateUserResponse added in v0.9.0

func (response CreateUser403JSONResponse) VisitCreateUserResponse(w http.ResponseWriter) error

type CreateUser409JSONResponse added in v0.9.0

type CreateUser409JSONResponse APIErrorResponse

func (CreateUser409JSONResponse) VisitCreateUserResponse added in v0.9.0

func (response CreateUser409JSONResponse) VisitCreateUserResponse(w http.ResponseWriter) error

type CreateUser500JSONResponse added in v0.9.0

type CreateUser500JSONResponse APIErrorResponse

func (CreateUser500JSONResponse) VisitCreateUserResponse added in v0.9.0

func (response CreateUser500JSONResponse) VisitCreateUserResponse(w http.ResponseWriter) error

type CreateUserJSONBody added in v0.9.0

type CreateUserJSONBody struct {
	Password string `json:"password"`
	Username string `json:"username"`
}

CreateUserJSONBody defines parameters for CreateUser.

type CreateUserJSONRequestBody added in v0.9.0

type CreateUserJSONRequestBody CreateUserJSONBody

CreateUserJSONRequestBody defines body for CreateUser for application/json ContentType.

type CreateUserRequest added in v0.9.0

type CreateUserRequest struct {
	Password string `json:"password"`
	Username string `json:"username"`
}

CreateUserRequest defines model for CreateUserRequest.

type CreateUserRequestObject added in v0.9.0

type CreateUserRequestObject struct {
	Body *CreateUserJSONRequestBody
}

type CreateUserResponseObject added in v0.9.0

type CreateUserResponseObject interface {
	VisitCreateUserResponse(w http.ResponseWriter) error
}

type DeleteGroup204Response added in v0.9.0

type DeleteGroup204Response struct {
}

func (DeleteGroup204Response) VisitDeleteGroupResponse added in v0.9.0

func (response DeleteGroup204Response) VisitDeleteGroupResponse(w http.ResponseWriter) error

type DeleteGroup400JSONResponse added in v0.9.0

type DeleteGroup400JSONResponse APIErrorResponse

func (DeleteGroup400JSONResponse) VisitDeleteGroupResponse added in v0.9.0

func (response DeleteGroup400JSONResponse) VisitDeleteGroupResponse(w http.ResponseWriter) error

type DeleteGroup401JSONResponse added in v0.9.0

type DeleteGroup401JSONResponse APIErrorResponse

func (DeleteGroup401JSONResponse) VisitDeleteGroupResponse added in v0.9.0

func (response DeleteGroup401JSONResponse) VisitDeleteGroupResponse(w http.ResponseWriter) error

type DeleteGroup403JSONResponse added in v0.9.0

type DeleteGroup403JSONResponse APIErrorResponse

func (DeleteGroup403JSONResponse) VisitDeleteGroupResponse added in v0.9.0

func (response DeleteGroup403JSONResponse) VisitDeleteGroupResponse(w http.ResponseWriter) error

type DeleteGroup404JSONResponse added in v0.9.0

type DeleteGroup404JSONResponse APIErrorResponse

func (DeleteGroup404JSONResponse) VisitDeleteGroupResponse added in v0.9.0

func (response DeleteGroup404JSONResponse) VisitDeleteGroupResponse(w http.ResponseWriter) error

type DeleteGroup500JSONResponse added in v0.9.0

type DeleteGroup500JSONResponse APIErrorResponse

func (DeleteGroup500JSONResponse) VisitDeleteGroupResponse added in v0.9.0

func (response DeleteGroup500JSONResponse) VisitDeleteGroupResponse(w http.ResponseWriter) error

type DeleteGroupRequestObject added in v0.9.0

type DeleteGroupRequestObject struct {
	GroupID int `json:"groupID"`
}

type DeleteGroupResponseObject added in v0.9.0

type DeleteGroupResponseObject interface {
	VisitDeleteGroupResponse(w http.ResponseWriter) error
}

type DeleteUser204Response added in v0.9.0

type DeleteUser204Response struct {
}

func (DeleteUser204Response) VisitDeleteUserResponse added in v0.9.0

func (response DeleteUser204Response) VisitDeleteUserResponse(w http.ResponseWriter) error

type DeleteUser400JSONResponse added in v0.9.0

type DeleteUser400JSONResponse APIErrorResponse

func (DeleteUser400JSONResponse) VisitDeleteUserResponse added in v0.9.0

func (response DeleteUser400JSONResponse) VisitDeleteUserResponse(w http.ResponseWriter) error

type DeleteUser401JSONResponse added in v0.9.0

type DeleteUser401JSONResponse APIErrorResponse

func (DeleteUser401JSONResponse) VisitDeleteUserResponse added in v0.9.0

func (response DeleteUser401JSONResponse) VisitDeleteUserResponse(w http.ResponseWriter) error

type DeleteUser403JSONResponse added in v0.9.0

type DeleteUser403JSONResponse APIErrorResponse

func (DeleteUser403JSONResponse) VisitDeleteUserResponse added in v0.9.0

func (response DeleteUser403JSONResponse) VisitDeleteUserResponse(w http.ResponseWriter) error

type DeleteUser404JSONResponse added in v0.9.0

type DeleteUser404JSONResponse APIErrorResponse

func (DeleteUser404JSONResponse) VisitDeleteUserResponse added in v0.9.0

func (response DeleteUser404JSONResponse) VisitDeleteUserResponse(w http.ResponseWriter) error

type DeleteUser500JSONResponse added in v0.9.0

type DeleteUser500JSONResponse APIErrorResponse

func (DeleteUser500JSONResponse) VisitDeleteUserResponse added in v0.9.0

func (response DeleteUser500JSONResponse) VisitDeleteUserResponse(w http.ResponseWriter) error

type DeleteUserRequestObject added in v0.9.0

type DeleteUserRequestObject struct {
	UserID int `json:"userID"`
}

type DeleteUserResponseObject added in v0.9.0

type DeleteUserResponseObject interface {
	VisitDeleteUserResponse(w http.ResponseWriter) error
}

type FlowMeta

type FlowMeta struct {
	Data FlowMeta_Data `json:"data"`
	Name string        `json:"name"`
}

FlowMeta defines model for FlowMeta.

type FlowMetaDataAuth

type FlowMetaDataAuth struct {
	Methods *FlowMetaDataAuthMethods `json:"methods,omitempty"`
	Scheme  *FlowMetaDataAuthScheme  `json:"scheme,omitempty"`
}

FlowMetaDataAuth defines model for FlowMetaDataAuth.

type FlowMetaDataAuthMethodBasic

type FlowMetaDataAuthMethodBasic = map[string]interface{}

FlowMetaDataAuthMethodBasic defines model for FlowMetaDataAuthMethodBasic.

type FlowMetaDataAuthMethods

type FlowMetaDataAuthMethods struct {
	Basic *FlowMetaDataAuthMethodBasic `json:"basic,omitempty"`
}

FlowMetaDataAuthMethods defines model for FlowMetaDataAuthMethods.

type FlowMetaDataAuthScheme

type FlowMetaDataAuthScheme struct {
	Mappings *[]FlowMetaDataAuthSchemeMapping `json:"mappings,omitempty"`
}

FlowMetaDataAuthScheme defines model for FlowMetaDataAuthScheme.

type FlowMetaDataAuthSchemeMapping

type FlowMetaDataAuthSchemeMapping struct {
	Authorization *FlowMetaDataAuthSchemeMappingAuthorization `json:"authorization,omitempty"`
	Backend       string                                      `json:"backend"`
	Exempt        *[]string                                   `json:"exempt,omitempty"`
	Method        string                                      `json:"method"`
}

FlowMetaDataAuthSchemeMapping defines model for FlowMetaDataAuthSchemeMapping.

type FlowMetaDataAuthSchemeMappingAuthorization

type FlowMetaDataAuthSchemeMappingAuthorization struct {
	Groups *[]string            `json:"groups,omitempty"`
	Paths  *map[string][]string `json:"paths,omitempty"`
}

FlowMetaDataAuthSchemeMappingAuthorization defines model for FlowMetaDataAuthSchemeMappingAuthorization.

type FlowMetaDataOAS

type FlowMetaDataOAS struct {
	Backends *[]string `json:"backends,omitempty"`
}

FlowMetaDataOAS defines model for FlowMetaDataOAS.

type FlowMetaDataObservability

type FlowMetaDataObservability struct {
	Enabled bool `json:"enabled"`
}

FlowMetaDataObservability defines model for FlowMetaDataObservability.

type FlowMetaDataRouter

type FlowMetaDataRouter struct {
	Backends *[]FlowMetaDataRouterBackend `json:"backends,omitempty"`
}

FlowMetaDataRouter defines model for FlowMetaDataRouter.

type FlowMetaDataRouterBackend

type FlowMetaDataRouterBackend struct {
	Host string `json:"host"`
	Name string `json:"name"`
	Port int    `json:"port"`
}

FlowMetaDataRouterBackend defines model for FlowMetaDataRouterBackend.

type FlowMeta_Data

type FlowMeta_Data struct {
	// contains filtered or unexported fields
}

FlowMeta_Data defines model for FlowMeta.Data.

func (FlowMeta_Data) AsFlowMetaDataAuth

func (t FlowMeta_Data) AsFlowMetaDataAuth() (FlowMetaDataAuth, error)

AsFlowMetaDataAuth returns the union data inside the FlowMeta_Data as a FlowMetaDataAuth

func (FlowMeta_Data) AsFlowMetaDataOAS

func (t FlowMeta_Data) AsFlowMetaDataOAS() (FlowMetaDataOAS, error)

AsFlowMetaDataOAS returns the union data inside the FlowMeta_Data as a FlowMetaDataOAS

func (FlowMeta_Data) AsFlowMetaDataObservability

func (t FlowMeta_Data) AsFlowMetaDataObservability() (FlowMetaDataObservability, error)

AsFlowMetaDataObservability returns the union data inside the FlowMeta_Data as a FlowMetaDataObservability

func (FlowMeta_Data) AsFlowMetaDataRouter

func (t FlowMeta_Data) AsFlowMetaDataRouter() (FlowMetaDataRouter, error)

AsFlowMetaDataRouter returns the union data inside the FlowMeta_Data as a FlowMetaDataRouter

func (FlowMeta_Data) AsNoFlowMetaData

func (t FlowMeta_Data) AsNoFlowMetaData() (NoFlowMetaData, error)

AsNoFlowMetaData returns the union data inside the FlowMeta_Data as a NoFlowMetaData

func (*FlowMeta_Data) FromFlowMetaDataAuth

func (t *FlowMeta_Data) FromFlowMetaDataAuth(v FlowMetaDataAuth) error

FromFlowMetaDataAuth overwrites any union data inside the FlowMeta_Data as the provided FlowMetaDataAuth

func (*FlowMeta_Data) FromFlowMetaDataOAS

func (t *FlowMeta_Data) FromFlowMetaDataOAS(v FlowMetaDataOAS) error

FromFlowMetaDataOAS overwrites any union data inside the FlowMeta_Data as the provided FlowMetaDataOAS

func (*FlowMeta_Data) FromFlowMetaDataObservability

func (t *FlowMeta_Data) FromFlowMetaDataObservability(v FlowMetaDataObservability) error

FromFlowMetaDataObservability overwrites any union data inside the FlowMeta_Data as the provided FlowMetaDataObservability

func (*FlowMeta_Data) FromFlowMetaDataRouter

func (t *FlowMeta_Data) FromFlowMetaDataRouter(v FlowMetaDataRouter) error

FromFlowMetaDataRouter overwrites any union data inside the FlowMeta_Data as the provided FlowMetaDataRouter

func (*FlowMeta_Data) FromNoFlowMetaData

func (t *FlowMeta_Data) FromNoFlowMetaData(v NoFlowMetaData) error

FromNoFlowMetaData overwrites any union data inside the FlowMeta_Data as the provided NoFlowMetaData

func (FlowMeta_Data) MarshalJSON

func (t FlowMeta_Data) MarshalJSON() ([]byte, error)

func (*FlowMeta_Data) MergeFlowMetaDataAuth

func (t *FlowMeta_Data) MergeFlowMetaDataAuth(v FlowMetaDataAuth) error

MergeFlowMetaDataAuth performs a merge with any union data inside the FlowMeta_Data, using the provided FlowMetaDataAuth

func (*FlowMeta_Data) MergeFlowMetaDataOAS

func (t *FlowMeta_Data) MergeFlowMetaDataOAS(v FlowMetaDataOAS) error

MergeFlowMetaDataOAS performs a merge with any union data inside the FlowMeta_Data, using the provided FlowMetaDataOAS

func (*FlowMeta_Data) MergeFlowMetaDataObservability

func (t *FlowMeta_Data) MergeFlowMetaDataObservability(v FlowMetaDataObservability) error

MergeFlowMetaDataObservability performs a merge with any union data inside the FlowMeta_Data, using the provided FlowMetaDataObservability

func (*FlowMeta_Data) MergeFlowMetaDataRouter

func (t *FlowMeta_Data) MergeFlowMetaDataRouter(v FlowMetaDataRouter) error

MergeFlowMetaDataRouter performs a merge with any union data inside the FlowMeta_Data, using the provided FlowMetaDataRouter

func (*FlowMeta_Data) MergeNoFlowMetaData

func (t *FlowMeta_Data) MergeNoFlowMetaData(v NoFlowMetaData) error

MergeNoFlowMetaData performs a merge with any union data inside the FlowMeta_Data, using the provided NoFlowMetaData

func (*FlowMeta_Data) UnmarshalJSON

func (t *FlowMeta_Data) UnmarshalJSON(b []byte) error

type GetBackendOAS200ApplicationyamlResponse

type GetBackendOAS200ApplicationyamlResponse struct {
	Body          io.Reader
	ContentLength int64
}

func (GetBackendOAS200ApplicationyamlResponse) VisitGetBackendOASResponse

func (response GetBackendOAS200ApplicationyamlResponse) VisitGetBackendOASResponse(w http.ResponseWriter) error

type GetBackendOAS401JSONResponse added in v0.9.0

type GetBackendOAS401JSONResponse APIErrorResponse

func (GetBackendOAS401JSONResponse) VisitGetBackendOASResponse added in v0.9.0

func (response GetBackendOAS401JSONResponse) VisitGetBackendOASResponse(w http.ResponseWriter) error

type GetBackendOAS403JSONResponse added in v0.9.0

type GetBackendOAS403JSONResponse APIErrorResponse

func (GetBackendOAS403JSONResponse) VisitGetBackendOASResponse added in v0.9.0

func (response GetBackendOAS403JSONResponse) VisitGetBackendOASResponse(w http.ResponseWriter) error

type GetBackendOAS404JSONResponse

type GetBackendOAS404JSONResponse APIErrorResponse

func (GetBackendOAS404JSONResponse) VisitGetBackendOASResponse

func (response GetBackendOAS404JSONResponse) VisitGetBackendOASResponse(w http.ResponseWriter) error

type GetBackendOAS500JSONResponse

type GetBackendOAS500JSONResponse APIErrorResponse

func (GetBackendOAS500JSONResponse) VisitGetBackendOASResponse

func (response GetBackendOAS500JSONResponse) VisitGetBackendOASResponse(w http.ResponseWriter) error

type GetBackendOASRequestObject

type GetBackendOASRequestObject struct {
	Backend string `json:"backend"`
}

type GetBackendOASResponseObject

type GetBackendOASResponseObject interface {
	VisitGetBackendOASResponse(w http.ResponseWriter) error
}

type GetFlow200JSONResponse

type GetFlow200JSONResponse []FlowMeta

func (GetFlow200JSONResponse) VisitGetFlowResponse

func (response GetFlow200JSONResponse) VisitGetFlowResponse(w http.ResponseWriter) error

type GetFlow401JSONResponse added in v0.9.0

type GetFlow401JSONResponse APIErrorResponse

func (GetFlow401JSONResponse) VisitGetFlowResponse added in v0.9.0

func (response GetFlow401JSONResponse) VisitGetFlowResponse(w http.ResponseWriter) error

type GetFlow403JSONResponse added in v0.9.0

type GetFlow403JSONResponse APIErrorResponse

func (GetFlow403JSONResponse) VisitGetFlowResponse added in v0.9.0

func (response GetFlow403JSONResponse) VisitGetFlowResponse(w http.ResponseWriter) error

type GetFlow500JSONResponse

type GetFlow500JSONResponse APIErrorResponse

func (GetFlow500JSONResponse) VisitGetFlowResponse

func (response GetFlow500JSONResponse) VisitGetFlowResponse(w http.ResponseWriter) error

type GetFlowRequestObject

type GetFlowRequestObject struct {
}

type GetFlowResponseObject

type GetFlowResponseObject interface {
	VisitGetFlowResponse(w http.ResponseWriter) error
}

type GetGroup200JSONResponse added in v0.9.0

type GetGroup200JSONResponse Group

func (GetGroup200JSONResponse) VisitGetGroupResponse added in v0.9.0

func (response GetGroup200JSONResponse) VisitGetGroupResponse(w http.ResponseWriter) error

type GetGroup401JSONResponse added in v0.9.0

type GetGroup401JSONResponse APIErrorResponse

func (GetGroup401JSONResponse) VisitGetGroupResponse added in v0.9.0

func (response GetGroup401JSONResponse) VisitGetGroupResponse(w http.ResponseWriter) error

type GetGroup403JSONResponse added in v0.9.0

type GetGroup403JSONResponse APIErrorResponse

func (GetGroup403JSONResponse) VisitGetGroupResponse added in v0.9.0

func (response GetGroup403JSONResponse) VisitGetGroupResponse(w http.ResponseWriter) error

type GetGroup404JSONResponse added in v0.9.0

type GetGroup404JSONResponse APIErrorResponse

func (GetGroup404JSONResponse) VisitGetGroupResponse added in v0.9.0

func (response GetGroup404JSONResponse) VisitGetGroupResponse(w http.ResponseWriter) error

type GetGroup500JSONResponse added in v0.9.0

type GetGroup500JSONResponse APIErrorResponse

func (GetGroup500JSONResponse) VisitGetGroupResponse added in v0.9.0

func (response GetGroup500JSONResponse) VisitGetGroupResponse(w http.ResponseWriter) error

type GetGroupRequestObject added in v0.9.0

type GetGroupRequestObject struct {
	GroupID int `json:"groupID"`
}

type GetGroupResponseObject added in v0.9.0

type GetGroupResponseObject interface {
	VisitGetGroupResponse(w http.ResponseWriter) error
}

type GetGroups200JSONResponse added in v0.9.0

type GetGroups200JSONResponse []Group

func (GetGroups200JSONResponse) VisitGetGroupsResponse added in v0.9.0

func (response GetGroups200JSONResponse) VisitGetGroupsResponse(w http.ResponseWriter) error

type GetGroups401JSONResponse added in v0.9.0

type GetGroups401JSONResponse APIErrorResponse

func (GetGroups401JSONResponse) VisitGetGroupsResponse added in v0.9.0

func (response GetGroups401JSONResponse) VisitGetGroupsResponse(w http.ResponseWriter) error

type GetGroups403JSONResponse added in v0.9.0

type GetGroups403JSONResponse APIErrorResponse

func (GetGroups403JSONResponse) VisitGetGroupsResponse added in v0.9.0

func (response GetGroups403JSONResponse) VisitGetGroupsResponse(w http.ResponseWriter) error

type GetGroups500JSONResponse added in v0.9.0

type GetGroups500JSONResponse APIErrorResponse

func (GetGroups500JSONResponse) VisitGetGroupsResponse added in v0.9.0

func (response GetGroups500JSONResponse) VisitGetGroupsResponse(w http.ResponseWriter) error

type GetGroupsRequestObject added in v0.9.0

type GetGroupsRequestObject struct {
}

type GetGroupsResponseObject added in v0.9.0

type GetGroupsResponseObject interface {
	VisitGetGroupsResponse(w http.ResponseWriter) error
}

type GetPermissions200JSONResponse added in v0.9.0

type GetPermissions200JSONResponse []Permission

func (GetPermissions200JSONResponse) VisitGetPermissionsResponse added in v0.9.0

func (response GetPermissions200JSONResponse) VisitGetPermissionsResponse(w http.ResponseWriter) error

type GetPermissions401JSONResponse added in v0.9.0

type GetPermissions401JSONResponse APIErrorResponse

func (GetPermissions401JSONResponse) VisitGetPermissionsResponse added in v0.9.0

func (response GetPermissions401JSONResponse) VisitGetPermissionsResponse(w http.ResponseWriter) error

type GetPermissions500JSONResponse added in v0.9.0

type GetPermissions500JSONResponse APIErrorResponse

func (GetPermissions500JSONResponse) VisitGetPermissionsResponse added in v0.9.0

func (response GetPermissions500JSONResponse) VisitGetPermissionsResponse(w http.ResponseWriter) error

type GetPermissionsRequestObject added in v0.9.0

type GetPermissionsRequestObject struct {
}

type GetPermissionsResponseObject added in v0.9.0

type GetPermissionsResponseObject interface {
	VisitGetPermissionsResponse(w http.ResponseWriter) error
}

type GetUser200JSONResponse added in v0.9.0

type GetUser200JSONResponse User

func (GetUser200JSONResponse) VisitGetUserResponse added in v0.9.0

func (response GetUser200JSONResponse) VisitGetUserResponse(w http.ResponseWriter) error

type GetUser400JSONResponse added in v0.9.0

type GetUser400JSONResponse APIErrorResponse

func (GetUser400JSONResponse) VisitGetUserResponse added in v0.9.0

func (response GetUser400JSONResponse) VisitGetUserResponse(w http.ResponseWriter) error

type GetUser401JSONResponse added in v0.9.0

type GetUser401JSONResponse APIErrorResponse

func (GetUser401JSONResponse) VisitGetUserResponse added in v0.9.0

func (response GetUser401JSONResponse) VisitGetUserResponse(w http.ResponseWriter) error

type GetUser403JSONResponse added in v0.9.0

type GetUser403JSONResponse APIErrorResponse

func (GetUser403JSONResponse) VisitGetUserResponse added in v0.9.0

func (response GetUser403JSONResponse) VisitGetUserResponse(w http.ResponseWriter) error

type GetUser404JSONResponse added in v0.9.0

type GetUser404JSONResponse APIErrorResponse

func (GetUser404JSONResponse) VisitGetUserResponse added in v0.9.0

func (response GetUser404JSONResponse) VisitGetUserResponse(w http.ResponseWriter) error

type GetUser500JSONResponse added in v0.9.0

type GetUser500JSONResponse APIErrorResponse

func (GetUser500JSONResponse) VisitGetUserResponse added in v0.9.0

func (response GetUser500JSONResponse) VisitGetUserResponse(w http.ResponseWriter) error

type GetUserRequestObject added in v0.9.0

type GetUserRequestObject struct {
	UserID int `json:"userID"`
}

type GetUserResponseObject added in v0.9.0

type GetUserResponseObject interface {
	VisitGetUserResponse(w http.ResponseWriter) error
}

type GetUsers200JSONResponse added in v0.9.0

type GetUsers200JSONResponse []User

func (GetUsers200JSONResponse) VisitGetUsersResponse added in v0.9.0

func (response GetUsers200JSONResponse) VisitGetUsersResponse(w http.ResponseWriter) error

type GetUsers401JSONResponse added in v0.9.0

type GetUsers401JSONResponse APIErrorResponse

func (GetUsers401JSONResponse) VisitGetUsersResponse added in v0.9.0

func (response GetUsers401JSONResponse) VisitGetUsersResponse(w http.ResponseWriter) error

type GetUsers403JSONResponse added in v0.9.0

type GetUsers403JSONResponse APIErrorResponse

func (GetUsers403JSONResponse) VisitGetUsersResponse added in v0.9.0

func (response GetUsers403JSONResponse) VisitGetUsersResponse(w http.ResponseWriter) error

type GetUsers500JSONResponse added in v0.9.0

type GetUsers500JSONResponse APIErrorResponse

func (GetUsers500JSONResponse) VisitGetUsersResponse added in v0.9.0

func (response GetUsers500JSONResponse) VisitGetUsersResponse(w http.ResponseWriter) error

type GetUsersRequestObject added in v0.9.0

type GetUsersRequestObject struct {
}

type GetUsersResponseObject added in v0.9.0

type GetUsersResponseObject interface {
	VisitGetUsersResponse(w http.ResponseWriter) error
}

type Group added in v0.9.0

type Group struct {
	Id          int          `json:"id"`
	Name        string       `json:"name"`
	Permissions []Permission `json:"permissions"`
}

Group defines model for Group.

type InvalidParamFormatError

type InvalidParamFormatError struct {
	ParamName string
	Err       error
}

func (*InvalidParamFormatError) Error

func (e *InvalidParamFormatError) Error() string

func (*InvalidParamFormatError) Unwrap

func (e *InvalidParamFormatError) Unwrap() error

type Login204Response added in v0.9.0

type Login204Response struct {
	Headers Login204ResponseHeaders
}

func (Login204Response) VisitLoginResponse added in v0.9.0

func (response Login204Response) VisitLoginResponse(w http.ResponseWriter) error

type Login204ResponseHeaders added in v0.9.0

type Login204ResponseHeaders struct {
	XKrbSession string
}

type Login400JSONResponse added in v0.9.0

type Login400JSONResponse APIErrorResponse

func (Login400JSONResponse) VisitLoginResponse added in v0.9.0

func (response Login400JSONResponse) VisitLoginResponse(w http.ResponseWriter) error

type Login401JSONResponse added in v0.9.0

type Login401JSONResponse APIErrorResponse

func (Login401JSONResponse) VisitLoginResponse added in v0.9.0

func (response Login401JSONResponse) VisitLoginResponse(w http.ResponseWriter) error

type Login500JSONResponse added in v0.9.0

type Login500JSONResponse APIErrorResponse

func (Login500JSONResponse) VisitLoginResponse added in v0.9.0

func (response Login500JSONResponse) VisitLoginResponse(w http.ResponseWriter) error

type LoginJSONBody added in v0.9.0

type LoginJSONBody struct {
	Password string `json:"password"`
	Username string `json:"username"`
}

LoginJSONBody defines parameters for Login.

type LoginJSONRequestBody added in v0.9.0

type LoginJSONRequestBody LoginJSONBody

LoginJSONRequestBody defines body for Login for application/json ContentType.

type LoginRequestObject added in v0.9.0

type LoginRequestObject struct {
	Body *LoginJSONRequestBody
}

type LoginResponseObject added in v0.9.0

type LoginResponseObject interface {
	VisitLoginResponse(w http.ResponseWriter) error
}

type LoginSuperuser204Response

type LoginSuperuser204Response struct {
	Headers LoginSuperuser204ResponseHeaders
}

func (LoginSuperuser204Response) VisitLoginSuperuserResponse

func (response LoginSuperuser204Response) VisitLoginSuperuserResponse(w http.ResponseWriter) error

type LoginSuperuser204ResponseHeaders

type LoginSuperuser204ResponseHeaders struct {
	XKrbSession string
}

type LoginSuperuser400JSONResponse

type LoginSuperuser400JSONResponse APIErrorResponse

func (LoginSuperuser400JSONResponse) VisitLoginSuperuserResponse

func (response LoginSuperuser400JSONResponse) VisitLoginSuperuserResponse(w http.ResponseWriter) error

type LoginSuperuser401JSONResponse

type LoginSuperuser401JSONResponse APIErrorResponse

func (LoginSuperuser401JSONResponse) VisitLoginSuperuserResponse

func (response LoginSuperuser401JSONResponse) VisitLoginSuperuserResponse(w http.ResponseWriter) error

type LoginSuperuser429JSONResponse

type LoginSuperuser429JSONResponse APIErrorResponse

func (LoginSuperuser429JSONResponse) VisitLoginSuperuserResponse

func (response LoginSuperuser429JSONResponse) VisitLoginSuperuserResponse(w http.ResponseWriter) error

type LoginSuperuser500JSONResponse

type LoginSuperuser500JSONResponse APIErrorResponse

func (LoginSuperuser500JSONResponse) VisitLoginSuperuserResponse

func (response LoginSuperuser500JSONResponse) VisitLoginSuperuserResponse(w http.ResponseWriter) error

type LoginSuperuserJSONBody

type LoginSuperuserJSONBody struct {
	ClientId     string `json:"clientId"`
	ClientSecret string `json:"clientSecret"`
}

LoginSuperuserJSONBody defines parameters for LoginSuperuser.

type LoginSuperuserJSONRequestBody

type LoginSuperuserJSONRequestBody LoginSuperuserJSONBody

LoginSuperuserJSONRequestBody defines body for LoginSuperuser for application/json ContentType.

type LoginSuperuserRequestObject

type LoginSuperuserRequestObject struct {
	Body *LoginSuperuserJSONRequestBody
}

type LoginSuperuserResponseObject

type LoginSuperuserResponseObject interface {
	VisitLoginSuperuserResponse(w http.ResponseWriter) error
}

type LoginUserRequest added in v0.9.0

type LoginUserRequest struct {
	Password string `json:"password"`
	Username string `json:"username"`
}

LoginUserRequest defines model for LoginUserRequest.

type Logout204Response added in v0.9.0

type Logout204Response struct {
}

func (Logout204Response) VisitLogoutResponse added in v0.9.0

func (response Logout204Response) VisitLogoutResponse(w http.ResponseWriter) error

type Logout400JSONResponse added in v0.9.0

type Logout400JSONResponse APIErrorResponse

func (Logout400JSONResponse) VisitLogoutResponse added in v0.9.0

func (response Logout400JSONResponse) VisitLogoutResponse(w http.ResponseWriter) error

type Logout401JSONResponse added in v0.9.0

type Logout401JSONResponse APIErrorResponse

func (Logout401JSONResponse) VisitLogoutResponse added in v0.9.0

func (response Logout401JSONResponse) VisitLogoutResponse(w http.ResponseWriter) error

type Logout500JSONResponse added in v0.9.0

type Logout500JSONResponse APIErrorResponse

func (Logout500JSONResponse) VisitLogoutResponse added in v0.9.0

func (response Logout500JSONResponse) VisitLogoutResponse(w http.ResponseWriter) error

type LogoutRequestObject added in v0.9.0

type LogoutRequestObject struct {
}

type LogoutResponseObject added in v0.9.0

type LogoutResponseObject interface {
	VisitLogoutResponse(w http.ResponseWriter) error
}

type LogoutSuperuser204Response

type LogoutSuperuser204Response struct {
}

func (LogoutSuperuser204Response) VisitLogoutSuperuserResponse

func (response LogoutSuperuser204Response) VisitLogoutSuperuserResponse(w http.ResponseWriter) error

type LogoutSuperuser403JSONResponse added in v0.9.0

type LogoutSuperuser403JSONResponse APIErrorResponse

func (LogoutSuperuser403JSONResponse) VisitLogoutSuperuserResponse added in v0.9.0

func (response LogoutSuperuser403JSONResponse) VisitLogoutSuperuserResponse(w http.ResponseWriter) error

type LogoutSuperuser500JSONResponse

type LogoutSuperuser500JSONResponse APIErrorResponse

func (LogoutSuperuser500JSONResponse) VisitLogoutSuperuserResponse

func (response LogoutSuperuser500JSONResponse) VisitLogoutSuperuserResponse(w http.ResponseWriter) error

type LogoutSuperuserRequestObject

type LogoutSuperuserRequestObject struct {
}

type LogoutSuperuserResponseObject

type LogoutSuperuserResponseObject interface {
	VisitLogoutSuperuserResponse(w http.ResponseWriter) error
}

type MiddlewareFunc

type MiddlewareFunc func(http.Handler) http.Handler

type NoFlowMetaData

type NoFlowMetaData = map[string]interface{}

NoFlowMetaData No metadata for the flow component.

type Permission added in v0.9.0

type Permission struct {
	Id   int    `json:"id"`
	Name string `json:"name"`
}

Permission defines model for Permission.

type RequiredHeaderError

type RequiredHeaderError struct {
	ParamName string
	Err       error
}

func (*RequiredHeaderError) Error

func (e *RequiredHeaderError) Error() string

func (*RequiredHeaderError) Unwrap

func (e *RequiredHeaderError) Unwrap() error

type RequiredParamError

type RequiredParamError struct {
	ParamName string
}

func (*RequiredParamError) Error

func (e *RequiredParamError) Error() string

type ServeMux

type ServeMux interface {
	HandleFunc(pattern string, handler func(http.ResponseWriter, *http.Request))
	ServeHTTP(w http.ResponseWriter, r *http.Request)
}

ServeMux is an abstraction of http.ServeMux.

type ServerInterface

type ServerInterface interface {

	// (GET /api/admin/flow)
	GetFlow(w http.ResponseWriter, r *http.Request)

	// (GET /api/admin/groups)
	GetGroups(w http.ResponseWriter, r *http.Request)

	// (POST /api/admin/groups)
	CreateGroup(w http.ResponseWriter, r *http.Request)

	// (DELETE /api/admin/groups/{groupID})
	DeleteGroup(w http.ResponseWriter, r *http.Request, groupID int)

	// (GET /api/admin/groups/{groupID})
	GetGroup(w http.ResponseWriter, r *http.Request, groupID int)

	// (PUT /api/admin/groups/{groupID})
	UpdateGroup(w http.ResponseWriter, r *http.Request, groupID int)

	// (POST /api/admin/login)
	Login(w http.ResponseWriter, r *http.Request)

	// (POST /api/admin/logout)
	Logout(w http.ResponseWriter, r *http.Request)

	// (GET /api/admin/oas/{backend})
	GetBackendOAS(w http.ResponseWriter, r *http.Request, backend string)

	// (GET /api/admin/permissions)
	GetPermissions(w http.ResponseWriter, r *http.Request)

	// (POST /api/admin/superuser/login)
	LoginSuperuser(w http.ResponseWriter, r *http.Request)

	// (POST /api/admin/superuser/logout)
	LogoutSuperuser(w http.ResponseWriter, r *http.Request)

	// (GET /api/admin/users)
	GetUsers(w http.ResponseWriter, r *http.Request)

	// (POST /api/admin/users)
	CreateUser(w http.ResponseWriter, r *http.Request)

	// (DELETE /api/admin/users/{userID})
	DeleteUser(w http.ResponseWriter, r *http.Request, userID int)

	// (GET /api/admin/users/{userID})
	GetUser(w http.ResponseWriter, r *http.Request, userID int)

	// (PUT /api/admin/users/{userID})
	UpdateUser(w http.ResponseWriter, r *http.Request, userID int)

	// (PUT /api/admin/users/{userID}/groups)
	UpdateUserGroups(w http.ResponseWriter, r *http.Request, userID int)

	// (PUT /api/admin/users/{userID}/password)
	ChangeUserPassword(w http.ResponseWriter, r *http.Request, userID int)
}

ServerInterface represents all server handlers.

func NewStrictHandler

func NewStrictHandler(ssi StrictServerInterface, middlewares []StrictMiddlewareFunc) ServerInterface

func NewStrictHandlerWithOptions

func NewStrictHandlerWithOptions(ssi StrictServerInterface, middlewares []StrictMiddlewareFunc, options StrictHTTPServerOptions) ServerInterface

type ServerInterfaceWrapper

type ServerInterfaceWrapper struct {
	Handler            ServerInterface
	HandlerMiddlewares []MiddlewareFunc
	ErrorHandlerFunc   func(w http.ResponseWriter, r *http.Request, err error)
}

ServerInterfaceWrapper converts contexts to parameters.

func (*ServerInterfaceWrapper) ChangeUserPassword added in v0.9.0

func (siw *ServerInterfaceWrapper) ChangeUserPassword(w http.ResponseWriter, r *http.Request)

ChangeUserPassword operation middleware

func (*ServerInterfaceWrapper) CreateGroup added in v0.9.0

func (siw *ServerInterfaceWrapper) CreateGroup(w http.ResponseWriter, r *http.Request)

CreateGroup operation middleware

func (*ServerInterfaceWrapper) CreateUser added in v0.9.0

func (siw *ServerInterfaceWrapper) CreateUser(w http.ResponseWriter, r *http.Request)

CreateUser operation middleware

func (*ServerInterfaceWrapper) DeleteGroup added in v0.9.0

func (siw *ServerInterfaceWrapper) DeleteGroup(w http.ResponseWriter, r *http.Request)

DeleteGroup operation middleware

func (*ServerInterfaceWrapper) DeleteUser added in v0.9.0

func (siw *ServerInterfaceWrapper) DeleteUser(w http.ResponseWriter, r *http.Request)

DeleteUser operation middleware

func (*ServerInterfaceWrapper) GetBackendOAS

func (siw *ServerInterfaceWrapper) GetBackendOAS(w http.ResponseWriter, r *http.Request)

GetBackendOAS operation middleware

func (*ServerInterfaceWrapper) GetFlow

GetFlow operation middleware

func (*ServerInterfaceWrapper) GetGroup added in v0.9.0

func (siw *ServerInterfaceWrapper) GetGroup(w http.ResponseWriter, r *http.Request)

GetGroup operation middleware

func (*ServerInterfaceWrapper) GetGroups added in v0.9.0

func (siw *ServerInterfaceWrapper) GetGroups(w http.ResponseWriter, r *http.Request)

GetGroups operation middleware

func (*ServerInterfaceWrapper) GetPermissions added in v0.9.0

func (siw *ServerInterfaceWrapper) GetPermissions(w http.ResponseWriter, r *http.Request)

GetPermissions operation middleware

func (*ServerInterfaceWrapper) GetUser added in v0.9.0

GetUser operation middleware

func (*ServerInterfaceWrapper) GetUsers added in v0.9.0

func (siw *ServerInterfaceWrapper) GetUsers(w http.ResponseWriter, r *http.Request)

GetUsers operation middleware

func (*ServerInterfaceWrapper) Login added in v0.9.0

Login operation middleware

func (*ServerInterfaceWrapper) LoginSuperuser

func (siw *ServerInterfaceWrapper) LoginSuperuser(w http.ResponseWriter, r *http.Request)

LoginSuperuser operation middleware

func (*ServerInterfaceWrapper) Logout added in v0.9.0

Logout operation middleware

func (*ServerInterfaceWrapper) LogoutSuperuser

func (siw *ServerInterfaceWrapper) LogoutSuperuser(w http.ResponseWriter, r *http.Request)

LogoutSuperuser operation middleware

func (*ServerInterfaceWrapper) UpdateGroup added in v0.9.0

func (siw *ServerInterfaceWrapper) UpdateGroup(w http.ResponseWriter, r *http.Request)

UpdateGroup operation middleware

func (*ServerInterfaceWrapper) UpdateUser added in v0.9.0

func (siw *ServerInterfaceWrapper) UpdateUser(w http.ResponseWriter, r *http.Request)

UpdateUser operation middleware

func (*ServerInterfaceWrapper) UpdateUserGroups added in v0.9.0

func (siw *ServerInterfaceWrapper) UpdateUserGroups(w http.ResponseWriter, r *http.Request)

UpdateUserGroups operation middleware

type StdHTTPServerOptions

type StdHTTPServerOptions struct {
	BaseURL          string
	BaseRouter       ServeMux
	Middlewares      []MiddlewareFunc
	ErrorHandlerFunc func(w http.ResponseWriter, r *http.Request, err error)
}

type StrictHTTPServerOptions

type StrictHTTPServerOptions struct {
	RequestErrorHandlerFunc  func(w http.ResponseWriter, r *http.Request, err error)
	ResponseErrorHandlerFunc func(w http.ResponseWriter, r *http.Request, err error)
}

type StrictServerInterface

type StrictServerInterface interface {

	// (GET /api/admin/flow)
	GetFlow(ctx context.Context, request GetFlowRequestObject) (GetFlowResponseObject, error)

	// (GET /api/admin/groups)
	GetGroups(ctx context.Context, request GetGroupsRequestObject) (GetGroupsResponseObject, error)

	// (POST /api/admin/groups)
	CreateGroup(ctx context.Context, request CreateGroupRequestObject) (CreateGroupResponseObject, error)

	// (DELETE /api/admin/groups/{groupID})
	DeleteGroup(ctx context.Context, request DeleteGroupRequestObject) (DeleteGroupResponseObject, error)

	// (GET /api/admin/groups/{groupID})
	GetGroup(ctx context.Context, request GetGroupRequestObject) (GetGroupResponseObject, error)

	// (PUT /api/admin/groups/{groupID})
	UpdateGroup(ctx context.Context, request UpdateGroupRequestObject) (UpdateGroupResponseObject, error)

	// (POST /api/admin/login)
	Login(ctx context.Context, request LoginRequestObject) (LoginResponseObject, error)

	// (POST /api/admin/logout)
	Logout(ctx context.Context, request LogoutRequestObject) (LogoutResponseObject, error)

	// (GET /api/admin/oas/{backend})
	GetBackendOAS(ctx context.Context, request GetBackendOASRequestObject) (GetBackendOASResponseObject, error)

	// (GET /api/admin/permissions)
	GetPermissions(ctx context.Context, request GetPermissionsRequestObject) (GetPermissionsResponseObject, error)

	// (POST /api/admin/superuser/login)
	LoginSuperuser(ctx context.Context, request LoginSuperuserRequestObject) (LoginSuperuserResponseObject, error)

	// (POST /api/admin/superuser/logout)
	LogoutSuperuser(ctx context.Context, request LogoutSuperuserRequestObject) (LogoutSuperuserResponseObject, error)

	// (GET /api/admin/users)
	GetUsers(ctx context.Context, request GetUsersRequestObject) (GetUsersResponseObject, error)

	// (POST /api/admin/users)
	CreateUser(ctx context.Context, request CreateUserRequestObject) (CreateUserResponseObject, error)

	// (DELETE /api/admin/users/{userID})
	DeleteUser(ctx context.Context, request DeleteUserRequestObject) (DeleteUserResponseObject, error)

	// (GET /api/admin/users/{userID})
	GetUser(ctx context.Context, request GetUserRequestObject) (GetUserResponseObject, error)

	// (PUT /api/admin/users/{userID})
	UpdateUser(ctx context.Context, request UpdateUserRequestObject) (UpdateUserResponseObject, error)

	// (PUT /api/admin/users/{userID}/groups)
	UpdateUserGroups(ctx context.Context, request UpdateUserGroupsRequestObject) (UpdateUserGroupsResponseObject, error)

	// (PUT /api/admin/users/{userID}/password)
	ChangeUserPassword(ctx context.Context, request ChangeUserPasswordRequestObject) (ChangeUserPasswordResponseObject, error)
}

StrictServerInterface represents all server handlers.

type TooManyValuesForParamError

type TooManyValuesForParamError struct {
	ParamName string
	Count     int
}

func (*TooManyValuesForParamError) Error

type UnescapedCookieParamError

type UnescapedCookieParamError struct {
	ParamName string
	Err       error
}

func (*UnescapedCookieParamError) Error

func (e *UnescapedCookieParamError) Error() string

func (*UnescapedCookieParamError) Unwrap

func (e *UnescapedCookieParamError) Unwrap() error

type UnmarshalingParamError

type UnmarshalingParamError struct {
	ParamName string
	Err       error
}

func (*UnmarshalingParamError) Error

func (e *UnmarshalingParamError) Error() string

func (*UnmarshalingParamError) Unwrap

func (e *UnmarshalingParamError) Unwrap() error

type UpdateGroup204Response added in v0.9.0

type UpdateGroup204Response struct {
}

func (UpdateGroup204Response) VisitUpdateGroupResponse added in v0.9.0

func (response UpdateGroup204Response) VisitUpdateGroupResponse(w http.ResponseWriter) error

type UpdateGroup400JSONResponse added in v0.9.0

type UpdateGroup400JSONResponse APIErrorResponse

func (UpdateGroup400JSONResponse) VisitUpdateGroupResponse added in v0.9.0

func (response UpdateGroup400JSONResponse) VisitUpdateGroupResponse(w http.ResponseWriter) error

type UpdateGroup401JSONResponse added in v0.9.0

type UpdateGroup401JSONResponse APIErrorResponse

func (UpdateGroup401JSONResponse) VisitUpdateGroupResponse added in v0.9.0

func (response UpdateGroup401JSONResponse) VisitUpdateGroupResponse(w http.ResponseWriter) error

type UpdateGroup403JSONResponse added in v0.9.0

type UpdateGroup403JSONResponse APIErrorResponse

func (UpdateGroup403JSONResponse) VisitUpdateGroupResponse added in v0.9.0

func (response UpdateGroup403JSONResponse) VisitUpdateGroupResponse(w http.ResponseWriter) error

type UpdateGroup404JSONResponse added in v0.9.0

type UpdateGroup404JSONResponse APIErrorResponse

func (UpdateGroup404JSONResponse) VisitUpdateGroupResponse added in v0.9.0

func (response UpdateGroup404JSONResponse) VisitUpdateGroupResponse(w http.ResponseWriter) error

type UpdateGroup409JSONResponse added in v0.9.0

type UpdateGroup409JSONResponse APIErrorResponse

func (UpdateGroup409JSONResponse) VisitUpdateGroupResponse added in v0.9.0

func (response UpdateGroup409JSONResponse) VisitUpdateGroupResponse(w http.ResponseWriter) error

type UpdateGroup500JSONResponse added in v0.9.0

type UpdateGroup500JSONResponse APIErrorResponse

func (UpdateGroup500JSONResponse) VisitUpdateGroupResponse added in v0.9.0

func (response UpdateGroup500JSONResponse) VisitUpdateGroupResponse(w http.ResponseWriter) error

type UpdateGroupJSONBody added in v0.9.0

type UpdateGroupJSONBody struct {
	Name          string `json:"name"`
	PermissionIDs []int  `json:"permissionIDs"`
}

UpdateGroupJSONBody defines parameters for UpdateGroup.

type UpdateGroupJSONRequestBody added in v0.9.0

type UpdateGroupJSONRequestBody UpdateGroupJSONBody

UpdateGroupJSONRequestBody defines body for UpdateGroup for application/json ContentType.

type UpdateGroupRequest added in v0.9.0

type UpdateGroupRequest struct {
	Name          string `json:"name"`
	PermissionIDs []int  `json:"permissionIDs"`
}

UpdateGroupRequest defines model for UpdateGroupRequest.

type UpdateGroupRequestObject added in v0.9.0

type UpdateGroupRequestObject struct {
	GroupID int `json:"groupID"`
	Body    *UpdateGroupJSONRequestBody
}

type UpdateGroupResponseObject added in v0.9.0

type UpdateGroupResponseObject interface {
	VisitUpdateGroupResponse(w http.ResponseWriter) error
}

type UpdateUser204Response added in v0.9.0

type UpdateUser204Response struct {
}

func (UpdateUser204Response) VisitUpdateUserResponse added in v0.9.0

func (response UpdateUser204Response) VisitUpdateUserResponse(w http.ResponseWriter) error

type UpdateUser400JSONResponse added in v0.9.0

type UpdateUser400JSONResponse APIErrorResponse

func (UpdateUser400JSONResponse) VisitUpdateUserResponse added in v0.9.0

func (response UpdateUser400JSONResponse) VisitUpdateUserResponse(w http.ResponseWriter) error

type UpdateUser401JSONResponse added in v0.9.0

type UpdateUser401JSONResponse APIErrorResponse

func (UpdateUser401JSONResponse) VisitUpdateUserResponse added in v0.9.0

func (response UpdateUser401JSONResponse) VisitUpdateUserResponse(w http.ResponseWriter) error

type UpdateUser403JSONResponse added in v0.9.0

type UpdateUser403JSONResponse APIErrorResponse

func (UpdateUser403JSONResponse) VisitUpdateUserResponse added in v0.9.0

func (response UpdateUser403JSONResponse) VisitUpdateUserResponse(w http.ResponseWriter) error

type UpdateUser404JSONResponse added in v0.9.0

type UpdateUser404JSONResponse APIErrorResponse

func (UpdateUser404JSONResponse) VisitUpdateUserResponse added in v0.9.0

func (response UpdateUser404JSONResponse) VisitUpdateUserResponse(w http.ResponseWriter) error

type UpdateUser409JSONResponse added in v0.9.0

type UpdateUser409JSONResponse APIErrorResponse

func (UpdateUser409JSONResponse) VisitUpdateUserResponse added in v0.9.0

func (response UpdateUser409JSONResponse) VisitUpdateUserResponse(w http.ResponseWriter) error

type UpdateUser500JSONResponse added in v0.9.0

type UpdateUser500JSONResponse APIErrorResponse

func (UpdateUser500JSONResponse) VisitUpdateUserResponse added in v0.9.0

func (response UpdateUser500JSONResponse) VisitUpdateUserResponse(w http.ResponseWriter) error

type UpdateUserGroups204Response added in v0.9.0

type UpdateUserGroups204Response struct {
}

func (UpdateUserGroups204Response) VisitUpdateUserGroupsResponse added in v0.9.0

func (response UpdateUserGroups204Response) VisitUpdateUserGroupsResponse(w http.ResponseWriter) error

type UpdateUserGroups400JSONResponse added in v0.9.0

type UpdateUserGroups400JSONResponse APIErrorResponse

func (UpdateUserGroups400JSONResponse) VisitUpdateUserGroupsResponse added in v0.9.0

func (response UpdateUserGroups400JSONResponse) VisitUpdateUserGroupsResponse(w http.ResponseWriter) error

type UpdateUserGroups401JSONResponse added in v0.9.0

type UpdateUserGroups401JSONResponse APIErrorResponse

func (UpdateUserGroups401JSONResponse) VisitUpdateUserGroupsResponse added in v0.9.0

func (response UpdateUserGroups401JSONResponse) VisitUpdateUserGroupsResponse(w http.ResponseWriter) error

type UpdateUserGroups403JSONResponse added in v0.9.0

type UpdateUserGroups403JSONResponse APIErrorResponse

func (UpdateUserGroups403JSONResponse) VisitUpdateUserGroupsResponse added in v0.9.0

func (response UpdateUserGroups403JSONResponse) VisitUpdateUserGroupsResponse(w http.ResponseWriter) error

type UpdateUserGroups404JSONResponse added in v0.9.0

type UpdateUserGroups404JSONResponse APIErrorResponse

func (UpdateUserGroups404JSONResponse) VisitUpdateUserGroupsResponse added in v0.9.0

func (response UpdateUserGroups404JSONResponse) VisitUpdateUserGroupsResponse(w http.ResponseWriter) error

type UpdateUserGroups500JSONResponse added in v0.9.0

type UpdateUserGroups500JSONResponse APIErrorResponse

func (UpdateUserGroups500JSONResponse) VisitUpdateUserGroupsResponse added in v0.9.0

func (response UpdateUserGroups500JSONResponse) VisitUpdateUserGroupsResponse(w http.ResponseWriter) error

type UpdateUserGroupsJSONBody added in v0.9.0

type UpdateUserGroupsJSONBody struct {
	GroupIDs []int `json:"groupIDs"`
}

UpdateUserGroupsJSONBody defines parameters for UpdateUserGroups.

type UpdateUserGroupsJSONRequestBody added in v0.9.0

type UpdateUserGroupsJSONRequestBody UpdateUserGroupsJSONBody

UpdateUserGroupsJSONRequestBody defines body for UpdateUserGroups for application/json ContentType.

type UpdateUserGroupsRequest added in v0.9.0

type UpdateUserGroupsRequest struct {
	GroupIDs []int `json:"groupIDs"`
}

UpdateUserGroupsRequest defines model for UpdateUserGroupsRequest.

type UpdateUserGroupsRequestObject added in v0.9.0

type UpdateUserGroupsRequestObject struct {
	UserID int `json:"userID"`
	Body   *UpdateUserGroupsJSONRequestBody
}

type UpdateUserGroupsResponseObject added in v0.9.0

type UpdateUserGroupsResponseObject interface {
	VisitUpdateUserGroupsResponse(w http.ResponseWriter) error
}

type UpdateUserJSONBody added in v0.9.0

type UpdateUserJSONBody struct {
	Username string `json:"username"`
}

UpdateUserJSONBody defines parameters for UpdateUser.

type UpdateUserJSONRequestBody added in v0.9.0

type UpdateUserJSONRequestBody UpdateUserJSONBody

UpdateUserJSONRequestBody defines body for UpdateUser for application/json ContentType.

type UpdateUserRequest added in v0.9.0

type UpdateUserRequest struct {
	Username string `json:"username"`
}

UpdateUserRequest defines model for UpdateUserRequest.

type UpdateUserRequestObject added in v0.9.0

type UpdateUserRequestObject struct {
	UserID int `json:"userID"`
	Body   *UpdateUserJSONRequestBody
}

type UpdateUserResponseObject added in v0.9.0

type UpdateUserResponseObject interface {
	VisitUpdateUserResponse(w http.ResponseWriter) error
}

type User added in v0.9.0

type User struct {
	Groups   *[]Group `json:"groups,omitempty"`
	Id       int      `json:"id"`
	Username string   `json:"username"`
}

User defines model for User.

Jump to

Keyboard shortcuts

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