Documentation
¶
Index ¶
- Constants
- type GetProjectRBAC
- type GetProjectRBACForbidden
- type GetProjectRBACHandler
- type GetProjectRBACHandlerFunc
- type GetProjectRBACInternalServerError
- func (o *GetProjectRBACInternalServerError) SetPayload(payload *models.Error)
- func (o *GetProjectRBACInternalServerError) WithPayload(payload *models.Error) *GetProjectRBACInternalServerError
- func (o *GetProjectRBACInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type GetProjectRBACOK
- type GetProjectRBACParams
- type GetProjectRBACURL
- func (o *GetProjectRBACURL) Build() (*url.URL, error)
- func (o *GetProjectRBACURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *GetProjectRBACURL) Must(u *url.URL, err error) *url.URL
- func (o *GetProjectRBACURL) SetBasePath(bp string)
- func (o *GetProjectRBACURL) String() string
- func (o *GetProjectRBACURL) StringFull(scheme, host string) string
- func (o *GetProjectRBACURL) WithBasePath(bp string) *GetProjectRBACURL
- type GetUserRBAC
- type GetUserRBACHandler
- type GetUserRBACHandlerFunc
- type GetUserRBACInternalServerError
- type GetUserRBACNotFound
- type GetUserRBACOK
- type GetUserRBACParams
- type GetUserRBACURL
- func (o *GetUserRBACURL) Build() (*url.URL, error)
- func (o *GetUserRBACURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *GetUserRBACURL) Must(u *url.URL, err error) *url.URL
- func (o *GetUserRBACURL) SetBasePath(bp string)
- func (o *GetUserRBACURL) String() string
- func (o *GetUserRBACURL) StringFull(scheme, host string) string
- func (o *GetUserRBACURL) WithBasePath(bp string) *GetUserRBACURL
Constants ¶
const GetProjectRBACForbiddenCode int = 403
GetProjectRBACForbiddenCode is the HTTP code returned for type GetProjectRBACForbidden
const GetProjectRBACInternalServerErrorCode int = 500
GetProjectRBACInternalServerErrorCode is the HTTP code returned for type GetProjectRBACInternalServerError
const GetProjectRBACOKCode int = 200
GetProjectRBACOKCode is the HTTP code returned for type GetProjectRBACOK
const GetUserRBACInternalServerErrorCode int = 500
GetUserRBACInternalServerErrorCode is the HTTP code returned for type GetUserRBACInternalServerError
const GetUserRBACNotFoundCode int = 404
GetUserRBACNotFoundCode is the HTTP code returned for type GetUserRBACNotFound
const GetUserRBACOKCode int = 200
GetUserRBACOKCode is the HTTP code returned for type GetUserRBACOK
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GetProjectRBAC ¶
type GetProjectRBAC struct { Context *middleware.Context Handler GetProjectRBACHandler }
GetProjectRBAC swagger:route GET /rbac/project/get RBAC getProjectRBAC
Get Project RBAC
func NewGetProjectRBAC ¶
func NewGetProjectRBAC(ctx *middleware.Context, handler GetProjectRBACHandler) *GetProjectRBAC
NewGetProjectRBAC creates a new http.Handler for the get project r b a c operation
func (*GetProjectRBAC) ServeHTTP ¶
func (o *GetProjectRBAC) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type GetProjectRBACForbidden ¶
type GetProjectRBACForbidden struct { /* In: Body */ Payload *models.Error `json:"body,omitempty"` }
GetProjectRBACForbidden Get Project RBAC Failed, cause project not exist
swagger:response getProjectRBACForbidden
func NewGetProjectRBACForbidden ¶
func NewGetProjectRBACForbidden() *GetProjectRBACForbidden
NewGetProjectRBACForbidden creates GetProjectRBACForbidden with default headers values
func (*GetProjectRBACForbidden) SetPayload ¶
func (o *GetProjectRBACForbidden) SetPayload(payload *models.Error)
SetPayload sets the payload to the get project r b a c forbidden response
func (*GetProjectRBACForbidden) WithPayload ¶
func (o *GetProjectRBACForbidden) WithPayload(payload *models.Error) *GetProjectRBACForbidden
WithPayload adds the payload to the get project r b a c forbidden response
func (*GetProjectRBACForbidden) WriteResponse ¶
func (o *GetProjectRBACForbidden) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetProjectRBACHandler ¶
type GetProjectRBACHandler interface {
Handle(GetProjectRBACParams, *models.AuthInfo) middleware.Responder
}
GetProjectRBACHandler interface for that can handle valid get project r b a c params
type GetProjectRBACHandlerFunc ¶
type GetProjectRBACHandlerFunc func(GetProjectRBACParams, *models.AuthInfo) middleware.Responder
GetProjectRBACHandlerFunc turns a function with the right signature into a get project r b a c handler
func (GetProjectRBACHandlerFunc) Handle ¶
func (fn GetProjectRBACHandlerFunc) Handle(params GetProjectRBACParams, principal *models.AuthInfo) middleware.Responder
Handle executing the request and returning a response
type GetProjectRBACInternalServerError ¶
type GetProjectRBACInternalServerError struct { /* In: Body */ Payload *models.Error `json:"body,omitempty"` }
GetProjectRBACInternalServerError Server Error
swagger:response getProjectRBACInternalServerError
func NewGetProjectRBACInternalServerError ¶
func NewGetProjectRBACInternalServerError() *GetProjectRBACInternalServerError
NewGetProjectRBACInternalServerError creates GetProjectRBACInternalServerError with default headers values
func (*GetProjectRBACInternalServerError) SetPayload ¶
func (o *GetProjectRBACInternalServerError) SetPayload(payload *models.Error)
SetPayload sets the payload to the get project r b a c internal server error response
func (*GetProjectRBACInternalServerError) WithPayload ¶
func (o *GetProjectRBACInternalServerError) WithPayload(payload *models.Error) *GetProjectRBACInternalServerError
WithPayload adds the payload to the get project r b a c internal server error response
func (*GetProjectRBACInternalServerError) WriteResponse ¶
func (o *GetProjectRBACInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetProjectRBACOK ¶
type GetProjectRBACOK struct { /* In: Body */ Payload *models.ProjectRole `json:"body,omitempty"` }
GetProjectRBACOK List All Projects RBAC Success, return project RBAC info.
swagger:response getProjectRBACOK
func NewGetProjectRBACOK ¶
func NewGetProjectRBACOK() *GetProjectRBACOK
NewGetProjectRBACOK creates GetProjectRBACOK with default headers values
func (*GetProjectRBACOK) SetPayload ¶
func (o *GetProjectRBACOK) SetPayload(payload *models.ProjectRole)
SetPayload sets the payload to the get project r b a c o k response
func (*GetProjectRBACOK) WithPayload ¶
func (o *GetProjectRBACOK) WithPayload(payload *models.ProjectRole) *GetProjectRBACOK
WithPayload adds the payload to the get project r b a c o k response
func (*GetProjectRBACOK) WriteResponse ¶
func (o *GetProjectRBACOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetProjectRBACParams ¶
type GetProjectRBACParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /*projectID Required: true In: query */ ID int64 }
GetProjectRBACParams contains all the bound params for the get project r b a c operation typically these are obtained from a http.Request
swagger:parameters GetProjectRBAC
func NewGetProjectRBACParams ¶
func NewGetProjectRBACParams() GetProjectRBACParams
NewGetProjectRBACParams creates a new GetProjectRBACParams object
There are no default values defined in the spec.
func (*GetProjectRBACParams) BindRequest ¶
func (o *GetProjectRBACParams) 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 NewGetProjectRBACParams() beforehand.
type GetProjectRBACURL ¶
type GetProjectRBACURL struct { ID int64 // contains filtered or unexported fields }
GetProjectRBACURL generates an URL for the get project r b a c operation
func (*GetProjectRBACURL) Build ¶
func (o *GetProjectRBACURL) Build() (*url.URL, error)
Build a url path and query string
func (*GetProjectRBACURL) BuildFull ¶
func (o *GetProjectRBACURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*GetProjectRBACURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*GetProjectRBACURL) SetBasePath ¶
func (o *GetProjectRBACURL) 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 (*GetProjectRBACURL) String ¶
func (o *GetProjectRBACURL) String() string
String returns the string representation of the path with query string
func (*GetProjectRBACURL) StringFull ¶
func (o *GetProjectRBACURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*GetProjectRBACURL) WithBasePath ¶
func (o *GetProjectRBACURL) WithBasePath(bp string) *GetProjectRBACURL
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 GetUserRBAC ¶
type GetUserRBAC struct { Context *middleware.Context Handler GetUserRBACHandler }
GetUserRBAC swagger:route GET /rbac/user/get RBAC getUserRBAC
Get User RBAC
func NewGetUserRBAC ¶
func NewGetUserRBAC(ctx *middleware.Context, handler GetUserRBACHandler) *GetUserRBAC
NewGetUserRBAC creates a new http.Handler for the get user r b a c operation
func (*GetUserRBAC) ServeHTTP ¶
func (o *GetUserRBAC) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type GetUserRBACHandler ¶
type GetUserRBACHandler interface {
Handle(GetUserRBACParams, *models.AuthInfo) middleware.Responder
}
GetUserRBACHandler interface for that can handle valid get user r b a c params
type GetUserRBACHandlerFunc ¶
type GetUserRBACHandlerFunc func(GetUserRBACParams, *models.AuthInfo) middleware.Responder
GetUserRBACHandlerFunc turns a function with the right signature into a get user r b a c handler
func (GetUserRBACHandlerFunc) Handle ¶
func (fn GetUserRBACHandlerFunc) Handle(params GetUserRBACParams, principal *models.AuthInfo) middleware.Responder
Handle executing the request and returning a response
type GetUserRBACInternalServerError ¶
type GetUserRBACInternalServerError struct { /* In: Body */ Payload *models.Error `json:"body,omitempty"` }
GetUserRBACInternalServerError Server Error
swagger:response getUserRBACInternalServerError
func NewGetUserRBACInternalServerError ¶
func NewGetUserRBACInternalServerError() *GetUserRBACInternalServerError
NewGetUserRBACInternalServerError creates GetUserRBACInternalServerError with default headers values
func (*GetUserRBACInternalServerError) SetPayload ¶
func (o *GetUserRBACInternalServerError) SetPayload(payload *models.Error)
SetPayload sets the payload to the get user r b a c internal server error response
func (*GetUserRBACInternalServerError) WithPayload ¶
func (o *GetUserRBACInternalServerError) WithPayload(payload *models.Error) *GetUserRBACInternalServerError
WithPayload adds the payload to the get user r b a c internal server error response
func (*GetUserRBACInternalServerError) WriteResponse ¶
func (o *GetUserRBACInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetUserRBACNotFound ¶
GetUserRBACNotFound Get User RBAC Failed, cause user not exist
swagger:response getUserRBACNotFound
func NewGetUserRBACNotFound ¶
func NewGetUserRBACNotFound() *GetUserRBACNotFound
NewGetUserRBACNotFound creates GetUserRBACNotFound with default headers values
func (*GetUserRBACNotFound) SetPayload ¶
func (o *GetUserRBACNotFound) SetPayload(payload *models.Error)
SetPayload sets the payload to the get user r b a c not found response
func (*GetUserRBACNotFound) WithPayload ¶
func (o *GetUserRBACNotFound) WithPayload(payload *models.Error) *GetUserRBACNotFound
WithPayload adds the payload to the get user r b a c not found response
func (*GetUserRBACNotFound) WriteResponse ¶
func (o *GetUserRBACNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetUserRBACOK ¶
GetUserRBACOK List All Users RBAC Success, return user RBAC info.
swagger:response getUserRBACOK
func NewGetUserRBACOK ¶
func NewGetUserRBACOK() *GetUserRBACOK
NewGetUserRBACOK creates GetUserRBACOK with default headers values
func (*GetUserRBACOK) SetPayload ¶
func (o *GetUserRBACOK) SetPayload(payload *models.UserRole)
SetPayload sets the payload to the get user r b a c o k response
func (*GetUserRBACOK) WithPayload ¶
func (o *GetUserRBACOK) WithPayload(payload *models.UserRole) *GetUserRBACOK
WithPayload adds the payload to the get user r b a c o k response
func (*GetUserRBACOK) WriteResponse ¶
func (o *GetUserRBACOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetUserRBACParams ¶
GetUserRBACParams contains all the bound params for the get user r b a c operation typically these are obtained from a http.Request
swagger:parameters GetUserRBAC
func NewGetUserRBACParams ¶
func NewGetUserRBACParams() GetUserRBACParams
NewGetUserRBACParams creates a new GetUserRBACParams object
There are no default values defined in the spec.
func (*GetUserRBACParams) BindRequest ¶
func (o *GetUserRBACParams) 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 NewGetUserRBACParams() beforehand.
type GetUserRBACURL ¶
type GetUserRBACURL struct {
// contains filtered or unexported fields
}
GetUserRBACURL generates an URL for the get user r b a c operation
func (*GetUserRBACURL) Build ¶
func (o *GetUserRBACURL) Build() (*url.URL, error)
Build a url path and query string
func (*GetUserRBACURL) BuildFull ¶
func (o *GetUserRBACURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*GetUserRBACURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*GetUserRBACURL) SetBasePath ¶
func (o *GetUserRBACURL) 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 (*GetUserRBACURL) String ¶
func (o *GetUserRBACURL) String() string
String returns the string representation of the path with query string
func (*GetUserRBACURL) StringFull ¶
func (o *GetUserRBACURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*GetUserRBACURL) WithBasePath ¶
func (o *GetUserRBACURL) WithBasePath(bp string) *GetUserRBACURL
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