r_b_a_c

package
v0.0.0-...-acbd0ad Latest Latest
Warning

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

Go to latest
Published: May 8, 2022 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const GetProjectRBACForbiddenCode int = 403

GetProjectRBACForbiddenCode is the HTTP code returned for type GetProjectRBACForbidden

View Source
const GetProjectRBACInternalServerErrorCode int = 500

GetProjectRBACInternalServerErrorCode is the HTTP code returned for type GetProjectRBACInternalServerError

View Source
const GetProjectRBACOKCode int = 200

GetProjectRBACOKCode is the HTTP code returned for type GetProjectRBACOK

View Source
const GetUserRBACInternalServerErrorCode int = 500

GetUserRBACInternalServerErrorCode is the HTTP code returned for type GetUserRBACInternalServerError

View Source
const GetUserRBACNotFoundCode int = 404

GetUserRBACNotFoundCode is the HTTP code returned for type GetUserRBACNotFound

View Source
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

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

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

func (o *GetProjectRBACURL) Must(u *url.URL, err error) *url.URL

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

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

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

type GetUserRBACNotFound struct {

	/*
	  In: Body
	*/
	Payload *models.Error `json:"body,omitempty"`
}

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

type GetUserRBACOK struct {

	/*
	  In: Body
	*/
	Payload *models.UserRole `json:"body,omitempty"`
}

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

type GetUserRBACParams struct {

	// HTTP Request Object
	HTTPRequest *http.Request `json:"-"`
}

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

func (o *GetUserRBACURL) Must(u *url.URL, err error) *url.URL

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

Jump to

Keyboard shortcuts

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