Documentation
¶
Index ¶
- type Client
- func (a *Client) GetProjectRBAC(params *GetProjectRBACParams, authInfo runtime.ClientAuthInfoWriter, ...) (*GetProjectRBACOK, error)
- func (a *Client) GetUserRBAC(params *GetUserRBACParams, authInfo runtime.ClientAuthInfoWriter, ...) (*GetUserRBACOK, error)
- func (a *Client) SetTransport(transport runtime.ClientTransport)
- type ClientOption
- type ClientService
- type GetProjectRBACForbidden
- type GetProjectRBACInternalServerError
- type GetProjectRBACOK
- type GetProjectRBACParams
- func NewGetProjectRBACParams() *GetProjectRBACParams
- func NewGetProjectRBACParamsWithContext(ctx context.Context) *GetProjectRBACParams
- func NewGetProjectRBACParamsWithHTTPClient(client *http.Client) *GetProjectRBACParams
- func NewGetProjectRBACParamsWithTimeout(timeout time.Duration) *GetProjectRBACParams
- func (o *GetProjectRBACParams) SetContext(ctx context.Context)
- func (o *GetProjectRBACParams) SetDefaults()
- func (o *GetProjectRBACParams) SetHTTPClient(client *http.Client)
- func (o *GetProjectRBACParams) SetID(id int64)
- func (o *GetProjectRBACParams) SetTimeout(timeout time.Duration)
- func (o *GetProjectRBACParams) WithContext(ctx context.Context) *GetProjectRBACParams
- func (o *GetProjectRBACParams) WithDefaults() *GetProjectRBACParams
- func (o *GetProjectRBACParams) WithHTTPClient(client *http.Client) *GetProjectRBACParams
- func (o *GetProjectRBACParams) WithID(id int64) *GetProjectRBACParams
- func (o *GetProjectRBACParams) WithTimeout(timeout time.Duration) *GetProjectRBACParams
- func (o *GetProjectRBACParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetProjectRBACReader
- type GetUserRBACInternalServerError
- type GetUserRBACNotFound
- type GetUserRBACOK
- type GetUserRBACParams
- func (o *GetUserRBACParams) SetContext(ctx context.Context)
- func (o *GetUserRBACParams) SetDefaults()
- func (o *GetUserRBACParams) SetHTTPClient(client *http.Client)
- func (o *GetUserRBACParams) SetTimeout(timeout time.Duration)
- func (o *GetUserRBACParams) WithContext(ctx context.Context) *GetUserRBACParams
- func (o *GetUserRBACParams) WithDefaults() *GetUserRBACParams
- func (o *GetUserRBACParams) WithHTTPClient(client *http.Client) *GetUserRBACParams
- func (o *GetUserRBACParams) WithTimeout(timeout time.Duration) *GetUserRBACParams
- func (o *GetUserRBACParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetUserRBACReader
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client for r b a c API
func (*Client) GetProjectRBAC ¶
func (a *Client) GetProjectRBAC(params *GetProjectRBACParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetProjectRBACOK, error)
GetProjectRBAC Get Project RBAC
func (*Client) GetUserRBAC ¶
func (a *Client) GetUserRBAC(params *GetUserRBACParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetUserRBACOK, error)
GetUserRBAC Get User RBAC
func (*Client) SetTransport ¶
func (a *Client) SetTransport(transport runtime.ClientTransport)
SetTransport changes the transport on the client
type ClientOption ¶
type ClientOption func(*runtime.ClientOperation)
ClientOption is the option for Client methods
type ClientService ¶
type ClientService interface { GetProjectRBAC(params *GetProjectRBACParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetProjectRBACOK, error) GetUserRBAC(params *GetUserRBACParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetUserRBACOK, error) SetTransport(transport runtime.ClientTransport) }
ClientService is the interface for Client methods
func New ¶
func New(transport runtime.ClientTransport, formats strfmt.Registry) ClientService
New creates a new r b a c API client.
type GetProjectRBACForbidden ¶
GetProjectRBACForbidden describes a response with status code 403, with default header values.
Get Project RBAC Failed, cause project not exist
func NewGetProjectRBACForbidden ¶
func NewGetProjectRBACForbidden() *GetProjectRBACForbidden
NewGetProjectRBACForbidden creates a GetProjectRBACForbidden with default headers values
func (*GetProjectRBACForbidden) Error ¶
func (o *GetProjectRBACForbidden) Error() string
func (*GetProjectRBACForbidden) GetPayload ¶
func (o *GetProjectRBACForbidden) GetPayload() *models.Error
type GetProjectRBACInternalServerError ¶
GetProjectRBACInternalServerError describes a response with status code 500, with default header values.
Server Error
func NewGetProjectRBACInternalServerError ¶
func NewGetProjectRBACInternalServerError() *GetProjectRBACInternalServerError
NewGetProjectRBACInternalServerError creates a GetProjectRBACInternalServerError with default headers values
func (*GetProjectRBACInternalServerError) Error ¶
func (o *GetProjectRBACInternalServerError) Error() string
func (*GetProjectRBACInternalServerError) GetPayload ¶
func (o *GetProjectRBACInternalServerError) GetPayload() *models.Error
type GetProjectRBACOK ¶
type GetProjectRBACOK struct {
Payload *models.ProjectRole
}
GetProjectRBACOK describes a response with status code 200, with default header values.
List All Projects RBAC Success, return project RBAC info.
func NewGetProjectRBACOK ¶
func NewGetProjectRBACOK() *GetProjectRBACOK
NewGetProjectRBACOK creates a GetProjectRBACOK with default headers values
func (*GetProjectRBACOK) Error ¶
func (o *GetProjectRBACOK) Error() string
func (*GetProjectRBACOK) GetPayload ¶
func (o *GetProjectRBACOK) GetPayload() *models.ProjectRole
type GetProjectRBACParams ¶
type GetProjectRBACParams struct { /* ID. projectID */ ID int64 Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
GetProjectRBACParams contains all the parameters to send to the API endpoint
for the get project r b a c operation. Typically these are written to a http.Request.
func NewGetProjectRBACParams ¶
func NewGetProjectRBACParams() *GetProjectRBACParams
NewGetProjectRBACParams creates a new GetProjectRBACParams object, with the default timeout for this client.
Default values are not hydrated, since defaults are normally applied by the API server side.
To enforce default values in parameter, use SetDefaults or WithDefaults.
func NewGetProjectRBACParamsWithContext ¶
func NewGetProjectRBACParamsWithContext(ctx context.Context) *GetProjectRBACParams
NewGetProjectRBACParamsWithContext creates a new GetProjectRBACParams object with the ability to set a context for a request.
func NewGetProjectRBACParamsWithHTTPClient ¶
func NewGetProjectRBACParamsWithHTTPClient(client *http.Client) *GetProjectRBACParams
NewGetProjectRBACParamsWithHTTPClient creates a new GetProjectRBACParams object with the ability to set a custom HTTPClient for a request.
func NewGetProjectRBACParamsWithTimeout ¶
func NewGetProjectRBACParamsWithTimeout(timeout time.Duration) *GetProjectRBACParams
NewGetProjectRBACParamsWithTimeout creates a new GetProjectRBACParams object with the ability to set a timeout on a request.
func (*GetProjectRBACParams) SetContext ¶
func (o *GetProjectRBACParams) SetContext(ctx context.Context)
SetContext adds the context to the get project r b a c params
func (*GetProjectRBACParams) SetDefaults ¶
func (o *GetProjectRBACParams) SetDefaults()
SetDefaults hydrates default values in the get project r b a c params (not the query body).
All values with no default are reset to their zero value.
func (*GetProjectRBACParams) SetHTTPClient ¶
func (o *GetProjectRBACParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the get project r b a c params
func (*GetProjectRBACParams) SetID ¶
func (o *GetProjectRBACParams) SetID(id int64)
SetID adds the id to the get project r b a c params
func (*GetProjectRBACParams) SetTimeout ¶
func (o *GetProjectRBACParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the get project r b a c params
func (*GetProjectRBACParams) WithContext ¶
func (o *GetProjectRBACParams) WithContext(ctx context.Context) *GetProjectRBACParams
WithContext adds the context to the get project r b a c params
func (*GetProjectRBACParams) WithDefaults ¶
func (o *GetProjectRBACParams) WithDefaults() *GetProjectRBACParams
WithDefaults hydrates default values in the get project r b a c params (not the query body).
All values with no default are reset to their zero value.
func (*GetProjectRBACParams) WithHTTPClient ¶
func (o *GetProjectRBACParams) WithHTTPClient(client *http.Client) *GetProjectRBACParams
WithHTTPClient adds the HTTPClient to the get project r b a c params
func (*GetProjectRBACParams) WithID ¶
func (o *GetProjectRBACParams) WithID(id int64) *GetProjectRBACParams
WithID adds the id to the get project r b a c params
func (*GetProjectRBACParams) WithTimeout ¶
func (o *GetProjectRBACParams) WithTimeout(timeout time.Duration) *GetProjectRBACParams
WithTimeout adds the timeout to the get project r b a c params
func (*GetProjectRBACParams) WriteToRequest ¶
func (o *GetProjectRBACParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type GetProjectRBACReader ¶
type GetProjectRBACReader struct {
// contains filtered or unexported fields
}
GetProjectRBACReader is a Reader for the GetProjectRBAC structure.
func (*GetProjectRBACReader) ReadResponse ¶
func (o *GetProjectRBACReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type GetUserRBACInternalServerError ¶
GetUserRBACInternalServerError describes a response with status code 500, with default header values.
Server Error
func NewGetUserRBACInternalServerError ¶
func NewGetUserRBACInternalServerError() *GetUserRBACInternalServerError
NewGetUserRBACInternalServerError creates a GetUserRBACInternalServerError with default headers values
func (*GetUserRBACInternalServerError) Error ¶
func (o *GetUserRBACInternalServerError) Error() string
func (*GetUserRBACInternalServerError) GetPayload ¶
func (o *GetUserRBACInternalServerError) GetPayload() *models.Error
type GetUserRBACNotFound ¶
GetUserRBACNotFound describes a response with status code 404, with default header values.
Get User RBAC Failed, cause user not exist
func NewGetUserRBACNotFound ¶
func NewGetUserRBACNotFound() *GetUserRBACNotFound
NewGetUserRBACNotFound creates a GetUserRBACNotFound with default headers values
func (*GetUserRBACNotFound) Error ¶
func (o *GetUserRBACNotFound) Error() string
func (*GetUserRBACNotFound) GetPayload ¶
func (o *GetUserRBACNotFound) GetPayload() *models.Error
type GetUserRBACOK ¶
GetUserRBACOK describes a response with status code 200, with default header values.
List All Users RBAC Success, return user RBAC info.
func NewGetUserRBACOK ¶
func NewGetUserRBACOK() *GetUserRBACOK
NewGetUserRBACOK creates a GetUserRBACOK with default headers values
func (*GetUserRBACOK) Error ¶
func (o *GetUserRBACOK) Error() string
func (*GetUserRBACOK) GetPayload ¶
func (o *GetUserRBACOK) GetPayload() *models.UserRole
type GetUserRBACParams ¶
type GetUserRBACParams struct { Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
GetUserRBACParams contains all the parameters to send to the API endpoint
for the get user r b a c operation. Typically these are written to a http.Request.
func NewGetUserRBACParams ¶
func NewGetUserRBACParams() *GetUserRBACParams
NewGetUserRBACParams creates a new GetUserRBACParams object, with the default timeout for this client.
Default values are not hydrated, since defaults are normally applied by the API server side.
To enforce default values in parameter, use SetDefaults or WithDefaults.
func NewGetUserRBACParamsWithContext ¶
func NewGetUserRBACParamsWithContext(ctx context.Context) *GetUserRBACParams
NewGetUserRBACParamsWithContext creates a new GetUserRBACParams object with the ability to set a context for a request.
func NewGetUserRBACParamsWithHTTPClient ¶
func NewGetUserRBACParamsWithHTTPClient(client *http.Client) *GetUserRBACParams
NewGetUserRBACParamsWithHTTPClient creates a new GetUserRBACParams object with the ability to set a custom HTTPClient for a request.
func NewGetUserRBACParamsWithTimeout ¶
func NewGetUserRBACParamsWithTimeout(timeout time.Duration) *GetUserRBACParams
NewGetUserRBACParamsWithTimeout creates a new GetUserRBACParams object with the ability to set a timeout on a request.
func (*GetUserRBACParams) SetContext ¶
func (o *GetUserRBACParams) SetContext(ctx context.Context)
SetContext adds the context to the get user r b a c params
func (*GetUserRBACParams) SetDefaults ¶
func (o *GetUserRBACParams) SetDefaults()
SetDefaults hydrates default values in the get user r b a c params (not the query body).
All values with no default are reset to their zero value.
func (*GetUserRBACParams) SetHTTPClient ¶
func (o *GetUserRBACParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the get user r b a c params
func (*GetUserRBACParams) SetTimeout ¶
func (o *GetUserRBACParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the get user r b a c params
func (*GetUserRBACParams) WithContext ¶
func (o *GetUserRBACParams) WithContext(ctx context.Context) *GetUserRBACParams
WithContext adds the context to the get user r b a c params
func (*GetUserRBACParams) WithDefaults ¶
func (o *GetUserRBACParams) WithDefaults() *GetUserRBACParams
WithDefaults hydrates default values in the get user r b a c params (not the query body).
All values with no default are reset to their zero value.
func (*GetUserRBACParams) WithHTTPClient ¶
func (o *GetUserRBACParams) WithHTTPClient(client *http.Client) *GetUserRBACParams
WithHTTPClient adds the HTTPClient to the get user r b a c params
func (*GetUserRBACParams) WithTimeout ¶
func (o *GetUserRBACParams) WithTimeout(timeout time.Duration) *GetUserRBACParams
WithTimeout adds the timeout to the get user r b a c params
func (*GetUserRBACParams) WriteToRequest ¶
func (o *GetUserRBACParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type GetUserRBACReader ¶
type GetUserRBACReader struct {
// contains filtered or unexported fields
}
GetUserRBACReader is a Reader for the GetUserRBAC structure.
func (*GetUserRBACReader) ReadResponse ¶
func (o *GetUserRBACReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.