Documentation
¶
Index ¶
- Constants
- type AddPermissions
- type AddPermissionsBadRequest
- type AddPermissionsBody
- type AddPermissionsForbidden
- type AddPermissionsHandler
- type AddPermissionsHandlerFunc
- type AddPermissionsInternalServerError
- func (o *AddPermissionsInternalServerError) SetPayload(payload *models.ErrorResponse)
- func (o *AddPermissionsInternalServerError) WithPayload(payload *models.ErrorResponse) *AddPermissionsInternalServerError
- func (o *AddPermissionsInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type AddPermissionsOK
- type AddPermissionsParams
- type AddPermissionsURL
- func (o *AddPermissionsURL) Build() (*url.URL, error)
- func (o *AddPermissionsURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *AddPermissionsURL) Must(u *url.URL, err error) *url.URL
- func (o *AddPermissionsURL) SetBasePath(bp string)
- func (o *AddPermissionsURL) String() string
- func (o *AddPermissionsURL) StringFull(scheme, host string) string
- func (o *AddPermissionsURL) WithBasePath(bp string) *AddPermissionsURL
- type AddPermissionsUnauthorized
- type AddPermissionsUnprocessableEntity
- func (o *AddPermissionsUnprocessableEntity) SetPayload(payload *models.ErrorResponse)
- func (o *AddPermissionsUnprocessableEntity) WithPayload(payload *models.ErrorResponse) *AddPermissionsUnprocessableEntity
- func (o *AddPermissionsUnprocessableEntity) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type AssignRole
- type AssignRoleBadRequest
- type AssignRoleBody
- type AssignRoleForbidden
- type AssignRoleHandler
- type AssignRoleHandlerFunc
- type AssignRoleInternalServerError
- func (o *AssignRoleInternalServerError) SetPayload(payload *models.ErrorResponse)
- func (o *AssignRoleInternalServerError) WithPayload(payload *models.ErrorResponse) *AssignRoleInternalServerError
- func (o *AssignRoleInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type AssignRoleNotFound
- type AssignRoleOK
- type AssignRoleParams
- type AssignRoleURL
- func (o *AssignRoleURL) Build() (*url.URL, error)
- func (o *AssignRoleURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *AssignRoleURL) Must(u *url.URL, err error) *url.URL
- func (o *AssignRoleURL) SetBasePath(bp string)
- func (o *AssignRoleURL) String() string
- func (o *AssignRoleURL) StringFull(scheme, host string) string
- func (o *AssignRoleURL) WithBasePath(bp string) *AssignRoleURL
- type AssignRoleUnauthorized
- type CreateRole
- type CreateRoleBadRequest
- type CreateRoleConflict
- type CreateRoleCreated
- type CreateRoleForbidden
- type CreateRoleHandler
- type CreateRoleHandlerFunc
- type CreateRoleInternalServerError
- func (o *CreateRoleInternalServerError) SetPayload(payload *models.ErrorResponse)
- func (o *CreateRoleInternalServerError) WithPayload(payload *models.ErrorResponse) *CreateRoleInternalServerError
- func (o *CreateRoleInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type CreateRoleParams
- type CreateRoleURL
- func (o *CreateRoleURL) Build() (*url.URL, error)
- func (o *CreateRoleURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *CreateRoleURL) Must(u *url.URL, err error) *url.URL
- func (o *CreateRoleURL) SetBasePath(bp string)
- func (o *CreateRoleURL) String() string
- func (o *CreateRoleURL) StringFull(scheme, host string) string
- func (o *CreateRoleURL) WithBasePath(bp string) *CreateRoleURL
- type CreateRoleUnauthorized
- type CreateRoleUnprocessableEntity
- func (o *CreateRoleUnprocessableEntity) SetPayload(payload *models.ErrorResponse)
- func (o *CreateRoleUnprocessableEntity) WithPayload(payload *models.ErrorResponse) *CreateRoleUnprocessableEntity
- func (o *CreateRoleUnprocessableEntity) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type DeleteRole
- type DeleteRoleBadRequest
- type DeleteRoleForbidden
- type DeleteRoleHandler
- type DeleteRoleHandlerFunc
- type DeleteRoleInternalServerError
- func (o *DeleteRoleInternalServerError) SetPayload(payload *models.ErrorResponse)
- func (o *DeleteRoleInternalServerError) WithPayload(payload *models.ErrorResponse) *DeleteRoleInternalServerError
- func (o *DeleteRoleInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type DeleteRoleNoContent
- type DeleteRoleParams
- type DeleteRoleURL
- func (o *DeleteRoleURL) Build() (*url.URL, error)
- func (o *DeleteRoleURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *DeleteRoleURL) Must(u *url.URL, err error) *url.URL
- func (o *DeleteRoleURL) SetBasePath(bp string)
- func (o *DeleteRoleURL) String() string
- func (o *DeleteRoleURL) StringFull(scheme, host string) string
- func (o *DeleteRoleURL) WithBasePath(bp string) *DeleteRoleURL
- type DeleteRoleUnauthorized
- type GetRole
- type GetRoleBadRequest
- type GetRoleForbidden
- type GetRoleHandler
- type GetRoleHandlerFunc
- type GetRoleInternalServerError
- type GetRoleNotFound
- type GetRoleOK
- type GetRoleParams
- type GetRoleURL
- func (o *GetRoleURL) Build() (*url.URL, error)
- func (o *GetRoleURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *GetRoleURL) Must(u *url.URL, err error) *url.URL
- func (o *GetRoleURL) SetBasePath(bp string)
- func (o *GetRoleURL) String() string
- func (o *GetRoleURL) StringFull(scheme, host string) string
- func (o *GetRoleURL) WithBasePath(bp string) *GetRoleURL
- type GetRoleUnauthorized
- type GetRoles
- type GetRolesBadRequest
- type GetRolesForOwnUser
- type GetRolesForOwnUserHandler
- type GetRolesForOwnUserHandlerFunc
- type GetRolesForOwnUserInternalServerError
- func (o *GetRolesForOwnUserInternalServerError) SetPayload(payload *models.ErrorResponse)
- func (o *GetRolesForOwnUserInternalServerError) WithPayload(payload *models.ErrorResponse) *GetRolesForOwnUserInternalServerError
- func (o *GetRolesForOwnUserInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type GetRolesForOwnUserOK
- type GetRolesForOwnUserParams
- type GetRolesForOwnUserURL
- func (o *GetRolesForOwnUserURL) Build() (*url.URL, error)
- func (o *GetRolesForOwnUserURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *GetRolesForOwnUserURL) Must(u *url.URL, err error) *url.URL
- func (o *GetRolesForOwnUserURL) SetBasePath(bp string)
- func (o *GetRolesForOwnUserURL) String() string
- func (o *GetRolesForOwnUserURL) StringFull(scheme, host string) string
- func (o *GetRolesForOwnUserURL) WithBasePath(bp string) *GetRolesForOwnUserURL
- type GetRolesForOwnUserUnauthorized
- type GetRolesForUser
- type GetRolesForUserBadRequest
- type GetRolesForUserForbidden
- type GetRolesForUserHandler
- type GetRolesForUserHandlerFunc
- type GetRolesForUserInternalServerError
- func (o *GetRolesForUserInternalServerError) SetPayload(payload *models.ErrorResponse)
- func (o *GetRolesForUserInternalServerError) WithPayload(payload *models.ErrorResponse) *GetRolesForUserInternalServerError
- func (o *GetRolesForUserInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type GetRolesForUserNotFound
- type GetRolesForUserOK
- type GetRolesForUserParams
- type GetRolesForUserURL
- func (o *GetRolesForUserURL) Build() (*url.URL, error)
- func (o *GetRolesForUserURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *GetRolesForUserURL) Must(u *url.URL, err error) *url.URL
- func (o *GetRolesForUserURL) SetBasePath(bp string)
- func (o *GetRolesForUserURL) String() string
- func (o *GetRolesForUserURL) StringFull(scheme, host string) string
- func (o *GetRolesForUserURL) WithBasePath(bp string) *GetRolesForUserURL
- type GetRolesForUserUnauthorized
- type GetRolesForbidden
- type GetRolesHandler
- type GetRolesHandlerFunc
- type GetRolesInternalServerError
- type GetRolesOK
- type GetRolesParams
- type GetRolesURL
- func (o *GetRolesURL) Build() (*url.URL, error)
- func (o *GetRolesURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *GetRolesURL) Must(u *url.URL, err error) *url.URL
- func (o *GetRolesURL) SetBasePath(bp string)
- func (o *GetRolesURL) String() string
- func (o *GetRolesURL) StringFull(scheme, host string) string
- func (o *GetRolesURL) WithBasePath(bp string) *GetRolesURL
- type GetRolesUnauthorized
- type GetUsersForRole
- type GetUsersForRoleBadRequest
- type GetUsersForRoleForbidden
- type GetUsersForRoleHandler
- type GetUsersForRoleHandlerFunc
- type GetUsersForRoleInternalServerError
- func (o *GetUsersForRoleInternalServerError) SetPayload(payload *models.ErrorResponse)
- func (o *GetUsersForRoleInternalServerError) WithPayload(payload *models.ErrorResponse) *GetUsersForRoleInternalServerError
- func (o *GetUsersForRoleInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type GetUsersForRoleNotFound
- type GetUsersForRoleOK
- type GetUsersForRoleParams
- type GetUsersForRoleURL
- func (o *GetUsersForRoleURL) Build() (*url.URL, error)
- func (o *GetUsersForRoleURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *GetUsersForRoleURL) Must(u *url.URL, err error) *url.URL
- func (o *GetUsersForRoleURL) SetBasePath(bp string)
- func (o *GetUsersForRoleURL) String() string
- func (o *GetUsersForRoleURL) StringFull(scheme, host string) string
- func (o *GetUsersForRoleURL) WithBasePath(bp string) *GetUsersForRoleURL
- type GetUsersForRoleUnauthorized
- type RemovePermissions
- type RemovePermissionsBadRequest
- type RemovePermissionsBody
- type RemovePermissionsForbidden
- type RemovePermissionsHandler
- type RemovePermissionsHandlerFunc
- type RemovePermissionsInternalServerError
- func (o *RemovePermissionsInternalServerError) SetPayload(payload *models.ErrorResponse)
- func (o *RemovePermissionsInternalServerError) WithPayload(payload *models.ErrorResponse) *RemovePermissionsInternalServerError
- func (o *RemovePermissionsInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type RemovePermissionsOK
- type RemovePermissionsParams
- type RemovePermissionsURL
- func (o *RemovePermissionsURL) Build() (*url.URL, error)
- func (o *RemovePermissionsURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *RemovePermissionsURL) Must(u *url.URL, err error) *url.URL
- func (o *RemovePermissionsURL) SetBasePath(bp string)
- func (o *RemovePermissionsURL) String() string
- func (o *RemovePermissionsURL) StringFull(scheme, host string) string
- func (o *RemovePermissionsURL) WithBasePath(bp string) *RemovePermissionsURL
- type RemovePermissionsUnauthorized
- type RemovePermissionsUnprocessableEntity
- func (o *RemovePermissionsUnprocessableEntity) SetPayload(payload *models.ErrorResponse)
- func (o *RemovePermissionsUnprocessableEntity) WithPayload(payload *models.ErrorResponse) *RemovePermissionsUnprocessableEntity
- func (o *RemovePermissionsUnprocessableEntity) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type RevokeRole
- type RevokeRoleBadRequest
- type RevokeRoleBody
- type RevokeRoleForbidden
- type RevokeRoleHandler
- type RevokeRoleHandlerFunc
- type RevokeRoleInternalServerError
- func (o *RevokeRoleInternalServerError) SetPayload(payload *models.ErrorResponse)
- func (o *RevokeRoleInternalServerError) WithPayload(payload *models.ErrorResponse) *RevokeRoleInternalServerError
- func (o *RevokeRoleInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type RevokeRoleNotFound
- type RevokeRoleOK
- type RevokeRoleParams
- type RevokeRoleURL
- func (o *RevokeRoleURL) Build() (*url.URL, error)
- func (o *RevokeRoleURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *RevokeRoleURL) Must(u *url.URL, err error) *url.URL
- func (o *RevokeRoleURL) SetBasePath(bp string)
- func (o *RevokeRoleURL) String() string
- func (o *RevokeRoleURL) StringFull(scheme, host string) string
- func (o *RevokeRoleURL) WithBasePath(bp string) *RevokeRoleURL
- type RevokeRoleUnauthorized
Constants ¶
const AddPermissionsBadRequestCode int = 400
AddPermissionsBadRequestCode is the HTTP code returned for type AddPermissionsBadRequest
const AddPermissionsForbiddenCode int = 403
AddPermissionsForbiddenCode is the HTTP code returned for type AddPermissionsForbidden
const AddPermissionsInternalServerErrorCode int = 500
AddPermissionsInternalServerErrorCode is the HTTP code returned for type AddPermissionsInternalServerError
const AddPermissionsOKCode int = 200
AddPermissionsOKCode is the HTTP code returned for type AddPermissionsOK
AddPermissionsUnauthorizedCode is the HTTP code returned for type AddPermissionsUnauthorized
const AddPermissionsUnprocessableEntityCode int = 422
AddPermissionsUnprocessableEntityCode is the HTTP code returned for type AddPermissionsUnprocessableEntity
const AssignRoleBadRequestCode int = 400
AssignRoleBadRequestCode is the HTTP code returned for type AssignRoleBadRequest
const AssignRoleForbiddenCode int = 403
AssignRoleForbiddenCode is the HTTP code returned for type AssignRoleForbidden
const AssignRoleInternalServerErrorCode int = 500
AssignRoleInternalServerErrorCode is the HTTP code returned for type AssignRoleInternalServerError
const AssignRoleNotFoundCode int = 404
AssignRoleNotFoundCode is the HTTP code returned for type AssignRoleNotFound
const AssignRoleOKCode int = 200
AssignRoleOKCode is the HTTP code returned for type AssignRoleOK
AssignRoleUnauthorizedCode is the HTTP code returned for type AssignRoleUnauthorized
const CreateRoleBadRequestCode int = 400
CreateRoleBadRequestCode is the HTTP code returned for type CreateRoleBadRequest
const CreateRoleConflictCode int = 409
CreateRoleConflictCode is the HTTP code returned for type CreateRoleConflict
const CreateRoleCreatedCode int = 201
CreateRoleCreatedCode is the HTTP code returned for type CreateRoleCreated
const CreateRoleForbiddenCode int = 403
CreateRoleForbiddenCode is the HTTP code returned for type CreateRoleForbidden
const CreateRoleInternalServerErrorCode int = 500
CreateRoleInternalServerErrorCode is the HTTP code returned for type CreateRoleInternalServerError
CreateRoleUnauthorizedCode is the HTTP code returned for type CreateRoleUnauthorized
const CreateRoleUnprocessableEntityCode int = 422
CreateRoleUnprocessableEntityCode is the HTTP code returned for type CreateRoleUnprocessableEntity
const DeleteRoleBadRequestCode int = 400
DeleteRoleBadRequestCode is the HTTP code returned for type DeleteRoleBadRequest
const DeleteRoleForbiddenCode int = 403
DeleteRoleForbiddenCode is the HTTP code returned for type DeleteRoleForbidden
const DeleteRoleInternalServerErrorCode int = 500
DeleteRoleInternalServerErrorCode is the HTTP code returned for type DeleteRoleInternalServerError
const DeleteRoleNoContentCode int = 204
DeleteRoleNoContentCode is the HTTP code returned for type DeleteRoleNoContent
DeleteRoleUnauthorizedCode is the HTTP code returned for type DeleteRoleUnauthorized
const GetRoleBadRequestCode int = 400
GetRoleBadRequestCode is the HTTP code returned for type GetRoleBadRequest
const GetRoleForbiddenCode int = 403
GetRoleForbiddenCode is the HTTP code returned for type GetRoleForbidden
const GetRoleInternalServerErrorCode int = 500
GetRoleInternalServerErrorCode is the HTTP code returned for type GetRoleInternalServerError
const GetRoleNotFoundCode int = 404
GetRoleNotFoundCode is the HTTP code returned for type GetRoleNotFound
const GetRoleOKCode int = 200
GetRoleOKCode is the HTTP code returned for type GetRoleOK
GetRoleUnauthorizedCode is the HTTP code returned for type GetRoleUnauthorized
const GetRolesBadRequestCode int = 400
GetRolesBadRequestCode is the HTTP code returned for type GetRolesBadRequest
const GetRolesForOwnUserInternalServerErrorCode int = 500
GetRolesForOwnUserInternalServerErrorCode is the HTTP code returned for type GetRolesForOwnUserInternalServerError
const GetRolesForOwnUserOKCode int = 200
GetRolesForOwnUserOKCode is the HTTP code returned for type GetRolesForOwnUserOK
GetRolesForOwnUserUnauthorizedCode is the HTTP code returned for type GetRolesForOwnUserUnauthorized
const GetRolesForUserBadRequestCode int = 400
GetRolesForUserBadRequestCode is the HTTP code returned for type GetRolesForUserBadRequest
const GetRolesForUserForbiddenCode int = 403
GetRolesForUserForbiddenCode is the HTTP code returned for type GetRolesForUserForbidden
const GetRolesForUserInternalServerErrorCode int = 500
GetRolesForUserInternalServerErrorCode is the HTTP code returned for type GetRolesForUserInternalServerError
const GetRolesForUserNotFoundCode int = 404
GetRolesForUserNotFoundCode is the HTTP code returned for type GetRolesForUserNotFound
const GetRolesForUserOKCode int = 200
GetRolesForUserOKCode is the HTTP code returned for type GetRolesForUserOK
GetRolesForUserUnauthorizedCode is the HTTP code returned for type GetRolesForUserUnauthorized
const GetRolesForbiddenCode int = 403
GetRolesForbiddenCode is the HTTP code returned for type GetRolesForbidden
const GetRolesInternalServerErrorCode int = 500
GetRolesInternalServerErrorCode is the HTTP code returned for type GetRolesInternalServerError
const GetRolesOKCode int = 200
GetRolesOKCode is the HTTP code returned for type GetRolesOK
GetRolesUnauthorizedCode is the HTTP code returned for type GetRolesUnauthorized
const GetUsersForRoleBadRequestCode int = 400
GetUsersForRoleBadRequestCode is the HTTP code returned for type GetUsersForRoleBadRequest
const GetUsersForRoleForbiddenCode int = 403
GetUsersForRoleForbiddenCode is the HTTP code returned for type GetUsersForRoleForbidden
const GetUsersForRoleInternalServerErrorCode int = 500
GetUsersForRoleInternalServerErrorCode is the HTTP code returned for type GetUsersForRoleInternalServerError
const GetUsersForRoleNotFoundCode int = 404
GetUsersForRoleNotFoundCode is the HTTP code returned for type GetUsersForRoleNotFound
const GetUsersForRoleOKCode int = 200
GetUsersForRoleOKCode is the HTTP code returned for type GetUsersForRoleOK
GetUsersForRoleUnauthorizedCode is the HTTP code returned for type GetUsersForRoleUnauthorized
const RemovePermissionsBadRequestCode int = 400
RemovePermissionsBadRequestCode is the HTTP code returned for type RemovePermissionsBadRequest
const RemovePermissionsForbiddenCode int = 403
RemovePermissionsForbiddenCode is the HTTP code returned for type RemovePermissionsForbidden
const RemovePermissionsInternalServerErrorCode int = 500
RemovePermissionsInternalServerErrorCode is the HTTP code returned for type RemovePermissionsInternalServerError
const RemovePermissionsOKCode int = 200
RemovePermissionsOKCode is the HTTP code returned for type RemovePermissionsOK
RemovePermissionsUnauthorizedCode is the HTTP code returned for type RemovePermissionsUnauthorized
const RemovePermissionsUnprocessableEntityCode int = 422
RemovePermissionsUnprocessableEntityCode is the HTTP code returned for type RemovePermissionsUnprocessableEntity
const RevokeRoleBadRequestCode int = 400
RevokeRoleBadRequestCode is the HTTP code returned for type RevokeRoleBadRequest
const RevokeRoleForbiddenCode int = 403
RevokeRoleForbiddenCode is the HTTP code returned for type RevokeRoleForbidden
const RevokeRoleInternalServerErrorCode int = 500
RevokeRoleInternalServerErrorCode is the HTTP code returned for type RevokeRoleInternalServerError
const RevokeRoleNotFoundCode int = 404
RevokeRoleNotFoundCode is the HTTP code returned for type RevokeRoleNotFound
const RevokeRoleOKCode int = 200
RevokeRoleOKCode is the HTTP code returned for type RevokeRoleOK
RevokeRoleUnauthorizedCode is the HTTP code returned for type RevokeRoleUnauthorized
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AddPermissions ¶
type AddPermissions struct { Context *middleware.Context Handler AddPermissionsHandler }
AddPermissions swagger:route POST /authz/roles/add-permissions authz addPermissions
Add permission to a role as an upsert. If the role doesn't exist then it will be created.
func NewAddPermissions ¶
func NewAddPermissions(ctx *middleware.Context, handler AddPermissionsHandler) *AddPermissions
NewAddPermissions creates a new http.Handler for the add permissions operation
func (*AddPermissions) ServeHTTP ¶
func (o *AddPermissions) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type AddPermissionsBadRequest ¶
type AddPermissionsBadRequest struct { /* In: Body */ Payload *models.ErrorResponse `json:"body,omitempty"` }
AddPermissionsBadRequest Malformed request.
swagger:response addPermissionsBadRequest
func NewAddPermissionsBadRequest ¶
func NewAddPermissionsBadRequest() *AddPermissionsBadRequest
NewAddPermissionsBadRequest creates AddPermissionsBadRequest with default headers values
func (*AddPermissionsBadRequest) SetPayload ¶
func (o *AddPermissionsBadRequest) SetPayload(payload *models.ErrorResponse)
SetPayload sets the payload to the add permissions bad request response
func (*AddPermissionsBadRequest) WithPayload ¶
func (o *AddPermissionsBadRequest) WithPayload(payload *models.ErrorResponse) *AddPermissionsBadRequest
WithPayload adds the payload to the add permissions bad request response
func (*AddPermissionsBadRequest) WriteResponse ¶
func (o *AddPermissionsBadRequest) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type AddPermissionsBody ¶
type AddPermissionsBody struct { // role name // Required: true Name *string `json:"name" yaml:"name"` // permissions to be added to the role // Required: true Permissions []*models.Permission `json:"permissions" yaml:"permissions"` }
AddPermissionsBody add permissions body
swagger:model AddPermissionsBody
func (*AddPermissionsBody) ContextValidate ¶
ContextValidate validate this add permissions body based on the context it is used
func (*AddPermissionsBody) MarshalBinary ¶
func (o *AddPermissionsBody) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*AddPermissionsBody) UnmarshalBinary ¶
func (o *AddPermissionsBody) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type AddPermissionsForbidden ¶
type AddPermissionsForbidden struct { /* In: Body */ Payload *models.ErrorResponse `json:"body,omitempty"` }
AddPermissionsForbidden Forbidden
swagger:response addPermissionsForbidden
func NewAddPermissionsForbidden ¶
func NewAddPermissionsForbidden() *AddPermissionsForbidden
NewAddPermissionsForbidden creates AddPermissionsForbidden with default headers values
func (*AddPermissionsForbidden) SetPayload ¶
func (o *AddPermissionsForbidden) SetPayload(payload *models.ErrorResponse)
SetPayload sets the payload to the add permissions forbidden response
func (*AddPermissionsForbidden) WithPayload ¶
func (o *AddPermissionsForbidden) WithPayload(payload *models.ErrorResponse) *AddPermissionsForbidden
WithPayload adds the payload to the add permissions forbidden response
func (*AddPermissionsForbidden) WriteResponse ¶
func (o *AddPermissionsForbidden) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type AddPermissionsHandler ¶
type AddPermissionsHandler interface {
Handle(AddPermissionsParams, *models.Principal) middleware.Responder
}
AddPermissionsHandler interface for that can handle valid add permissions params
type AddPermissionsHandlerFunc ¶
type AddPermissionsHandlerFunc func(AddPermissionsParams, *models.Principal) middleware.Responder
AddPermissionsHandlerFunc turns a function with the right signature into a add permissions handler
func (AddPermissionsHandlerFunc) Handle ¶
func (fn AddPermissionsHandlerFunc) Handle(params AddPermissionsParams, principal *models.Principal) middleware.Responder
Handle executing the request and returning a response
type AddPermissionsInternalServerError ¶
type AddPermissionsInternalServerError struct { /* In: Body */ Payload *models.ErrorResponse `json:"body,omitempty"` }
AddPermissionsInternalServerError An error has occurred while trying to fulfill the request. Most likely the ErrorResponse will contain more information about the error.
swagger:response addPermissionsInternalServerError
func NewAddPermissionsInternalServerError ¶
func NewAddPermissionsInternalServerError() *AddPermissionsInternalServerError
NewAddPermissionsInternalServerError creates AddPermissionsInternalServerError with default headers values
func (*AddPermissionsInternalServerError) SetPayload ¶
func (o *AddPermissionsInternalServerError) SetPayload(payload *models.ErrorResponse)
SetPayload sets the payload to the add permissions internal server error response
func (*AddPermissionsInternalServerError) WithPayload ¶
func (o *AddPermissionsInternalServerError) WithPayload(payload *models.ErrorResponse) *AddPermissionsInternalServerError
WithPayload adds the payload to the add permissions internal server error response
func (*AddPermissionsInternalServerError) WriteResponse ¶
func (o *AddPermissionsInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type AddPermissionsOK ¶
type AddPermissionsOK struct { }
AddPermissionsOK Permissions added successfully
swagger:response addPermissionsOK
func NewAddPermissionsOK ¶
func NewAddPermissionsOK() *AddPermissionsOK
NewAddPermissionsOK creates AddPermissionsOK with default headers values
func (*AddPermissionsOK) WriteResponse ¶
func (o *AddPermissionsOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type AddPermissionsParams ¶
type AddPermissionsParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /* Required: true In: body */ Body AddPermissionsBody }
AddPermissionsParams contains all the bound params for the add permissions operation typically these are obtained from a http.Request
swagger:parameters addPermissions
func NewAddPermissionsParams ¶
func NewAddPermissionsParams() AddPermissionsParams
NewAddPermissionsParams creates a new AddPermissionsParams object
There are no default values defined in the spec.
func (*AddPermissionsParams) BindRequest ¶
func (o *AddPermissionsParams) BindRequest(r *http.Request, route *middleware.MatchedRoute) error
BindRequest both binds and validates a request, it assumes that complex things implement a Validatable(strfmt.Registry) error interface for simple values it will use straight method calls.
To ensure default values, the struct must have been initialized with NewAddPermissionsParams() beforehand.
type AddPermissionsURL ¶
type AddPermissionsURL struct {
// contains filtered or unexported fields
}
AddPermissionsURL generates an URL for the add permissions operation
func (*AddPermissionsURL) Build ¶
func (o *AddPermissionsURL) Build() (*url.URL, error)
Build a url path and query string
func (*AddPermissionsURL) BuildFull ¶
func (o *AddPermissionsURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*AddPermissionsURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*AddPermissionsURL) SetBasePath ¶
func (o *AddPermissionsURL) SetBasePath(bp string)
SetBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string
func (*AddPermissionsURL) String ¶
func (o *AddPermissionsURL) String() string
String returns the string representation of the path with query string
func (*AddPermissionsURL) StringFull ¶
func (o *AddPermissionsURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*AddPermissionsURL) WithBasePath ¶
func (o *AddPermissionsURL) WithBasePath(bp string) *AddPermissionsURL
WithBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string
type AddPermissionsUnauthorized ¶
type AddPermissionsUnauthorized struct { }
AddPermissionsUnauthorized Unauthorized or invalid credentials.
swagger:response addPermissionsUnauthorized
func NewAddPermissionsUnauthorized ¶
func NewAddPermissionsUnauthorized() *AddPermissionsUnauthorized
NewAddPermissionsUnauthorized creates AddPermissionsUnauthorized with default headers values
func (*AddPermissionsUnauthorized) WriteResponse ¶
func (o *AddPermissionsUnauthorized) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type AddPermissionsUnprocessableEntity ¶
type AddPermissionsUnprocessableEntity struct { /* In: Body */ Payload *models.ErrorResponse `json:"body,omitempty"` }
AddPermissionsUnprocessableEntity Request body is well-formed (i.e., syntactically correct), but semantically erroneous. Are you sure the class is defined in the configuration file?
swagger:response addPermissionsUnprocessableEntity
func NewAddPermissionsUnprocessableEntity ¶
func NewAddPermissionsUnprocessableEntity() *AddPermissionsUnprocessableEntity
NewAddPermissionsUnprocessableEntity creates AddPermissionsUnprocessableEntity with default headers values
func (*AddPermissionsUnprocessableEntity) SetPayload ¶
func (o *AddPermissionsUnprocessableEntity) SetPayload(payload *models.ErrorResponse)
SetPayload sets the payload to the add permissions unprocessable entity response
func (*AddPermissionsUnprocessableEntity) WithPayload ¶
func (o *AddPermissionsUnprocessableEntity) WithPayload(payload *models.ErrorResponse) *AddPermissionsUnprocessableEntity
WithPayload adds the payload to the add permissions unprocessable entity response
func (*AddPermissionsUnprocessableEntity) WriteResponse ¶
func (o *AddPermissionsUnprocessableEntity) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type AssignRole ¶
type AssignRole struct { Context *middleware.Context Handler AssignRoleHandler }
AssignRole swagger:route POST /authz/users/{id}/assign authz assignRole
Assign a role to a user
func NewAssignRole ¶
func NewAssignRole(ctx *middleware.Context, handler AssignRoleHandler) *AssignRole
NewAssignRole creates a new http.Handler for the assign role operation
func (*AssignRole) ServeHTTP ¶
func (o *AssignRole) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type AssignRoleBadRequest ¶
type AssignRoleBadRequest struct { /* In: Body */ Payload *models.ErrorResponse `json:"body,omitempty"` }
AssignRoleBadRequest Bad request
swagger:response assignRoleBadRequest
func NewAssignRoleBadRequest ¶
func NewAssignRoleBadRequest() *AssignRoleBadRequest
NewAssignRoleBadRequest creates AssignRoleBadRequest with default headers values
func (*AssignRoleBadRequest) SetPayload ¶
func (o *AssignRoleBadRequest) SetPayload(payload *models.ErrorResponse)
SetPayload sets the payload to the assign role bad request response
func (*AssignRoleBadRequest) WithPayload ¶
func (o *AssignRoleBadRequest) WithPayload(payload *models.ErrorResponse) *AssignRoleBadRequest
WithPayload adds the payload to the assign role bad request response
func (*AssignRoleBadRequest) WriteResponse ¶
func (o *AssignRoleBadRequest) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type AssignRoleBody ¶
type AssignRoleBody struct { // the roles that assigned to user Roles []string `json:"roles" yaml:"roles"` }
AssignRoleBody assign role body
swagger:model AssignRoleBody
func (*AssignRoleBody) ContextValidate ¶
ContextValidate validates this assign role body based on context it is used
func (*AssignRoleBody) MarshalBinary ¶
func (o *AssignRoleBody) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*AssignRoleBody) UnmarshalBinary ¶
func (o *AssignRoleBody) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type AssignRoleForbidden ¶
type AssignRoleForbidden struct { /* In: Body */ Payload *models.ErrorResponse `json:"body,omitempty"` }
AssignRoleForbidden Forbidden
swagger:response assignRoleForbidden
func NewAssignRoleForbidden ¶
func NewAssignRoleForbidden() *AssignRoleForbidden
NewAssignRoleForbidden creates AssignRoleForbidden with default headers values
func (*AssignRoleForbidden) SetPayload ¶
func (o *AssignRoleForbidden) SetPayload(payload *models.ErrorResponse)
SetPayload sets the payload to the assign role forbidden response
func (*AssignRoleForbidden) WithPayload ¶
func (o *AssignRoleForbidden) WithPayload(payload *models.ErrorResponse) *AssignRoleForbidden
WithPayload adds the payload to the assign role forbidden response
func (*AssignRoleForbidden) WriteResponse ¶
func (o *AssignRoleForbidden) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type AssignRoleHandler ¶
type AssignRoleHandler interface {
Handle(AssignRoleParams, *models.Principal) middleware.Responder
}
AssignRoleHandler interface for that can handle valid assign role params
type AssignRoleHandlerFunc ¶
type AssignRoleHandlerFunc func(AssignRoleParams, *models.Principal) middleware.Responder
AssignRoleHandlerFunc turns a function with the right signature into a assign role handler
func (AssignRoleHandlerFunc) Handle ¶
func (fn AssignRoleHandlerFunc) Handle(params AssignRoleParams, principal *models.Principal) middleware.Responder
Handle executing the request and returning a response
type AssignRoleInternalServerError ¶
type AssignRoleInternalServerError struct { /* In: Body */ Payload *models.ErrorResponse `json:"body,omitempty"` }
AssignRoleInternalServerError An error has occurred while trying to fulfill the request. Most likely the ErrorResponse will contain more information about the error.
swagger:response assignRoleInternalServerError
func NewAssignRoleInternalServerError ¶
func NewAssignRoleInternalServerError() *AssignRoleInternalServerError
NewAssignRoleInternalServerError creates AssignRoleInternalServerError with default headers values
func (*AssignRoleInternalServerError) SetPayload ¶
func (o *AssignRoleInternalServerError) SetPayload(payload *models.ErrorResponse)
SetPayload sets the payload to the assign role internal server error response
func (*AssignRoleInternalServerError) WithPayload ¶
func (o *AssignRoleInternalServerError) WithPayload(payload *models.ErrorResponse) *AssignRoleInternalServerError
WithPayload adds the payload to the assign role internal server error response
func (*AssignRoleInternalServerError) WriteResponse ¶
func (o *AssignRoleInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type AssignRoleNotFound ¶
type AssignRoleNotFound struct { }
AssignRoleNotFound role or user is not found.
swagger:response assignRoleNotFound
func NewAssignRoleNotFound ¶
func NewAssignRoleNotFound() *AssignRoleNotFound
NewAssignRoleNotFound creates AssignRoleNotFound with default headers values
func (*AssignRoleNotFound) WriteResponse ¶
func (o *AssignRoleNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type AssignRoleOK ¶
type AssignRoleOK struct { }
AssignRoleOK Role assigned successfully
swagger:response assignRoleOK
func NewAssignRoleOK ¶
func NewAssignRoleOK() *AssignRoleOK
NewAssignRoleOK creates AssignRoleOK with default headers values
func (*AssignRoleOK) WriteResponse ¶
func (o *AssignRoleOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type AssignRoleParams ¶
type AssignRoleParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /* Required: true In: body */ Body AssignRoleBody /*user name Required: true In: path */ ID string }
AssignRoleParams contains all the bound params for the assign role operation typically these are obtained from a http.Request
swagger:parameters assignRole
func NewAssignRoleParams ¶
func NewAssignRoleParams() AssignRoleParams
NewAssignRoleParams creates a new AssignRoleParams object
There are no default values defined in the spec.
func (*AssignRoleParams) BindRequest ¶
func (o *AssignRoleParams) BindRequest(r *http.Request, route *middleware.MatchedRoute) error
BindRequest both binds and validates a request, it assumes that complex things implement a Validatable(strfmt.Registry) error interface for simple values it will use straight method calls.
To ensure default values, the struct must have been initialized with NewAssignRoleParams() beforehand.
type AssignRoleURL ¶
type AssignRoleURL struct { ID string // contains filtered or unexported fields }
AssignRoleURL generates an URL for the assign role operation
func (*AssignRoleURL) Build ¶
func (o *AssignRoleURL) Build() (*url.URL, error)
Build a url path and query string
func (*AssignRoleURL) BuildFull ¶
func (o *AssignRoleURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*AssignRoleURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*AssignRoleURL) SetBasePath ¶
func (o *AssignRoleURL) SetBasePath(bp string)
SetBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string
func (*AssignRoleURL) String ¶
func (o *AssignRoleURL) String() string
String returns the string representation of the path with query string
func (*AssignRoleURL) StringFull ¶
func (o *AssignRoleURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*AssignRoleURL) WithBasePath ¶
func (o *AssignRoleURL) WithBasePath(bp string) *AssignRoleURL
WithBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string
type AssignRoleUnauthorized ¶
type AssignRoleUnauthorized struct { }
AssignRoleUnauthorized Unauthorized or invalid credentials.
swagger:response assignRoleUnauthorized
func NewAssignRoleUnauthorized ¶
func NewAssignRoleUnauthorized() *AssignRoleUnauthorized
NewAssignRoleUnauthorized creates AssignRoleUnauthorized with default headers values
func (*AssignRoleUnauthorized) WriteResponse ¶
func (o *AssignRoleUnauthorized) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type CreateRole ¶
type CreateRole struct { Context *middleware.Context Handler CreateRoleHandler }
CreateRole swagger:route POST /authz/roles authz createRole
create new role
func NewCreateRole ¶
func NewCreateRole(ctx *middleware.Context, handler CreateRoleHandler) *CreateRole
NewCreateRole creates a new http.Handler for the create role operation
func (*CreateRole) ServeHTTP ¶
func (o *CreateRole) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type CreateRoleBadRequest ¶
type CreateRoleBadRequest struct { /* In: Body */ Payload *models.ErrorResponse `json:"body,omitempty"` }
CreateRoleBadRequest Malformed request.
swagger:response createRoleBadRequest
func NewCreateRoleBadRequest ¶
func NewCreateRoleBadRequest() *CreateRoleBadRequest
NewCreateRoleBadRequest creates CreateRoleBadRequest with default headers values
func (*CreateRoleBadRequest) SetPayload ¶
func (o *CreateRoleBadRequest) SetPayload(payload *models.ErrorResponse)
SetPayload sets the payload to the create role bad request response
func (*CreateRoleBadRequest) WithPayload ¶
func (o *CreateRoleBadRequest) WithPayload(payload *models.ErrorResponse) *CreateRoleBadRequest
WithPayload adds the payload to the create role bad request response
func (*CreateRoleBadRequest) WriteResponse ¶
func (o *CreateRoleBadRequest) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type CreateRoleConflict ¶
type CreateRoleConflict struct { /* In: Body */ Payload *models.ErrorResponse `json:"body,omitempty"` }
CreateRoleConflict Role already exists
swagger:response createRoleConflict
func NewCreateRoleConflict ¶
func NewCreateRoleConflict() *CreateRoleConflict
NewCreateRoleConflict creates CreateRoleConflict with default headers values
func (*CreateRoleConflict) SetPayload ¶
func (o *CreateRoleConflict) SetPayload(payload *models.ErrorResponse)
SetPayload sets the payload to the create role conflict response
func (*CreateRoleConflict) WithPayload ¶
func (o *CreateRoleConflict) WithPayload(payload *models.ErrorResponse) *CreateRoleConflict
WithPayload adds the payload to the create role conflict response
func (*CreateRoleConflict) WriteResponse ¶
func (o *CreateRoleConflict) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type CreateRoleCreated ¶
type CreateRoleCreated struct { }
CreateRoleCreated Role created successfully
swagger:response createRoleCreated
func NewCreateRoleCreated ¶
func NewCreateRoleCreated() *CreateRoleCreated
NewCreateRoleCreated creates CreateRoleCreated with default headers values
func (*CreateRoleCreated) WriteResponse ¶
func (o *CreateRoleCreated) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type CreateRoleForbidden ¶
type CreateRoleForbidden struct { /* In: Body */ Payload *models.ErrorResponse `json:"body,omitempty"` }
CreateRoleForbidden Forbidden
swagger:response createRoleForbidden
func NewCreateRoleForbidden ¶
func NewCreateRoleForbidden() *CreateRoleForbidden
NewCreateRoleForbidden creates CreateRoleForbidden with default headers values
func (*CreateRoleForbidden) SetPayload ¶
func (o *CreateRoleForbidden) SetPayload(payload *models.ErrorResponse)
SetPayload sets the payload to the create role forbidden response
func (*CreateRoleForbidden) WithPayload ¶
func (o *CreateRoleForbidden) WithPayload(payload *models.ErrorResponse) *CreateRoleForbidden
WithPayload adds the payload to the create role forbidden response
func (*CreateRoleForbidden) WriteResponse ¶
func (o *CreateRoleForbidden) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type CreateRoleHandler ¶
type CreateRoleHandler interface {
Handle(CreateRoleParams, *models.Principal) middleware.Responder
}
CreateRoleHandler interface for that can handle valid create role params
type CreateRoleHandlerFunc ¶
type CreateRoleHandlerFunc func(CreateRoleParams, *models.Principal) middleware.Responder
CreateRoleHandlerFunc turns a function with the right signature into a create role handler
func (CreateRoleHandlerFunc) Handle ¶
func (fn CreateRoleHandlerFunc) Handle(params CreateRoleParams, principal *models.Principal) middleware.Responder
Handle executing the request and returning a response
type CreateRoleInternalServerError ¶
type CreateRoleInternalServerError struct { /* In: Body */ Payload *models.ErrorResponse `json:"body,omitempty"` }
CreateRoleInternalServerError An error has occurred while trying to fulfill the request. Most likely the ErrorResponse will contain more information about the error.
swagger:response createRoleInternalServerError
func NewCreateRoleInternalServerError ¶
func NewCreateRoleInternalServerError() *CreateRoleInternalServerError
NewCreateRoleInternalServerError creates CreateRoleInternalServerError with default headers values
func (*CreateRoleInternalServerError) SetPayload ¶
func (o *CreateRoleInternalServerError) SetPayload(payload *models.ErrorResponse)
SetPayload sets the payload to the create role internal server error response
func (*CreateRoleInternalServerError) WithPayload ¶
func (o *CreateRoleInternalServerError) WithPayload(payload *models.ErrorResponse) *CreateRoleInternalServerError
WithPayload adds the payload to the create role internal server error response
func (*CreateRoleInternalServerError) WriteResponse ¶
func (o *CreateRoleInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type CreateRoleParams ¶
type CreateRoleParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /* Required: true In: body */ Body *models.Role }
CreateRoleParams contains all the bound params for the create role operation typically these are obtained from a http.Request
swagger:parameters createRole
func NewCreateRoleParams ¶
func NewCreateRoleParams() CreateRoleParams
NewCreateRoleParams creates a new CreateRoleParams object
There are no default values defined in the spec.
func (*CreateRoleParams) BindRequest ¶
func (o *CreateRoleParams) BindRequest(r *http.Request, route *middleware.MatchedRoute) error
BindRequest both binds and validates a request, it assumes that complex things implement a Validatable(strfmt.Registry) error interface for simple values it will use straight method calls.
To ensure default values, the struct must have been initialized with NewCreateRoleParams() beforehand.
type CreateRoleURL ¶
type CreateRoleURL struct {
// contains filtered or unexported fields
}
CreateRoleURL generates an URL for the create role operation
func (*CreateRoleURL) Build ¶
func (o *CreateRoleURL) Build() (*url.URL, error)
Build a url path and query string
func (*CreateRoleURL) BuildFull ¶
func (o *CreateRoleURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*CreateRoleURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*CreateRoleURL) SetBasePath ¶
func (o *CreateRoleURL) SetBasePath(bp string)
SetBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string
func (*CreateRoleURL) String ¶
func (o *CreateRoleURL) String() string
String returns the string representation of the path with query string
func (*CreateRoleURL) StringFull ¶
func (o *CreateRoleURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*CreateRoleURL) WithBasePath ¶
func (o *CreateRoleURL) WithBasePath(bp string) *CreateRoleURL
WithBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string
type CreateRoleUnauthorized ¶
type CreateRoleUnauthorized struct { }
CreateRoleUnauthorized Unauthorized or invalid credentials.
swagger:response createRoleUnauthorized
func NewCreateRoleUnauthorized ¶
func NewCreateRoleUnauthorized() *CreateRoleUnauthorized
NewCreateRoleUnauthorized creates CreateRoleUnauthorized with default headers values
func (*CreateRoleUnauthorized) WriteResponse ¶
func (o *CreateRoleUnauthorized) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type CreateRoleUnprocessableEntity ¶
type CreateRoleUnprocessableEntity struct { /* In: Body */ Payload *models.ErrorResponse `json:"body,omitempty"` }
CreateRoleUnprocessableEntity Request body is well-formed (i.e., syntactically correct), but semantically erroneous. Are you sure the class is defined in the configuration file?
swagger:response createRoleUnprocessableEntity
func NewCreateRoleUnprocessableEntity ¶
func NewCreateRoleUnprocessableEntity() *CreateRoleUnprocessableEntity
NewCreateRoleUnprocessableEntity creates CreateRoleUnprocessableEntity with default headers values
func (*CreateRoleUnprocessableEntity) SetPayload ¶
func (o *CreateRoleUnprocessableEntity) SetPayload(payload *models.ErrorResponse)
SetPayload sets the payload to the create role unprocessable entity response
func (*CreateRoleUnprocessableEntity) WithPayload ¶
func (o *CreateRoleUnprocessableEntity) WithPayload(payload *models.ErrorResponse) *CreateRoleUnprocessableEntity
WithPayload adds the payload to the create role unprocessable entity response
func (*CreateRoleUnprocessableEntity) WriteResponse ¶
func (o *CreateRoleUnprocessableEntity) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type DeleteRole ¶
type DeleteRole struct { Context *middleware.Context Handler DeleteRoleHandler }
DeleteRole swagger:route DELETE /authz/roles/{id} authz deleteRole
Delete role
func NewDeleteRole ¶
func NewDeleteRole(ctx *middleware.Context, handler DeleteRoleHandler) *DeleteRole
NewDeleteRole creates a new http.Handler for the delete role operation
func (*DeleteRole) ServeHTTP ¶
func (o *DeleteRole) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type DeleteRoleBadRequest ¶
type DeleteRoleBadRequest struct { /* In: Body */ Payload *models.ErrorResponse `json:"body,omitempty"` }
DeleteRoleBadRequest Bad request
swagger:response deleteRoleBadRequest
func NewDeleteRoleBadRequest ¶
func NewDeleteRoleBadRequest() *DeleteRoleBadRequest
NewDeleteRoleBadRequest creates DeleteRoleBadRequest with default headers values
func (*DeleteRoleBadRequest) SetPayload ¶
func (o *DeleteRoleBadRequest) SetPayload(payload *models.ErrorResponse)
SetPayload sets the payload to the delete role bad request response
func (*DeleteRoleBadRequest) WithPayload ¶
func (o *DeleteRoleBadRequest) WithPayload(payload *models.ErrorResponse) *DeleteRoleBadRequest
WithPayload adds the payload to the delete role bad request response
func (*DeleteRoleBadRequest) WriteResponse ¶
func (o *DeleteRoleBadRequest) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type DeleteRoleForbidden ¶
type DeleteRoleForbidden struct { /* In: Body */ Payload *models.ErrorResponse `json:"body,omitempty"` }
DeleteRoleForbidden Forbidden
swagger:response deleteRoleForbidden
func NewDeleteRoleForbidden ¶
func NewDeleteRoleForbidden() *DeleteRoleForbidden
NewDeleteRoleForbidden creates DeleteRoleForbidden with default headers values
func (*DeleteRoleForbidden) SetPayload ¶
func (o *DeleteRoleForbidden) SetPayload(payload *models.ErrorResponse)
SetPayload sets the payload to the delete role forbidden response
func (*DeleteRoleForbidden) WithPayload ¶
func (o *DeleteRoleForbidden) WithPayload(payload *models.ErrorResponse) *DeleteRoleForbidden
WithPayload adds the payload to the delete role forbidden response
func (*DeleteRoleForbidden) WriteResponse ¶
func (o *DeleteRoleForbidden) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type DeleteRoleHandler ¶
type DeleteRoleHandler interface {
Handle(DeleteRoleParams, *models.Principal) middleware.Responder
}
DeleteRoleHandler interface for that can handle valid delete role params
type DeleteRoleHandlerFunc ¶
type DeleteRoleHandlerFunc func(DeleteRoleParams, *models.Principal) middleware.Responder
DeleteRoleHandlerFunc turns a function with the right signature into a delete role handler
func (DeleteRoleHandlerFunc) Handle ¶
func (fn DeleteRoleHandlerFunc) Handle(params DeleteRoleParams, principal *models.Principal) middleware.Responder
Handle executing the request and returning a response
type DeleteRoleInternalServerError ¶
type DeleteRoleInternalServerError struct { /* In: Body */ Payload *models.ErrorResponse `json:"body,omitempty"` }
DeleteRoleInternalServerError An error has occurred while trying to fulfill the request. Most likely the ErrorResponse will contain more information about the error.
swagger:response deleteRoleInternalServerError
func NewDeleteRoleInternalServerError ¶
func NewDeleteRoleInternalServerError() *DeleteRoleInternalServerError
NewDeleteRoleInternalServerError creates DeleteRoleInternalServerError with default headers values
func (*DeleteRoleInternalServerError) SetPayload ¶
func (o *DeleteRoleInternalServerError) SetPayload(payload *models.ErrorResponse)
SetPayload sets the payload to the delete role internal server error response
func (*DeleteRoleInternalServerError) WithPayload ¶
func (o *DeleteRoleInternalServerError) WithPayload(payload *models.ErrorResponse) *DeleteRoleInternalServerError
WithPayload adds the payload to the delete role internal server error response
func (*DeleteRoleInternalServerError) WriteResponse ¶
func (o *DeleteRoleInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type DeleteRoleNoContent ¶
type DeleteRoleNoContent struct { }
DeleteRoleNoContent Successfully deleted.
swagger:response deleteRoleNoContent
func NewDeleteRoleNoContent ¶
func NewDeleteRoleNoContent() *DeleteRoleNoContent
NewDeleteRoleNoContent creates DeleteRoleNoContent with default headers values
func (*DeleteRoleNoContent) WriteResponse ¶
func (o *DeleteRoleNoContent) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type DeleteRoleParams ¶
type DeleteRoleParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /*role ID Required: true In: path */ ID string }
DeleteRoleParams contains all the bound params for the delete role operation typically these are obtained from a http.Request
swagger:parameters deleteRole
func NewDeleteRoleParams ¶
func NewDeleteRoleParams() DeleteRoleParams
NewDeleteRoleParams creates a new DeleteRoleParams object
There are no default values defined in the spec.
func (*DeleteRoleParams) BindRequest ¶
func (o *DeleteRoleParams) BindRequest(r *http.Request, route *middleware.MatchedRoute) error
BindRequest both binds and validates a request, it assumes that complex things implement a Validatable(strfmt.Registry) error interface for simple values it will use straight method calls.
To ensure default values, the struct must have been initialized with NewDeleteRoleParams() beforehand.
type DeleteRoleURL ¶
type DeleteRoleURL struct { ID string // contains filtered or unexported fields }
DeleteRoleURL generates an URL for the delete role operation
func (*DeleteRoleURL) Build ¶
func (o *DeleteRoleURL) Build() (*url.URL, error)
Build a url path and query string
func (*DeleteRoleURL) BuildFull ¶
func (o *DeleteRoleURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*DeleteRoleURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*DeleteRoleURL) SetBasePath ¶
func (o *DeleteRoleURL) SetBasePath(bp string)
SetBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string
func (*DeleteRoleURL) String ¶
func (o *DeleteRoleURL) String() string
String returns the string representation of the path with query string
func (*DeleteRoleURL) StringFull ¶
func (o *DeleteRoleURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*DeleteRoleURL) WithBasePath ¶
func (o *DeleteRoleURL) WithBasePath(bp string) *DeleteRoleURL
WithBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string
type DeleteRoleUnauthorized ¶
type DeleteRoleUnauthorized struct { }
DeleteRoleUnauthorized Unauthorized or invalid credentials.
swagger:response deleteRoleUnauthorized
func NewDeleteRoleUnauthorized ¶
func NewDeleteRoleUnauthorized() *DeleteRoleUnauthorized
NewDeleteRoleUnauthorized creates DeleteRoleUnauthorized with default headers values
func (*DeleteRoleUnauthorized) WriteResponse ¶
func (o *DeleteRoleUnauthorized) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetRole ¶
type GetRole struct { Context *middleware.Context Handler GetRoleHandler }
GetRole swagger:route GET /authz/roles/{id} authz getRole
Get a role
func NewGetRole ¶
func NewGetRole(ctx *middleware.Context, handler GetRoleHandler) *GetRole
NewGetRole creates a new http.Handler for the get role operation
type GetRoleBadRequest ¶
type GetRoleBadRequest struct { /* In: Body */ Payload *models.ErrorResponse `json:"body,omitempty"` }
GetRoleBadRequest Malformed request.
swagger:response getRoleBadRequest
func NewGetRoleBadRequest ¶
func NewGetRoleBadRequest() *GetRoleBadRequest
NewGetRoleBadRequest creates GetRoleBadRequest with default headers values
func (*GetRoleBadRequest) SetPayload ¶
func (o *GetRoleBadRequest) SetPayload(payload *models.ErrorResponse)
SetPayload sets the payload to the get role bad request response
func (*GetRoleBadRequest) WithPayload ¶
func (o *GetRoleBadRequest) WithPayload(payload *models.ErrorResponse) *GetRoleBadRequest
WithPayload adds the payload to the get role bad request response
func (*GetRoleBadRequest) WriteResponse ¶
func (o *GetRoleBadRequest) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetRoleForbidden ¶
type GetRoleForbidden struct { /* In: Body */ Payload *models.ErrorResponse `json:"body,omitempty"` }
GetRoleForbidden Forbidden
swagger:response getRoleForbidden
func NewGetRoleForbidden ¶
func NewGetRoleForbidden() *GetRoleForbidden
NewGetRoleForbidden creates GetRoleForbidden with default headers values
func (*GetRoleForbidden) SetPayload ¶
func (o *GetRoleForbidden) SetPayload(payload *models.ErrorResponse)
SetPayload sets the payload to the get role forbidden response
func (*GetRoleForbidden) WithPayload ¶
func (o *GetRoleForbidden) WithPayload(payload *models.ErrorResponse) *GetRoleForbidden
WithPayload adds the payload to the get role forbidden response
func (*GetRoleForbidden) WriteResponse ¶
func (o *GetRoleForbidden) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetRoleHandler ¶
type GetRoleHandler interface {
Handle(GetRoleParams, *models.Principal) middleware.Responder
}
GetRoleHandler interface for that can handle valid get role params
type GetRoleHandlerFunc ¶
type GetRoleHandlerFunc func(GetRoleParams, *models.Principal) middleware.Responder
GetRoleHandlerFunc turns a function with the right signature into a get role handler
func (GetRoleHandlerFunc) Handle ¶
func (fn GetRoleHandlerFunc) Handle(params GetRoleParams, principal *models.Principal) middleware.Responder
Handle executing the request and returning a response
type GetRoleInternalServerError ¶
type GetRoleInternalServerError struct { /* In: Body */ Payload *models.ErrorResponse `json:"body,omitempty"` }
GetRoleInternalServerError An error has occurred while trying to fulfill the request. Most likely the ErrorResponse will contain more information about the error.
swagger:response getRoleInternalServerError
func NewGetRoleInternalServerError ¶
func NewGetRoleInternalServerError() *GetRoleInternalServerError
NewGetRoleInternalServerError creates GetRoleInternalServerError with default headers values
func (*GetRoleInternalServerError) SetPayload ¶
func (o *GetRoleInternalServerError) SetPayload(payload *models.ErrorResponse)
SetPayload sets the payload to the get role internal server error response
func (*GetRoleInternalServerError) WithPayload ¶
func (o *GetRoleInternalServerError) WithPayload(payload *models.ErrorResponse) *GetRoleInternalServerError
WithPayload adds the payload to the get role internal server error response
func (*GetRoleInternalServerError) WriteResponse ¶
func (o *GetRoleInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetRoleNotFound ¶
type GetRoleNotFound struct { }
GetRoleNotFound no role found
swagger:response getRoleNotFound
func NewGetRoleNotFound ¶
func NewGetRoleNotFound() *GetRoleNotFound
NewGetRoleNotFound creates GetRoleNotFound with default headers values
func (*GetRoleNotFound) WriteResponse ¶
func (o *GetRoleNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetRoleOK ¶
GetRoleOK Successful response.
swagger:response getRoleOK
func NewGetRoleOK ¶
func NewGetRoleOK() *GetRoleOK
NewGetRoleOK creates GetRoleOK with default headers values
func (*GetRoleOK) SetPayload ¶
SetPayload sets the payload to the get role o k response
func (*GetRoleOK) WithPayload ¶
WithPayload adds the payload to the get role o k response
func (*GetRoleOK) WriteResponse ¶
func (o *GetRoleOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetRoleParams ¶
type GetRoleParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /*role ID Required: true In: path */ ID string }
GetRoleParams contains all the bound params for the get role operation typically these are obtained from a http.Request
swagger:parameters getRole
func NewGetRoleParams ¶
func NewGetRoleParams() GetRoleParams
NewGetRoleParams creates a new GetRoleParams object
There are no default values defined in the spec.
func (*GetRoleParams) BindRequest ¶
func (o *GetRoleParams) BindRequest(r *http.Request, route *middleware.MatchedRoute) error
BindRequest both binds and validates a request, it assumes that complex things implement a Validatable(strfmt.Registry) error interface for simple values it will use straight method calls.
To ensure default values, the struct must have been initialized with NewGetRoleParams() beforehand.
type GetRoleURL ¶
type GetRoleURL struct { ID string // contains filtered or unexported fields }
GetRoleURL generates an URL for the get role operation
func (*GetRoleURL) Build ¶
func (o *GetRoleURL) Build() (*url.URL, error)
Build a url path and query string
func (*GetRoleURL) BuildFull ¶
func (o *GetRoleURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*GetRoleURL) SetBasePath ¶
func (o *GetRoleURL) SetBasePath(bp string)
SetBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string
func (*GetRoleURL) String ¶
func (o *GetRoleURL) String() string
String returns the string representation of the path with query string
func (*GetRoleURL) StringFull ¶
func (o *GetRoleURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*GetRoleURL) WithBasePath ¶
func (o *GetRoleURL) WithBasePath(bp string) *GetRoleURL
WithBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string
type GetRoleUnauthorized ¶
type GetRoleUnauthorized struct { }
GetRoleUnauthorized Unauthorized or invalid credentials.
swagger:response getRoleUnauthorized
func NewGetRoleUnauthorized ¶
func NewGetRoleUnauthorized() *GetRoleUnauthorized
NewGetRoleUnauthorized creates GetRoleUnauthorized with default headers values
func (*GetRoleUnauthorized) WriteResponse ¶
func (o *GetRoleUnauthorized) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetRoles ¶
type GetRoles struct { Context *middleware.Context Handler GetRolesHandler }
GetRoles swagger:route GET /authz/roles authz getRoles
Get all roles
func NewGetRoles ¶
func NewGetRoles(ctx *middleware.Context, handler GetRolesHandler) *GetRoles
NewGetRoles creates a new http.Handler for the get roles operation
type GetRolesBadRequest ¶
type GetRolesBadRequest struct { /* In: Body */ Payload *models.ErrorResponse `json:"body,omitempty"` }
GetRolesBadRequest Malformed request.
swagger:response getRolesBadRequest
func NewGetRolesBadRequest ¶
func NewGetRolesBadRequest() *GetRolesBadRequest
NewGetRolesBadRequest creates GetRolesBadRequest with default headers values
func (*GetRolesBadRequest) SetPayload ¶
func (o *GetRolesBadRequest) SetPayload(payload *models.ErrorResponse)
SetPayload sets the payload to the get roles bad request response
func (*GetRolesBadRequest) WithPayload ¶
func (o *GetRolesBadRequest) WithPayload(payload *models.ErrorResponse) *GetRolesBadRequest
WithPayload adds the payload to the get roles bad request response
func (*GetRolesBadRequest) WriteResponse ¶
func (o *GetRolesBadRequest) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetRolesForOwnUser ¶
type GetRolesForOwnUser struct { Context *middleware.Context Handler GetRolesForOwnUserHandler }
GetRolesForOwnUser swagger:route GET /authz/users/own-roles authz getRolesForOwnUser
get roles assigned to own user
func NewGetRolesForOwnUser ¶
func NewGetRolesForOwnUser(ctx *middleware.Context, handler GetRolesForOwnUserHandler) *GetRolesForOwnUser
NewGetRolesForOwnUser creates a new http.Handler for the get roles for own user operation
func (*GetRolesForOwnUser) ServeHTTP ¶
func (o *GetRolesForOwnUser) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type GetRolesForOwnUserHandler ¶
type GetRolesForOwnUserHandler interface {
Handle(GetRolesForOwnUserParams, *models.Principal) middleware.Responder
}
GetRolesForOwnUserHandler interface for that can handle valid get roles for own user params
type GetRolesForOwnUserHandlerFunc ¶
type GetRolesForOwnUserHandlerFunc func(GetRolesForOwnUserParams, *models.Principal) middleware.Responder
GetRolesForOwnUserHandlerFunc turns a function with the right signature into a get roles for own user handler
func (GetRolesForOwnUserHandlerFunc) Handle ¶
func (fn GetRolesForOwnUserHandlerFunc) Handle(params GetRolesForOwnUserParams, principal *models.Principal) middleware.Responder
Handle executing the request and returning a response
type GetRolesForOwnUserInternalServerError ¶
type GetRolesForOwnUserInternalServerError struct { /* In: Body */ Payload *models.ErrorResponse `json:"body,omitempty"` }
GetRolesForOwnUserInternalServerError An error has occurred while trying to fulfill the request. Most likely the ErrorResponse will contain more information about the error.
swagger:response getRolesForOwnUserInternalServerError
func NewGetRolesForOwnUserInternalServerError ¶
func NewGetRolesForOwnUserInternalServerError() *GetRolesForOwnUserInternalServerError
NewGetRolesForOwnUserInternalServerError creates GetRolesForOwnUserInternalServerError with default headers values
func (*GetRolesForOwnUserInternalServerError) SetPayload ¶
func (o *GetRolesForOwnUserInternalServerError) SetPayload(payload *models.ErrorResponse)
SetPayload sets the payload to the get roles for own user internal server error response
func (*GetRolesForOwnUserInternalServerError) WithPayload ¶
func (o *GetRolesForOwnUserInternalServerError) WithPayload(payload *models.ErrorResponse) *GetRolesForOwnUserInternalServerError
WithPayload adds the payload to the get roles for own user internal server error response
func (*GetRolesForOwnUserInternalServerError) WriteResponse ¶
func (o *GetRolesForOwnUserInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetRolesForOwnUserOK ¶
type GetRolesForOwnUserOK struct { /* In: Body */ Payload models.RolesListResponse `json:"body,omitempty"` }
GetRolesForOwnUserOK Role assigned to own users
swagger:response getRolesForOwnUserOK
func NewGetRolesForOwnUserOK ¶
func NewGetRolesForOwnUserOK() *GetRolesForOwnUserOK
NewGetRolesForOwnUserOK creates GetRolesForOwnUserOK with default headers values
func (*GetRolesForOwnUserOK) SetPayload ¶
func (o *GetRolesForOwnUserOK) SetPayload(payload models.RolesListResponse)
SetPayload sets the payload to the get roles for own user o k response
func (*GetRolesForOwnUserOK) WithPayload ¶
func (o *GetRolesForOwnUserOK) WithPayload(payload models.RolesListResponse) *GetRolesForOwnUserOK
WithPayload adds the payload to the get roles for own user o k response
func (*GetRolesForOwnUserOK) WriteResponse ¶
func (o *GetRolesForOwnUserOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetRolesForOwnUserParams ¶
type GetRolesForOwnUserParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` }
GetRolesForOwnUserParams contains all the bound params for the get roles for own user operation typically these are obtained from a http.Request
swagger:parameters getRolesForOwnUser
func NewGetRolesForOwnUserParams ¶
func NewGetRolesForOwnUserParams() GetRolesForOwnUserParams
NewGetRolesForOwnUserParams creates a new GetRolesForOwnUserParams object
There are no default values defined in the spec.
func (*GetRolesForOwnUserParams) BindRequest ¶
func (o *GetRolesForOwnUserParams) BindRequest(r *http.Request, route *middleware.MatchedRoute) error
BindRequest both binds and validates a request, it assumes that complex things implement a Validatable(strfmt.Registry) error interface for simple values it will use straight method calls.
To ensure default values, the struct must have been initialized with NewGetRolesForOwnUserParams() beforehand.
type GetRolesForOwnUserURL ¶
type GetRolesForOwnUserURL struct {
// contains filtered or unexported fields
}
GetRolesForOwnUserURL generates an URL for the get roles for own user operation
func (*GetRolesForOwnUserURL) Build ¶
func (o *GetRolesForOwnUserURL) Build() (*url.URL, error)
Build a url path and query string
func (*GetRolesForOwnUserURL) BuildFull ¶
func (o *GetRolesForOwnUserURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*GetRolesForOwnUserURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*GetRolesForOwnUserURL) SetBasePath ¶
func (o *GetRolesForOwnUserURL) SetBasePath(bp string)
SetBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string
func (*GetRolesForOwnUserURL) String ¶
func (o *GetRolesForOwnUserURL) String() string
String returns the string representation of the path with query string
func (*GetRolesForOwnUserURL) StringFull ¶
func (o *GetRolesForOwnUserURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*GetRolesForOwnUserURL) WithBasePath ¶
func (o *GetRolesForOwnUserURL) WithBasePath(bp string) *GetRolesForOwnUserURL
WithBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string
type GetRolesForOwnUserUnauthorized ¶
type GetRolesForOwnUserUnauthorized struct { }
GetRolesForOwnUserUnauthorized Unauthorized or invalid credentials.
swagger:response getRolesForOwnUserUnauthorized
func NewGetRolesForOwnUserUnauthorized ¶
func NewGetRolesForOwnUserUnauthorized() *GetRolesForOwnUserUnauthorized
NewGetRolesForOwnUserUnauthorized creates GetRolesForOwnUserUnauthorized with default headers values
func (*GetRolesForOwnUserUnauthorized) WriteResponse ¶
func (o *GetRolesForOwnUserUnauthorized) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetRolesForUser ¶
type GetRolesForUser struct { Context *middleware.Context Handler GetRolesForUserHandler }
GetRolesForUser swagger:route GET /authz/users/{id}/roles authz getRolesForUser
get roles assigned to user
func NewGetRolesForUser ¶
func NewGetRolesForUser(ctx *middleware.Context, handler GetRolesForUserHandler) *GetRolesForUser
NewGetRolesForUser creates a new http.Handler for the get roles for user operation
func (*GetRolesForUser) ServeHTTP ¶
func (o *GetRolesForUser) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type GetRolesForUserBadRequest ¶
type GetRolesForUserBadRequest struct { /* In: Body */ Payload *models.ErrorResponse `json:"body,omitempty"` }
GetRolesForUserBadRequest Bad request
swagger:response getRolesForUserBadRequest
func NewGetRolesForUserBadRequest ¶
func NewGetRolesForUserBadRequest() *GetRolesForUserBadRequest
NewGetRolesForUserBadRequest creates GetRolesForUserBadRequest with default headers values
func (*GetRolesForUserBadRequest) SetPayload ¶
func (o *GetRolesForUserBadRequest) SetPayload(payload *models.ErrorResponse)
SetPayload sets the payload to the get roles for user bad request response
func (*GetRolesForUserBadRequest) WithPayload ¶
func (o *GetRolesForUserBadRequest) WithPayload(payload *models.ErrorResponse) *GetRolesForUserBadRequest
WithPayload adds the payload to the get roles for user bad request response
func (*GetRolesForUserBadRequest) WriteResponse ¶
func (o *GetRolesForUserBadRequest) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetRolesForUserForbidden ¶
type GetRolesForUserForbidden struct { /* In: Body */ Payload *models.ErrorResponse `json:"body,omitempty"` }
GetRolesForUserForbidden Forbidden
swagger:response getRolesForUserForbidden
func NewGetRolesForUserForbidden ¶
func NewGetRolesForUserForbidden() *GetRolesForUserForbidden
NewGetRolesForUserForbidden creates GetRolesForUserForbidden with default headers values
func (*GetRolesForUserForbidden) SetPayload ¶
func (o *GetRolesForUserForbidden) SetPayload(payload *models.ErrorResponse)
SetPayload sets the payload to the get roles for user forbidden response
func (*GetRolesForUserForbidden) WithPayload ¶
func (o *GetRolesForUserForbidden) WithPayload(payload *models.ErrorResponse) *GetRolesForUserForbidden
WithPayload adds the payload to the get roles for user forbidden response
func (*GetRolesForUserForbidden) WriteResponse ¶
func (o *GetRolesForUserForbidden) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetRolesForUserHandler ¶
type GetRolesForUserHandler interface {
Handle(GetRolesForUserParams, *models.Principal) middleware.Responder
}
GetRolesForUserHandler interface for that can handle valid get roles for user params
type GetRolesForUserHandlerFunc ¶
type GetRolesForUserHandlerFunc func(GetRolesForUserParams, *models.Principal) middleware.Responder
GetRolesForUserHandlerFunc turns a function with the right signature into a get roles for user handler
func (GetRolesForUserHandlerFunc) Handle ¶
func (fn GetRolesForUserHandlerFunc) Handle(params GetRolesForUserParams, principal *models.Principal) middleware.Responder
Handle executing the request and returning a response
type GetRolesForUserInternalServerError ¶
type GetRolesForUserInternalServerError struct { /* In: Body */ Payload *models.ErrorResponse `json:"body,omitempty"` }
GetRolesForUserInternalServerError An error has occurred while trying to fulfill the request. Most likely the ErrorResponse will contain more information about the error.
swagger:response getRolesForUserInternalServerError
func NewGetRolesForUserInternalServerError ¶
func NewGetRolesForUserInternalServerError() *GetRolesForUserInternalServerError
NewGetRolesForUserInternalServerError creates GetRolesForUserInternalServerError with default headers values
func (*GetRolesForUserInternalServerError) SetPayload ¶
func (o *GetRolesForUserInternalServerError) SetPayload(payload *models.ErrorResponse)
SetPayload sets the payload to the get roles for user internal server error response
func (*GetRolesForUserInternalServerError) WithPayload ¶
func (o *GetRolesForUserInternalServerError) WithPayload(payload *models.ErrorResponse) *GetRolesForUserInternalServerError
WithPayload adds the payload to the get roles for user internal server error response
func (*GetRolesForUserInternalServerError) WriteResponse ¶
func (o *GetRolesForUserInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetRolesForUserNotFound ¶
type GetRolesForUserNotFound struct { }
GetRolesForUserNotFound no role found for user
swagger:response getRolesForUserNotFound
func NewGetRolesForUserNotFound ¶
func NewGetRolesForUserNotFound() *GetRolesForUserNotFound
NewGetRolesForUserNotFound creates GetRolesForUserNotFound with default headers values
func (*GetRolesForUserNotFound) WriteResponse ¶
func (o *GetRolesForUserNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetRolesForUserOK ¶
type GetRolesForUserOK struct { /* In: Body */ Payload models.RolesListResponse `json:"body,omitempty"` }
GetRolesForUserOK Role assigned users
swagger:response getRolesForUserOK
func NewGetRolesForUserOK ¶
func NewGetRolesForUserOK() *GetRolesForUserOK
NewGetRolesForUserOK creates GetRolesForUserOK with default headers values
func (*GetRolesForUserOK) SetPayload ¶
func (o *GetRolesForUserOK) SetPayload(payload models.RolesListResponse)
SetPayload sets the payload to the get roles for user o k response
func (*GetRolesForUserOK) WithPayload ¶
func (o *GetRolesForUserOK) WithPayload(payload models.RolesListResponse) *GetRolesForUserOK
WithPayload adds the payload to the get roles for user o k response
func (*GetRolesForUserOK) WriteResponse ¶
func (o *GetRolesForUserOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetRolesForUserParams ¶
type GetRolesForUserParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /*user name Required: true In: path */ ID string }
GetRolesForUserParams contains all the bound params for the get roles for user operation typically these are obtained from a http.Request
swagger:parameters getRolesForUser
func NewGetRolesForUserParams ¶
func NewGetRolesForUserParams() GetRolesForUserParams
NewGetRolesForUserParams creates a new GetRolesForUserParams object
There are no default values defined in the spec.
func (*GetRolesForUserParams) BindRequest ¶
func (o *GetRolesForUserParams) BindRequest(r *http.Request, route *middleware.MatchedRoute) error
BindRequest both binds and validates a request, it assumes that complex things implement a Validatable(strfmt.Registry) error interface for simple values it will use straight method calls.
To ensure default values, the struct must have been initialized with NewGetRolesForUserParams() beforehand.
type GetRolesForUserURL ¶
type GetRolesForUserURL struct { ID string // contains filtered or unexported fields }
GetRolesForUserURL generates an URL for the get roles for user operation
func (*GetRolesForUserURL) Build ¶
func (o *GetRolesForUserURL) Build() (*url.URL, error)
Build a url path and query string
func (*GetRolesForUserURL) BuildFull ¶
func (o *GetRolesForUserURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*GetRolesForUserURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*GetRolesForUserURL) SetBasePath ¶
func (o *GetRolesForUserURL) SetBasePath(bp string)
SetBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string
func (*GetRolesForUserURL) String ¶
func (o *GetRolesForUserURL) String() string
String returns the string representation of the path with query string
func (*GetRolesForUserURL) StringFull ¶
func (o *GetRolesForUserURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*GetRolesForUserURL) WithBasePath ¶
func (o *GetRolesForUserURL) WithBasePath(bp string) *GetRolesForUserURL
WithBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string
type GetRolesForUserUnauthorized ¶
type GetRolesForUserUnauthorized struct { }
GetRolesForUserUnauthorized Unauthorized or invalid credentials.
swagger:response getRolesForUserUnauthorized
func NewGetRolesForUserUnauthorized ¶
func NewGetRolesForUserUnauthorized() *GetRolesForUserUnauthorized
NewGetRolesForUserUnauthorized creates GetRolesForUserUnauthorized with default headers values
func (*GetRolesForUserUnauthorized) WriteResponse ¶
func (o *GetRolesForUserUnauthorized) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetRolesForbidden ¶
type GetRolesForbidden struct { /* In: Body */ Payload *models.ErrorResponse `json:"body,omitempty"` }
GetRolesForbidden Forbidden
swagger:response getRolesForbidden
func NewGetRolesForbidden ¶
func NewGetRolesForbidden() *GetRolesForbidden
NewGetRolesForbidden creates GetRolesForbidden with default headers values
func (*GetRolesForbidden) SetPayload ¶
func (o *GetRolesForbidden) SetPayload(payload *models.ErrorResponse)
SetPayload sets the payload to the get roles forbidden response
func (*GetRolesForbidden) WithPayload ¶
func (o *GetRolesForbidden) WithPayload(payload *models.ErrorResponse) *GetRolesForbidden
WithPayload adds the payload to the get roles forbidden response
func (*GetRolesForbidden) WriteResponse ¶
func (o *GetRolesForbidden) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetRolesHandler ¶
type GetRolesHandler interface {
Handle(GetRolesParams, *models.Principal) middleware.Responder
}
GetRolesHandler interface for that can handle valid get roles params
type GetRolesHandlerFunc ¶
type GetRolesHandlerFunc func(GetRolesParams, *models.Principal) middleware.Responder
GetRolesHandlerFunc turns a function with the right signature into a get roles handler
func (GetRolesHandlerFunc) Handle ¶
func (fn GetRolesHandlerFunc) Handle(params GetRolesParams, principal *models.Principal) middleware.Responder
Handle executing the request and returning a response
type GetRolesInternalServerError ¶
type GetRolesInternalServerError struct { /* In: Body */ Payload *models.ErrorResponse `json:"body,omitempty"` }
GetRolesInternalServerError An error has occurred while trying to fulfill the request. Most likely the ErrorResponse will contain more information about the error.
swagger:response getRolesInternalServerError
func NewGetRolesInternalServerError ¶
func NewGetRolesInternalServerError() *GetRolesInternalServerError
NewGetRolesInternalServerError creates GetRolesInternalServerError with default headers values
func (*GetRolesInternalServerError) SetPayload ¶
func (o *GetRolesInternalServerError) SetPayload(payload *models.ErrorResponse)
SetPayload sets the payload to the get roles internal server error response
func (*GetRolesInternalServerError) WithPayload ¶
func (o *GetRolesInternalServerError) WithPayload(payload *models.ErrorResponse) *GetRolesInternalServerError
WithPayload adds the payload to the get roles internal server error response
func (*GetRolesInternalServerError) WriteResponse ¶
func (o *GetRolesInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetRolesOK ¶
type GetRolesOK struct { /* In: Body */ Payload models.RolesListResponse `json:"body,omitempty"` }
GetRolesOK Successful response.
swagger:response getRolesOK
func NewGetRolesOK ¶
func NewGetRolesOK() *GetRolesOK
NewGetRolesOK creates GetRolesOK with default headers values
func (*GetRolesOK) SetPayload ¶
func (o *GetRolesOK) SetPayload(payload models.RolesListResponse)
SetPayload sets the payload to the get roles o k response
func (*GetRolesOK) WithPayload ¶
func (o *GetRolesOK) WithPayload(payload models.RolesListResponse) *GetRolesOK
WithPayload adds the payload to the get roles o k response
func (*GetRolesOK) WriteResponse ¶
func (o *GetRolesOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetRolesParams ¶
GetRolesParams contains all the bound params for the get roles operation typically these are obtained from a http.Request
swagger:parameters getRoles
func NewGetRolesParams ¶
func NewGetRolesParams() GetRolesParams
NewGetRolesParams creates a new GetRolesParams object
There are no default values defined in the spec.
func (*GetRolesParams) BindRequest ¶
func (o *GetRolesParams) BindRequest(r *http.Request, route *middleware.MatchedRoute) error
BindRequest both binds and validates a request, it assumes that complex things implement a Validatable(strfmt.Registry) error interface for simple values it will use straight method calls.
To ensure default values, the struct must have been initialized with NewGetRolesParams() beforehand.
type GetRolesURL ¶
type GetRolesURL struct {
// contains filtered or unexported fields
}
GetRolesURL generates an URL for the get roles operation
func (*GetRolesURL) Build ¶
func (o *GetRolesURL) Build() (*url.URL, error)
Build a url path and query string
func (*GetRolesURL) BuildFull ¶
func (o *GetRolesURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*GetRolesURL) SetBasePath ¶
func (o *GetRolesURL) SetBasePath(bp string)
SetBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string
func (*GetRolesURL) String ¶
func (o *GetRolesURL) String() string
String returns the string representation of the path with query string
func (*GetRolesURL) StringFull ¶
func (o *GetRolesURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*GetRolesURL) WithBasePath ¶
func (o *GetRolesURL) WithBasePath(bp string) *GetRolesURL
WithBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string
type GetRolesUnauthorized ¶
type GetRolesUnauthorized struct { }
GetRolesUnauthorized Unauthorized or invalid credentials.
swagger:response getRolesUnauthorized
func NewGetRolesUnauthorized ¶
func NewGetRolesUnauthorized() *GetRolesUnauthorized
NewGetRolesUnauthorized creates GetRolesUnauthorized with default headers values
func (*GetRolesUnauthorized) WriteResponse ¶
func (o *GetRolesUnauthorized) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetUsersForRole ¶
type GetUsersForRole struct { Context *middleware.Context Handler GetUsersForRoleHandler }
GetUsersForRole swagger:route GET /authz/roles/{id}/users authz getUsersForRole
get users or a keys assigned to role
func NewGetUsersForRole ¶
func NewGetUsersForRole(ctx *middleware.Context, handler GetUsersForRoleHandler) *GetUsersForRole
NewGetUsersForRole creates a new http.Handler for the get users for role operation
func (*GetUsersForRole) ServeHTTP ¶
func (o *GetUsersForRole) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type GetUsersForRoleBadRequest ¶
type GetUsersForRoleBadRequest struct { /* In: Body */ Payload *models.ErrorResponse `json:"body,omitempty"` }
GetUsersForRoleBadRequest Bad request
swagger:response getUsersForRoleBadRequest
func NewGetUsersForRoleBadRequest ¶
func NewGetUsersForRoleBadRequest() *GetUsersForRoleBadRequest
NewGetUsersForRoleBadRequest creates GetUsersForRoleBadRequest with default headers values
func (*GetUsersForRoleBadRequest) SetPayload ¶
func (o *GetUsersForRoleBadRequest) SetPayload(payload *models.ErrorResponse)
SetPayload sets the payload to the get users for role bad request response
func (*GetUsersForRoleBadRequest) WithPayload ¶
func (o *GetUsersForRoleBadRequest) WithPayload(payload *models.ErrorResponse) *GetUsersForRoleBadRequest
WithPayload adds the payload to the get users for role bad request response
func (*GetUsersForRoleBadRequest) WriteResponse ¶
func (o *GetUsersForRoleBadRequest) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetUsersForRoleForbidden ¶
type GetUsersForRoleForbidden struct { /* In: Body */ Payload *models.ErrorResponse `json:"body,omitempty"` }
GetUsersForRoleForbidden Forbidden
swagger:response getUsersForRoleForbidden
func NewGetUsersForRoleForbidden ¶
func NewGetUsersForRoleForbidden() *GetUsersForRoleForbidden
NewGetUsersForRoleForbidden creates GetUsersForRoleForbidden with default headers values
func (*GetUsersForRoleForbidden) SetPayload ¶
func (o *GetUsersForRoleForbidden) SetPayload(payload *models.ErrorResponse)
SetPayload sets the payload to the get users for role forbidden response
func (*GetUsersForRoleForbidden) WithPayload ¶
func (o *GetUsersForRoleForbidden) WithPayload(payload *models.ErrorResponse) *GetUsersForRoleForbidden
WithPayload adds the payload to the get users for role forbidden response
func (*GetUsersForRoleForbidden) WriteResponse ¶
func (o *GetUsersForRoleForbidden) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetUsersForRoleHandler ¶
type GetUsersForRoleHandler interface {
Handle(GetUsersForRoleParams, *models.Principal) middleware.Responder
}
GetUsersForRoleHandler interface for that can handle valid get users for role params
type GetUsersForRoleHandlerFunc ¶
type GetUsersForRoleHandlerFunc func(GetUsersForRoleParams, *models.Principal) middleware.Responder
GetUsersForRoleHandlerFunc turns a function with the right signature into a get users for role handler
func (GetUsersForRoleHandlerFunc) Handle ¶
func (fn GetUsersForRoleHandlerFunc) Handle(params GetUsersForRoleParams, principal *models.Principal) middleware.Responder
Handle executing the request and returning a response
type GetUsersForRoleInternalServerError ¶
type GetUsersForRoleInternalServerError struct { /* In: Body */ Payload *models.ErrorResponse `json:"body,omitempty"` }
GetUsersForRoleInternalServerError An error has occurred while trying to fulfill the request. Most likely the ErrorResponse will contain more information about the error.
swagger:response getUsersForRoleInternalServerError
func NewGetUsersForRoleInternalServerError ¶
func NewGetUsersForRoleInternalServerError() *GetUsersForRoleInternalServerError
NewGetUsersForRoleInternalServerError creates GetUsersForRoleInternalServerError with default headers values
func (*GetUsersForRoleInternalServerError) SetPayload ¶
func (o *GetUsersForRoleInternalServerError) SetPayload(payload *models.ErrorResponse)
SetPayload sets the payload to the get users for role internal server error response
func (*GetUsersForRoleInternalServerError) WithPayload ¶
func (o *GetUsersForRoleInternalServerError) WithPayload(payload *models.ErrorResponse) *GetUsersForRoleInternalServerError
WithPayload adds the payload to the get users for role internal server error response
func (*GetUsersForRoleInternalServerError) WriteResponse ¶
func (o *GetUsersForRoleInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetUsersForRoleNotFound ¶
type GetUsersForRoleNotFound struct { }
GetUsersForRoleNotFound no role found for user
swagger:response getUsersForRoleNotFound
func NewGetUsersForRoleNotFound ¶
func NewGetUsersForRoleNotFound() *GetUsersForRoleNotFound
NewGetUsersForRoleNotFound creates GetUsersForRoleNotFound with default headers values
func (*GetUsersForRoleNotFound) WriteResponse ¶
func (o *GetUsersForRoleNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetUsersForRoleOK ¶
type GetUsersForRoleOK struct { /* In: Body */ Payload []string `json:"body,omitempty"` }
GetUsersForRoleOK Users assigned to this role
swagger:response getUsersForRoleOK
func NewGetUsersForRoleOK ¶
func NewGetUsersForRoleOK() *GetUsersForRoleOK
NewGetUsersForRoleOK creates GetUsersForRoleOK with default headers values
func (*GetUsersForRoleOK) SetPayload ¶
func (o *GetUsersForRoleOK) SetPayload(payload []string)
SetPayload sets the payload to the get users for role o k response
func (*GetUsersForRoleOK) WithPayload ¶
func (o *GetUsersForRoleOK) WithPayload(payload []string) *GetUsersForRoleOK
WithPayload adds the payload to the get users for role o k response
func (*GetUsersForRoleOK) WriteResponse ¶
func (o *GetUsersForRoleOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetUsersForRoleParams ¶
type GetUsersForRoleParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /*role ID Required: true In: path */ ID string }
GetUsersForRoleParams contains all the bound params for the get users for role operation typically these are obtained from a http.Request
swagger:parameters getUsersForRole
func NewGetUsersForRoleParams ¶
func NewGetUsersForRoleParams() GetUsersForRoleParams
NewGetUsersForRoleParams creates a new GetUsersForRoleParams object
There are no default values defined in the spec.
func (*GetUsersForRoleParams) BindRequest ¶
func (o *GetUsersForRoleParams) BindRequest(r *http.Request, route *middleware.MatchedRoute) error
BindRequest both binds and validates a request, it assumes that complex things implement a Validatable(strfmt.Registry) error interface for simple values it will use straight method calls.
To ensure default values, the struct must have been initialized with NewGetUsersForRoleParams() beforehand.
type GetUsersForRoleURL ¶
type GetUsersForRoleURL struct { ID string // contains filtered or unexported fields }
GetUsersForRoleURL generates an URL for the get users for role operation
func (*GetUsersForRoleURL) Build ¶
func (o *GetUsersForRoleURL) Build() (*url.URL, error)
Build a url path and query string
func (*GetUsersForRoleURL) BuildFull ¶
func (o *GetUsersForRoleURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*GetUsersForRoleURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*GetUsersForRoleURL) SetBasePath ¶
func (o *GetUsersForRoleURL) SetBasePath(bp string)
SetBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string
func (*GetUsersForRoleURL) String ¶
func (o *GetUsersForRoleURL) String() string
String returns the string representation of the path with query string
func (*GetUsersForRoleURL) StringFull ¶
func (o *GetUsersForRoleURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*GetUsersForRoleURL) WithBasePath ¶
func (o *GetUsersForRoleURL) WithBasePath(bp string) *GetUsersForRoleURL
WithBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string
type GetUsersForRoleUnauthorized ¶
type GetUsersForRoleUnauthorized struct { }
GetUsersForRoleUnauthorized Unauthorized or invalid credentials.
swagger:response getUsersForRoleUnauthorized
func NewGetUsersForRoleUnauthorized ¶
func NewGetUsersForRoleUnauthorized() *GetUsersForRoleUnauthorized
NewGetUsersForRoleUnauthorized creates GetUsersForRoleUnauthorized with default headers values
func (*GetUsersForRoleUnauthorized) WriteResponse ¶
func (o *GetUsersForRoleUnauthorized) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type RemovePermissions ¶
type RemovePermissions struct { Context *middleware.Context Handler RemovePermissionsHandler }
RemovePermissions swagger:route POST /authz/roles/remove-permissions authz removePermissions
Remove permissions from a role. If this results in an empty role, the role will be deleted.
func NewRemovePermissions ¶
func NewRemovePermissions(ctx *middleware.Context, handler RemovePermissionsHandler) *RemovePermissions
NewRemovePermissions creates a new http.Handler for the remove permissions operation
func (*RemovePermissions) ServeHTTP ¶
func (o *RemovePermissions) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type RemovePermissionsBadRequest ¶
type RemovePermissionsBadRequest struct { /* In: Body */ Payload *models.ErrorResponse `json:"body,omitempty"` }
RemovePermissionsBadRequest Malformed request.
swagger:response removePermissionsBadRequest
func NewRemovePermissionsBadRequest ¶
func NewRemovePermissionsBadRequest() *RemovePermissionsBadRequest
NewRemovePermissionsBadRequest creates RemovePermissionsBadRequest with default headers values
func (*RemovePermissionsBadRequest) SetPayload ¶
func (o *RemovePermissionsBadRequest) SetPayload(payload *models.ErrorResponse)
SetPayload sets the payload to the remove permissions bad request response
func (*RemovePermissionsBadRequest) WithPayload ¶
func (o *RemovePermissionsBadRequest) WithPayload(payload *models.ErrorResponse) *RemovePermissionsBadRequest
WithPayload adds the payload to the remove permissions bad request response
func (*RemovePermissionsBadRequest) WriteResponse ¶
func (o *RemovePermissionsBadRequest) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type RemovePermissionsBody ¶
type RemovePermissionsBody struct { // role name // Required: true Name *string `json:"name" yaml:"name"` // permissions to remove from the role // Required: true Permissions []*models.Permission `json:"permissions" yaml:"permissions"` }
RemovePermissionsBody remove permissions body
swagger:model RemovePermissionsBody
func (*RemovePermissionsBody) ContextValidate ¶
ContextValidate validate this remove permissions body based on the context it is used
func (*RemovePermissionsBody) MarshalBinary ¶
func (o *RemovePermissionsBody) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*RemovePermissionsBody) UnmarshalBinary ¶
func (o *RemovePermissionsBody) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type RemovePermissionsForbidden ¶
type RemovePermissionsForbidden struct { /* In: Body */ Payload *models.ErrorResponse `json:"body,omitempty"` }
RemovePermissionsForbidden Forbidden
swagger:response removePermissionsForbidden
func NewRemovePermissionsForbidden ¶
func NewRemovePermissionsForbidden() *RemovePermissionsForbidden
NewRemovePermissionsForbidden creates RemovePermissionsForbidden with default headers values
func (*RemovePermissionsForbidden) SetPayload ¶
func (o *RemovePermissionsForbidden) SetPayload(payload *models.ErrorResponse)
SetPayload sets the payload to the remove permissions forbidden response
func (*RemovePermissionsForbidden) WithPayload ¶
func (o *RemovePermissionsForbidden) WithPayload(payload *models.ErrorResponse) *RemovePermissionsForbidden
WithPayload adds the payload to the remove permissions forbidden response
func (*RemovePermissionsForbidden) WriteResponse ¶
func (o *RemovePermissionsForbidden) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type RemovePermissionsHandler ¶
type RemovePermissionsHandler interface {
Handle(RemovePermissionsParams, *models.Principal) middleware.Responder
}
RemovePermissionsHandler interface for that can handle valid remove permissions params
type RemovePermissionsHandlerFunc ¶
type RemovePermissionsHandlerFunc func(RemovePermissionsParams, *models.Principal) middleware.Responder
RemovePermissionsHandlerFunc turns a function with the right signature into a remove permissions handler
func (RemovePermissionsHandlerFunc) Handle ¶
func (fn RemovePermissionsHandlerFunc) Handle(params RemovePermissionsParams, principal *models.Principal) middleware.Responder
Handle executing the request and returning a response
type RemovePermissionsInternalServerError ¶
type RemovePermissionsInternalServerError struct { /* In: Body */ Payload *models.ErrorResponse `json:"body,omitempty"` }
RemovePermissionsInternalServerError An error has occurred while trying to fulfill the request. Most likely the ErrorResponse will contain more information about the error.
swagger:response removePermissionsInternalServerError
func NewRemovePermissionsInternalServerError ¶
func NewRemovePermissionsInternalServerError() *RemovePermissionsInternalServerError
NewRemovePermissionsInternalServerError creates RemovePermissionsInternalServerError with default headers values
func (*RemovePermissionsInternalServerError) SetPayload ¶
func (o *RemovePermissionsInternalServerError) SetPayload(payload *models.ErrorResponse)
SetPayload sets the payload to the remove permissions internal server error response
func (*RemovePermissionsInternalServerError) WithPayload ¶
func (o *RemovePermissionsInternalServerError) WithPayload(payload *models.ErrorResponse) *RemovePermissionsInternalServerError
WithPayload adds the payload to the remove permissions internal server error response
func (*RemovePermissionsInternalServerError) WriteResponse ¶
func (o *RemovePermissionsInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type RemovePermissionsOK ¶
type RemovePermissionsOK struct { }
RemovePermissionsOK Permissions removed successfully
swagger:response removePermissionsOK
func NewRemovePermissionsOK ¶
func NewRemovePermissionsOK() *RemovePermissionsOK
NewRemovePermissionsOK creates RemovePermissionsOK with default headers values
func (*RemovePermissionsOK) WriteResponse ¶
func (o *RemovePermissionsOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type RemovePermissionsParams ¶
type RemovePermissionsParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /* Required: true In: body */ Body RemovePermissionsBody }
RemovePermissionsParams contains all the bound params for the remove permissions operation typically these are obtained from a http.Request
swagger:parameters removePermissions
func NewRemovePermissionsParams ¶
func NewRemovePermissionsParams() RemovePermissionsParams
NewRemovePermissionsParams creates a new RemovePermissionsParams object
There are no default values defined in the spec.
func (*RemovePermissionsParams) BindRequest ¶
func (o *RemovePermissionsParams) BindRequest(r *http.Request, route *middleware.MatchedRoute) error
BindRequest both binds and validates a request, it assumes that complex things implement a Validatable(strfmt.Registry) error interface for simple values it will use straight method calls.
To ensure default values, the struct must have been initialized with NewRemovePermissionsParams() beforehand.
type RemovePermissionsURL ¶
type RemovePermissionsURL struct {
// contains filtered or unexported fields
}
RemovePermissionsURL generates an URL for the remove permissions operation
func (*RemovePermissionsURL) Build ¶
func (o *RemovePermissionsURL) Build() (*url.URL, error)
Build a url path and query string
func (*RemovePermissionsURL) BuildFull ¶
func (o *RemovePermissionsURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*RemovePermissionsURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*RemovePermissionsURL) SetBasePath ¶
func (o *RemovePermissionsURL) SetBasePath(bp string)
SetBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string
func (*RemovePermissionsURL) String ¶
func (o *RemovePermissionsURL) String() string
String returns the string representation of the path with query string
func (*RemovePermissionsURL) StringFull ¶
func (o *RemovePermissionsURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*RemovePermissionsURL) WithBasePath ¶
func (o *RemovePermissionsURL) WithBasePath(bp string) *RemovePermissionsURL
WithBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string
type RemovePermissionsUnauthorized ¶
type RemovePermissionsUnauthorized struct { }
RemovePermissionsUnauthorized Unauthorized or invalid credentials.
swagger:response removePermissionsUnauthorized
func NewRemovePermissionsUnauthorized ¶
func NewRemovePermissionsUnauthorized() *RemovePermissionsUnauthorized
NewRemovePermissionsUnauthorized creates RemovePermissionsUnauthorized with default headers values
func (*RemovePermissionsUnauthorized) WriteResponse ¶
func (o *RemovePermissionsUnauthorized) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type RemovePermissionsUnprocessableEntity ¶
type RemovePermissionsUnprocessableEntity struct { /* In: Body */ Payload *models.ErrorResponse `json:"body,omitempty"` }
RemovePermissionsUnprocessableEntity Request body is well-formed (i.e., syntactically correct), but semantically erroneous. Are you sure the class is defined in the configuration file?
swagger:response removePermissionsUnprocessableEntity
func NewRemovePermissionsUnprocessableEntity ¶
func NewRemovePermissionsUnprocessableEntity() *RemovePermissionsUnprocessableEntity
NewRemovePermissionsUnprocessableEntity creates RemovePermissionsUnprocessableEntity with default headers values
func (*RemovePermissionsUnprocessableEntity) SetPayload ¶
func (o *RemovePermissionsUnprocessableEntity) SetPayload(payload *models.ErrorResponse)
SetPayload sets the payload to the remove permissions unprocessable entity response
func (*RemovePermissionsUnprocessableEntity) WithPayload ¶
func (o *RemovePermissionsUnprocessableEntity) WithPayload(payload *models.ErrorResponse) *RemovePermissionsUnprocessableEntity
WithPayload adds the payload to the remove permissions unprocessable entity response
func (*RemovePermissionsUnprocessableEntity) WriteResponse ¶
func (o *RemovePermissionsUnprocessableEntity) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type RevokeRole ¶
type RevokeRole struct { Context *middleware.Context Handler RevokeRoleHandler }
RevokeRole swagger:route POST /authz/users/{id}/revoke authz revokeRole
Revoke a role from a user
func NewRevokeRole ¶
func NewRevokeRole(ctx *middleware.Context, handler RevokeRoleHandler) *RevokeRole
NewRevokeRole creates a new http.Handler for the revoke role operation
func (*RevokeRole) ServeHTTP ¶
func (o *RevokeRole) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type RevokeRoleBadRequest ¶
type RevokeRoleBadRequest struct { /* In: Body */ Payload *models.ErrorResponse `json:"body,omitempty"` }
RevokeRoleBadRequest Bad request
swagger:response revokeRoleBadRequest
func NewRevokeRoleBadRequest ¶
func NewRevokeRoleBadRequest() *RevokeRoleBadRequest
NewRevokeRoleBadRequest creates RevokeRoleBadRequest with default headers values
func (*RevokeRoleBadRequest) SetPayload ¶
func (o *RevokeRoleBadRequest) SetPayload(payload *models.ErrorResponse)
SetPayload sets the payload to the revoke role bad request response
func (*RevokeRoleBadRequest) WithPayload ¶
func (o *RevokeRoleBadRequest) WithPayload(payload *models.ErrorResponse) *RevokeRoleBadRequest
WithPayload adds the payload to the revoke role bad request response
func (*RevokeRoleBadRequest) WriteResponse ¶
func (o *RevokeRoleBadRequest) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type RevokeRoleBody ¶
type RevokeRoleBody struct { // the roles that revoked from the key or user Roles []string `json:"roles" yaml:"roles"` }
RevokeRoleBody revoke role body
swagger:model RevokeRoleBody
func (*RevokeRoleBody) ContextValidate ¶
ContextValidate validates this revoke role body based on context it is used
func (*RevokeRoleBody) MarshalBinary ¶
func (o *RevokeRoleBody) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*RevokeRoleBody) UnmarshalBinary ¶
func (o *RevokeRoleBody) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type RevokeRoleForbidden ¶
type RevokeRoleForbidden struct { /* In: Body */ Payload *models.ErrorResponse `json:"body,omitempty"` }
RevokeRoleForbidden Forbidden
swagger:response revokeRoleForbidden
func NewRevokeRoleForbidden ¶
func NewRevokeRoleForbidden() *RevokeRoleForbidden
NewRevokeRoleForbidden creates RevokeRoleForbidden with default headers values
func (*RevokeRoleForbidden) SetPayload ¶
func (o *RevokeRoleForbidden) SetPayload(payload *models.ErrorResponse)
SetPayload sets the payload to the revoke role forbidden response
func (*RevokeRoleForbidden) WithPayload ¶
func (o *RevokeRoleForbidden) WithPayload(payload *models.ErrorResponse) *RevokeRoleForbidden
WithPayload adds the payload to the revoke role forbidden response
func (*RevokeRoleForbidden) WriteResponse ¶
func (o *RevokeRoleForbidden) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type RevokeRoleHandler ¶
type RevokeRoleHandler interface {
Handle(RevokeRoleParams, *models.Principal) middleware.Responder
}
RevokeRoleHandler interface for that can handle valid revoke role params
type RevokeRoleHandlerFunc ¶
type RevokeRoleHandlerFunc func(RevokeRoleParams, *models.Principal) middleware.Responder
RevokeRoleHandlerFunc turns a function with the right signature into a revoke role handler
func (RevokeRoleHandlerFunc) Handle ¶
func (fn RevokeRoleHandlerFunc) Handle(params RevokeRoleParams, principal *models.Principal) middleware.Responder
Handle executing the request and returning a response
type RevokeRoleInternalServerError ¶
type RevokeRoleInternalServerError struct { /* In: Body */ Payload *models.ErrorResponse `json:"body,omitempty"` }
RevokeRoleInternalServerError An error has occurred while trying to fulfill the request. Most likely the ErrorResponse will contain more information about the error.
swagger:response revokeRoleInternalServerError
func NewRevokeRoleInternalServerError ¶
func NewRevokeRoleInternalServerError() *RevokeRoleInternalServerError
NewRevokeRoleInternalServerError creates RevokeRoleInternalServerError with default headers values
func (*RevokeRoleInternalServerError) SetPayload ¶
func (o *RevokeRoleInternalServerError) SetPayload(payload *models.ErrorResponse)
SetPayload sets the payload to the revoke role internal server error response
func (*RevokeRoleInternalServerError) WithPayload ¶
func (o *RevokeRoleInternalServerError) WithPayload(payload *models.ErrorResponse) *RevokeRoleInternalServerError
WithPayload adds the payload to the revoke role internal server error response
func (*RevokeRoleInternalServerError) WriteResponse ¶
func (o *RevokeRoleInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type RevokeRoleNotFound ¶
type RevokeRoleNotFound struct { }
RevokeRoleNotFound role or user is not found.
swagger:response revokeRoleNotFound
func NewRevokeRoleNotFound ¶
func NewRevokeRoleNotFound() *RevokeRoleNotFound
NewRevokeRoleNotFound creates RevokeRoleNotFound with default headers values
func (*RevokeRoleNotFound) WriteResponse ¶
func (o *RevokeRoleNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type RevokeRoleOK ¶
type RevokeRoleOK struct { }
RevokeRoleOK Role revoked successfully
swagger:response revokeRoleOK
func NewRevokeRoleOK ¶
func NewRevokeRoleOK() *RevokeRoleOK
NewRevokeRoleOK creates RevokeRoleOK with default headers values
func (*RevokeRoleOK) WriteResponse ¶
func (o *RevokeRoleOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type RevokeRoleParams ¶
type RevokeRoleParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /* Required: true In: body */ Body RevokeRoleBody /*user name Required: true In: path */ ID string }
RevokeRoleParams contains all the bound params for the revoke role operation typically these are obtained from a http.Request
swagger:parameters revokeRole
func NewRevokeRoleParams ¶
func NewRevokeRoleParams() RevokeRoleParams
NewRevokeRoleParams creates a new RevokeRoleParams object
There are no default values defined in the spec.
func (*RevokeRoleParams) BindRequest ¶
func (o *RevokeRoleParams) BindRequest(r *http.Request, route *middleware.MatchedRoute) error
BindRequest both binds and validates a request, it assumes that complex things implement a Validatable(strfmt.Registry) error interface for simple values it will use straight method calls.
To ensure default values, the struct must have been initialized with NewRevokeRoleParams() beforehand.
type RevokeRoleURL ¶
type RevokeRoleURL struct { ID string // contains filtered or unexported fields }
RevokeRoleURL generates an URL for the revoke role operation
func (*RevokeRoleURL) Build ¶
func (o *RevokeRoleURL) Build() (*url.URL, error)
Build a url path and query string
func (*RevokeRoleURL) BuildFull ¶
func (o *RevokeRoleURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*RevokeRoleURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*RevokeRoleURL) SetBasePath ¶
func (o *RevokeRoleURL) SetBasePath(bp string)
SetBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string
func (*RevokeRoleURL) String ¶
func (o *RevokeRoleURL) String() string
String returns the string representation of the path with query string
func (*RevokeRoleURL) StringFull ¶
func (o *RevokeRoleURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*RevokeRoleURL) WithBasePath ¶
func (o *RevokeRoleURL) WithBasePath(bp string) *RevokeRoleURL
WithBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string
type RevokeRoleUnauthorized ¶
type RevokeRoleUnauthorized struct { }
RevokeRoleUnauthorized Unauthorized or invalid credentials.
swagger:response revokeRoleUnauthorized
func NewRevokeRoleUnauthorized ¶
func NewRevokeRoleUnauthorized() *RevokeRoleUnauthorized
NewRevokeRoleUnauthorized creates RevokeRoleUnauthorized with default headers values
func (*RevokeRoleUnauthorized) WriteResponse ¶
func (o *RevokeRoleUnauthorized) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
Source Files
¶
- add_permissions.go
- add_permissions_parameters.go
- add_permissions_responses.go
- add_permissions_urlbuilder.go
- assign_role.go
- assign_role_parameters.go
- assign_role_responses.go
- assign_role_urlbuilder.go
- create_role.go
- create_role_parameters.go
- create_role_responses.go
- create_role_urlbuilder.go
- delete_role.go
- delete_role_parameters.go
- delete_role_responses.go
- delete_role_urlbuilder.go
- get_role.go
- get_role_parameters.go
- get_role_responses.go
- get_role_urlbuilder.go
- get_roles.go
- get_roles_for_own_user.go
- get_roles_for_own_user_parameters.go
- get_roles_for_own_user_responses.go
- get_roles_for_own_user_urlbuilder.go
- get_roles_for_user.go
- get_roles_for_user_parameters.go
- get_roles_for_user_responses.go
- get_roles_for_user_urlbuilder.go
- get_roles_parameters.go
- get_roles_responses.go
- get_roles_urlbuilder.go
- get_users_for_role.go
- get_users_for_role_parameters.go
- get_users_for_role_responses.go
- get_users_for_role_urlbuilder.go
- remove_permissions.go
- remove_permissions_parameters.go
- remove_permissions_responses.go
- remove_permissions_urlbuilder.go
- revoke_role.go
- revoke_role_parameters.go
- revoke_role_responses.go
- revoke_role_urlbuilder.go