Documentation
¶
Index ¶
- type Client
- func (a *Client) GetLDAPStatus(params *GetLDAPStatusParams, authInfo runtime.ClientAuthInfoWriter, ...) (*GetLDAPStatusOK, error)
- func (a *Client) GetUserFromLDAP(params *GetUserFromLDAPParams, authInfo runtime.ClientAuthInfoWriter, ...) (*GetUserFromLDAPOK, error)
- func (a *Client) PostSyncUserWithLDAP(params *PostSyncUserWithLDAPParams, authInfo runtime.ClientAuthInfoWriter, ...) (*PostSyncUserWithLDAPOK, error)
- func (a *Client) ReloadLDAPCfg(params *ReloadLDAPCfgParams, authInfo runtime.ClientAuthInfoWriter, ...) (*ReloadLDAPCfgOK, error)
- func (a *Client) SetTransport(transport runtime.ClientTransport)
- type ClientOption
- type ClientService
- type GetLDAPStatusForbidden
- type GetLDAPStatusInternalServerError
- type GetLDAPStatusOK
- type GetLDAPStatusParams
- func (o *GetLDAPStatusParams) SetContext(ctx context.Context)
- func (o *GetLDAPStatusParams) SetDefaults()
- func (o *GetLDAPStatusParams) SetHTTPClient(client *http.Client)
- func (o *GetLDAPStatusParams) SetTimeout(timeout time.Duration)
- func (o *GetLDAPStatusParams) WithContext(ctx context.Context) *GetLDAPStatusParams
- func (o *GetLDAPStatusParams) WithDefaults() *GetLDAPStatusParams
- func (o *GetLDAPStatusParams) WithHTTPClient(client *http.Client) *GetLDAPStatusParams
- func (o *GetLDAPStatusParams) WithTimeout(timeout time.Duration) *GetLDAPStatusParams
- func (o *GetLDAPStatusParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetLDAPStatusReader
- type GetLDAPStatusUnauthorized
- type GetUserFromLDAPForbidden
- type GetUserFromLDAPInternalServerError
- type GetUserFromLDAPOK
- type GetUserFromLDAPParams
- func NewGetUserFromLDAPParams() *GetUserFromLDAPParams
- func NewGetUserFromLDAPParamsWithContext(ctx context.Context) *GetUserFromLDAPParams
- func NewGetUserFromLDAPParamsWithHTTPClient(client *http.Client) *GetUserFromLDAPParams
- func NewGetUserFromLDAPParamsWithTimeout(timeout time.Duration) *GetUserFromLDAPParams
- func (o *GetUserFromLDAPParams) SetContext(ctx context.Context)
- func (o *GetUserFromLDAPParams) SetDefaults()
- func (o *GetUserFromLDAPParams) SetHTTPClient(client *http.Client)
- func (o *GetUserFromLDAPParams) SetTimeout(timeout time.Duration)
- func (o *GetUserFromLDAPParams) SetUserName(userName string)
- func (o *GetUserFromLDAPParams) WithContext(ctx context.Context) *GetUserFromLDAPParams
- func (o *GetUserFromLDAPParams) WithDefaults() *GetUserFromLDAPParams
- func (o *GetUserFromLDAPParams) WithHTTPClient(client *http.Client) *GetUserFromLDAPParams
- func (o *GetUserFromLDAPParams) WithTimeout(timeout time.Duration) *GetUserFromLDAPParams
- func (o *GetUserFromLDAPParams) WithUserName(userName string) *GetUserFromLDAPParams
- func (o *GetUserFromLDAPParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetUserFromLDAPReader
- type GetUserFromLDAPUnauthorized
- type PostSyncUserWithLDAPForbidden
- type PostSyncUserWithLDAPInternalServerError
- type PostSyncUserWithLDAPOK
- type PostSyncUserWithLDAPParams
- func NewPostSyncUserWithLDAPParams() *PostSyncUserWithLDAPParams
- func NewPostSyncUserWithLDAPParamsWithContext(ctx context.Context) *PostSyncUserWithLDAPParams
- func NewPostSyncUserWithLDAPParamsWithHTTPClient(client *http.Client) *PostSyncUserWithLDAPParams
- func NewPostSyncUserWithLDAPParamsWithTimeout(timeout time.Duration) *PostSyncUserWithLDAPParams
- func (o *PostSyncUserWithLDAPParams) SetContext(ctx context.Context)
- func (o *PostSyncUserWithLDAPParams) SetDefaults()
- func (o *PostSyncUserWithLDAPParams) SetHTTPClient(client *http.Client)
- func (o *PostSyncUserWithLDAPParams) SetTimeout(timeout time.Duration)
- func (o *PostSyncUserWithLDAPParams) SetUserID(userID int64)
- func (o *PostSyncUserWithLDAPParams) WithContext(ctx context.Context) *PostSyncUserWithLDAPParams
- func (o *PostSyncUserWithLDAPParams) WithDefaults() *PostSyncUserWithLDAPParams
- func (o *PostSyncUserWithLDAPParams) WithHTTPClient(client *http.Client) *PostSyncUserWithLDAPParams
- func (o *PostSyncUserWithLDAPParams) WithTimeout(timeout time.Duration) *PostSyncUserWithLDAPParams
- func (o *PostSyncUserWithLDAPParams) WithUserID(userID int64) *PostSyncUserWithLDAPParams
- func (o *PostSyncUserWithLDAPParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type PostSyncUserWithLDAPReader
- type PostSyncUserWithLDAPUnauthorized
- type ReloadLDAPCfgForbidden
- type ReloadLDAPCfgInternalServerError
- type ReloadLDAPCfgOK
- type ReloadLDAPCfgParams
- func (o *ReloadLDAPCfgParams) SetContext(ctx context.Context)
- func (o *ReloadLDAPCfgParams) SetDefaults()
- func (o *ReloadLDAPCfgParams) SetHTTPClient(client *http.Client)
- func (o *ReloadLDAPCfgParams) SetTimeout(timeout time.Duration)
- func (o *ReloadLDAPCfgParams) WithContext(ctx context.Context) *ReloadLDAPCfgParams
- func (o *ReloadLDAPCfgParams) WithDefaults() *ReloadLDAPCfgParams
- func (o *ReloadLDAPCfgParams) WithHTTPClient(client *http.Client) *ReloadLDAPCfgParams
- func (o *ReloadLDAPCfgParams) WithTimeout(timeout time.Duration) *ReloadLDAPCfgParams
- func (o *ReloadLDAPCfgParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type ReloadLDAPCfgReader
- type ReloadLDAPCfgUnauthorized
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 admin ldap API
func (*Client) GetLDAPStatus ¶
func (a *Client) GetLDAPStatus(params *GetLDAPStatusParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetLDAPStatusOK, error)
GetLDAPStatus attempts to connect to all the configured l d a p servers and returns information on whenever they re available or not
If you are running Grafana Enterprise and have Fine-grained access control enabled, you need to have a permission with action `ldap.status:read`.
func (*Client) GetUserFromLDAP ¶
func (a *Client) GetUserFromLDAP(params *GetUserFromLDAPParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetUserFromLDAPOK, error)
GetUserFromLDAP finds an user based on a username in l d a p this helps illustrate how would the particular user be mapped in grafana when synced
If you are running Grafana Enterprise and have Fine-grained access control enabled, you need to have a permission with action `ldap.user:read`.
func (*Client) PostSyncUserWithLDAP ¶
func (a *Client) PostSyncUserWithLDAP(params *PostSyncUserWithLDAPParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*PostSyncUserWithLDAPOK, error)
PostSyncUserWithLDAP enables a single grafana user to be synchronized against l d a p
If you are running Grafana Enterprise and have Fine-grained access control enabled, you need to have a permission with action `ldap.user:sync`.
func (*Client) ReloadLDAPCfg ¶
func (a *Client) ReloadLDAPCfg(params *ReloadLDAPCfgParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ReloadLDAPCfgOK, error)
ReloadLDAPCfg reloads the l d a p configuration
If you are running Grafana Enterprise and have Fine-grained access control enabled, you need to have a permission with action `ldap.config:reload`.
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 { GetLDAPStatus(params *GetLDAPStatusParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetLDAPStatusOK, error) GetUserFromLDAP(params *GetUserFromLDAPParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetUserFromLDAPOK, error) PostSyncUserWithLDAP(params *PostSyncUserWithLDAPParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*PostSyncUserWithLDAPOK, error) ReloadLDAPCfg(params *ReloadLDAPCfgParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ReloadLDAPCfgOK, 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 admin ldap API client.
type GetLDAPStatusForbidden ¶
type GetLDAPStatusForbidden struct {
Payload *models.ErrorResponseBody
}
GetLDAPStatusForbidden describes a response with status code 403, with default header values.
ForbiddenError is returned if the user/token has insufficient permissions to access the requested resource.
func NewGetLDAPStatusForbidden ¶
func NewGetLDAPStatusForbidden() *GetLDAPStatusForbidden
NewGetLDAPStatusForbidden creates a GetLDAPStatusForbidden with default headers values
func (*GetLDAPStatusForbidden) Error ¶
func (o *GetLDAPStatusForbidden) Error() string
func (*GetLDAPStatusForbidden) GetPayload ¶
func (o *GetLDAPStatusForbidden) GetPayload() *models.ErrorResponseBody
type GetLDAPStatusInternalServerError ¶
type GetLDAPStatusInternalServerError struct {
Payload *models.ErrorResponseBody
}
GetLDAPStatusInternalServerError describes a response with status code 500, with default header values.
InternalServerError is a general error indicating something went wrong internally.
func NewGetLDAPStatusInternalServerError ¶
func NewGetLDAPStatusInternalServerError() *GetLDAPStatusInternalServerError
NewGetLDAPStatusInternalServerError creates a GetLDAPStatusInternalServerError with default headers values
func (*GetLDAPStatusInternalServerError) Error ¶
func (o *GetLDAPStatusInternalServerError) Error() string
func (*GetLDAPStatusInternalServerError) GetPayload ¶
func (o *GetLDAPStatusInternalServerError) GetPayload() *models.ErrorResponseBody
type GetLDAPStatusOK ¶
type GetLDAPStatusOK struct {
Payload *models.SuccessResponseBody
}
GetLDAPStatusOK describes a response with status code 200, with default header values.
An OKResponse is returned if the request was successful.
func NewGetLDAPStatusOK ¶
func NewGetLDAPStatusOK() *GetLDAPStatusOK
NewGetLDAPStatusOK creates a GetLDAPStatusOK with default headers values
func (*GetLDAPStatusOK) Error ¶
func (o *GetLDAPStatusOK) Error() string
func (*GetLDAPStatusOK) GetPayload ¶
func (o *GetLDAPStatusOK) GetPayload() *models.SuccessResponseBody
type GetLDAPStatusParams ¶
type GetLDAPStatusParams struct { Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
GetLDAPStatusParams contains all the parameters to send to the API endpoint
for the get l d a p status operation. Typically these are written to a http.Request.
func NewGetLDAPStatusParams ¶
func NewGetLDAPStatusParams() *GetLDAPStatusParams
NewGetLDAPStatusParams creates a new GetLDAPStatusParams 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 NewGetLDAPStatusParamsWithContext ¶
func NewGetLDAPStatusParamsWithContext(ctx context.Context) *GetLDAPStatusParams
NewGetLDAPStatusParamsWithContext creates a new GetLDAPStatusParams object with the ability to set a context for a request.
func NewGetLDAPStatusParamsWithHTTPClient ¶
func NewGetLDAPStatusParamsWithHTTPClient(client *http.Client) *GetLDAPStatusParams
NewGetLDAPStatusParamsWithHTTPClient creates a new GetLDAPStatusParams object with the ability to set a custom HTTPClient for a request.
func NewGetLDAPStatusParamsWithTimeout ¶
func NewGetLDAPStatusParamsWithTimeout(timeout time.Duration) *GetLDAPStatusParams
NewGetLDAPStatusParamsWithTimeout creates a new GetLDAPStatusParams object with the ability to set a timeout on a request.
func (*GetLDAPStatusParams) SetContext ¶
func (o *GetLDAPStatusParams) SetContext(ctx context.Context)
SetContext adds the context to the get l d a p status params
func (*GetLDAPStatusParams) SetDefaults ¶
func (o *GetLDAPStatusParams) SetDefaults()
SetDefaults hydrates default values in the get l d a p status params (not the query body).
All values with no default are reset to their zero value.
func (*GetLDAPStatusParams) SetHTTPClient ¶
func (o *GetLDAPStatusParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the get l d a p status params
func (*GetLDAPStatusParams) SetTimeout ¶
func (o *GetLDAPStatusParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the get l d a p status params
func (*GetLDAPStatusParams) WithContext ¶
func (o *GetLDAPStatusParams) WithContext(ctx context.Context) *GetLDAPStatusParams
WithContext adds the context to the get l d a p status params
func (*GetLDAPStatusParams) WithDefaults ¶
func (o *GetLDAPStatusParams) WithDefaults() *GetLDAPStatusParams
WithDefaults hydrates default values in the get l d a p status params (not the query body).
All values with no default are reset to their zero value.
func (*GetLDAPStatusParams) WithHTTPClient ¶
func (o *GetLDAPStatusParams) WithHTTPClient(client *http.Client) *GetLDAPStatusParams
WithHTTPClient adds the HTTPClient to the get l d a p status params
func (*GetLDAPStatusParams) WithTimeout ¶
func (o *GetLDAPStatusParams) WithTimeout(timeout time.Duration) *GetLDAPStatusParams
WithTimeout adds the timeout to the get l d a p status params
func (*GetLDAPStatusParams) WriteToRequest ¶
func (o *GetLDAPStatusParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type GetLDAPStatusReader ¶
type GetLDAPStatusReader struct {
// contains filtered or unexported fields
}
GetLDAPStatusReader is a Reader for the GetLDAPStatus structure.
func (*GetLDAPStatusReader) ReadResponse ¶
func (o *GetLDAPStatusReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type GetLDAPStatusUnauthorized ¶
type GetLDAPStatusUnauthorized struct {
}GetLDAPStatusUnauthorized describes a response with status code 401, with default header values.
UnauthorizedError is returned when the request is not authenticated.
func NewGetLDAPStatusUnauthorized ¶
func NewGetLDAPStatusUnauthorized() *GetLDAPStatusUnauthorized
NewGetLDAPStatusUnauthorized creates a GetLDAPStatusUnauthorized with default headers values
func (*GetLDAPStatusUnauthorized) Error ¶
func (o *GetLDAPStatusUnauthorized) Error() string
func (*GetLDAPStatusUnauthorized) GetPayload ¶
func (o *GetLDAPStatusUnauthorized) GetPayload() *models.ErrorResponseBody
type GetUserFromLDAPForbidden ¶
type GetUserFromLDAPForbidden struct {
Payload *models.ErrorResponseBody
}
GetUserFromLDAPForbidden describes a response with status code 403, with default header values.
ForbiddenError is returned if the user/token has insufficient permissions to access the requested resource.
func NewGetUserFromLDAPForbidden ¶
func NewGetUserFromLDAPForbidden() *GetUserFromLDAPForbidden
NewGetUserFromLDAPForbidden creates a GetUserFromLDAPForbidden with default headers values
func (*GetUserFromLDAPForbidden) Error ¶
func (o *GetUserFromLDAPForbidden) Error() string
func (*GetUserFromLDAPForbidden) GetPayload ¶
func (o *GetUserFromLDAPForbidden) GetPayload() *models.ErrorResponseBody
type GetUserFromLDAPInternalServerError ¶
type GetUserFromLDAPInternalServerError struct {
Payload *models.ErrorResponseBody
}
GetUserFromLDAPInternalServerError describes a response with status code 500, with default header values.
InternalServerError is a general error indicating something went wrong internally.
func NewGetUserFromLDAPInternalServerError ¶
func NewGetUserFromLDAPInternalServerError() *GetUserFromLDAPInternalServerError
NewGetUserFromLDAPInternalServerError creates a GetUserFromLDAPInternalServerError with default headers values
func (*GetUserFromLDAPInternalServerError) Error ¶
func (o *GetUserFromLDAPInternalServerError) Error() string
func (*GetUserFromLDAPInternalServerError) GetPayload ¶
func (o *GetUserFromLDAPInternalServerError) GetPayload() *models.ErrorResponseBody
type GetUserFromLDAPOK ¶
type GetUserFromLDAPOK struct {
Payload *models.SuccessResponseBody
}
GetUserFromLDAPOK describes a response with status code 200, with default header values.
An OKResponse is returned if the request was successful.
func NewGetUserFromLDAPOK ¶
func NewGetUserFromLDAPOK() *GetUserFromLDAPOK
NewGetUserFromLDAPOK creates a GetUserFromLDAPOK with default headers values
func (*GetUserFromLDAPOK) Error ¶
func (o *GetUserFromLDAPOK) Error() string
func (*GetUserFromLDAPOK) GetPayload ¶
func (o *GetUserFromLDAPOK) GetPayload() *models.SuccessResponseBody
type GetUserFromLDAPParams ¶
type GetUserFromLDAPParams struct { // UserName. UserName string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
GetUserFromLDAPParams contains all the parameters to send to the API endpoint
for the get user from l d a p operation. Typically these are written to a http.Request.
func NewGetUserFromLDAPParams ¶
func NewGetUserFromLDAPParams() *GetUserFromLDAPParams
NewGetUserFromLDAPParams creates a new GetUserFromLDAPParams 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 NewGetUserFromLDAPParamsWithContext ¶
func NewGetUserFromLDAPParamsWithContext(ctx context.Context) *GetUserFromLDAPParams
NewGetUserFromLDAPParamsWithContext creates a new GetUserFromLDAPParams object with the ability to set a context for a request.
func NewGetUserFromLDAPParamsWithHTTPClient ¶
func NewGetUserFromLDAPParamsWithHTTPClient(client *http.Client) *GetUserFromLDAPParams
NewGetUserFromLDAPParamsWithHTTPClient creates a new GetUserFromLDAPParams object with the ability to set a custom HTTPClient for a request.
func NewGetUserFromLDAPParamsWithTimeout ¶
func NewGetUserFromLDAPParamsWithTimeout(timeout time.Duration) *GetUserFromLDAPParams
NewGetUserFromLDAPParamsWithTimeout creates a new GetUserFromLDAPParams object with the ability to set a timeout on a request.
func (*GetUserFromLDAPParams) SetContext ¶
func (o *GetUserFromLDAPParams) SetContext(ctx context.Context)
SetContext adds the context to the get user from l d a p params
func (*GetUserFromLDAPParams) SetDefaults ¶
func (o *GetUserFromLDAPParams) SetDefaults()
SetDefaults hydrates default values in the get user from l d a p params (not the query body).
All values with no default are reset to their zero value.
func (*GetUserFromLDAPParams) SetHTTPClient ¶
func (o *GetUserFromLDAPParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the get user from l d a p params
func (*GetUserFromLDAPParams) SetTimeout ¶
func (o *GetUserFromLDAPParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the get user from l d a p params
func (*GetUserFromLDAPParams) SetUserName ¶
func (o *GetUserFromLDAPParams) SetUserName(userName string)
SetUserName adds the userName to the get user from l d a p params
func (*GetUserFromLDAPParams) WithContext ¶
func (o *GetUserFromLDAPParams) WithContext(ctx context.Context) *GetUserFromLDAPParams
WithContext adds the context to the get user from l d a p params
func (*GetUserFromLDAPParams) WithDefaults ¶
func (o *GetUserFromLDAPParams) WithDefaults() *GetUserFromLDAPParams
WithDefaults hydrates default values in the get user from l d a p params (not the query body).
All values with no default are reset to their zero value.
func (*GetUserFromLDAPParams) WithHTTPClient ¶
func (o *GetUserFromLDAPParams) WithHTTPClient(client *http.Client) *GetUserFromLDAPParams
WithHTTPClient adds the HTTPClient to the get user from l d a p params
func (*GetUserFromLDAPParams) WithTimeout ¶
func (o *GetUserFromLDAPParams) WithTimeout(timeout time.Duration) *GetUserFromLDAPParams
WithTimeout adds the timeout to the get user from l d a p params
func (*GetUserFromLDAPParams) WithUserName ¶
func (o *GetUserFromLDAPParams) WithUserName(userName string) *GetUserFromLDAPParams
WithUserName adds the userName to the get user from l d a p params
func (*GetUserFromLDAPParams) WriteToRequest ¶
func (o *GetUserFromLDAPParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type GetUserFromLDAPReader ¶
type GetUserFromLDAPReader struct {
// contains filtered or unexported fields
}
GetUserFromLDAPReader is a Reader for the GetUserFromLDAP structure.
func (*GetUserFromLDAPReader) ReadResponse ¶
func (o *GetUserFromLDAPReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type GetUserFromLDAPUnauthorized ¶
type GetUserFromLDAPUnauthorized struct {
}GetUserFromLDAPUnauthorized describes a response with status code 401, with default header values.
UnauthorizedError is returned when the request is not authenticated.
func NewGetUserFromLDAPUnauthorized ¶
func NewGetUserFromLDAPUnauthorized() *GetUserFromLDAPUnauthorized
NewGetUserFromLDAPUnauthorized creates a GetUserFromLDAPUnauthorized with default headers values
func (*GetUserFromLDAPUnauthorized) Error ¶
func (o *GetUserFromLDAPUnauthorized) Error() string
func (*GetUserFromLDAPUnauthorized) GetPayload ¶
func (o *GetUserFromLDAPUnauthorized) GetPayload() *models.ErrorResponseBody
type PostSyncUserWithLDAPForbidden ¶
type PostSyncUserWithLDAPForbidden struct {
Payload *models.ErrorResponseBody
}
PostSyncUserWithLDAPForbidden describes a response with status code 403, with default header values.
ForbiddenError is returned if the user/token has insufficient permissions to access the requested resource.
func NewPostSyncUserWithLDAPForbidden ¶
func NewPostSyncUserWithLDAPForbidden() *PostSyncUserWithLDAPForbidden
NewPostSyncUserWithLDAPForbidden creates a PostSyncUserWithLDAPForbidden with default headers values
func (*PostSyncUserWithLDAPForbidden) Error ¶
func (o *PostSyncUserWithLDAPForbidden) Error() string
func (*PostSyncUserWithLDAPForbidden) GetPayload ¶
func (o *PostSyncUserWithLDAPForbidden) GetPayload() *models.ErrorResponseBody
type PostSyncUserWithLDAPInternalServerError ¶
type PostSyncUserWithLDAPInternalServerError struct {
Payload *models.ErrorResponseBody
}
PostSyncUserWithLDAPInternalServerError describes a response with status code 500, with default header values.
InternalServerError is a general error indicating something went wrong internally.
func NewPostSyncUserWithLDAPInternalServerError ¶
func NewPostSyncUserWithLDAPInternalServerError() *PostSyncUserWithLDAPInternalServerError
NewPostSyncUserWithLDAPInternalServerError creates a PostSyncUserWithLDAPInternalServerError with default headers values
func (*PostSyncUserWithLDAPInternalServerError) Error ¶
func (o *PostSyncUserWithLDAPInternalServerError) Error() string
func (*PostSyncUserWithLDAPInternalServerError) GetPayload ¶
func (o *PostSyncUserWithLDAPInternalServerError) GetPayload() *models.ErrorResponseBody
type PostSyncUserWithLDAPOK ¶
type PostSyncUserWithLDAPOK struct {
Payload *models.SuccessResponseBody
}
PostSyncUserWithLDAPOK describes a response with status code 200, with default header values.
An OKResponse is returned if the request was successful.
func NewPostSyncUserWithLDAPOK ¶
func NewPostSyncUserWithLDAPOK() *PostSyncUserWithLDAPOK
NewPostSyncUserWithLDAPOK creates a PostSyncUserWithLDAPOK with default headers values
func (*PostSyncUserWithLDAPOK) Error ¶
func (o *PostSyncUserWithLDAPOK) Error() string
func (*PostSyncUserWithLDAPOK) GetPayload ¶
func (o *PostSyncUserWithLDAPOK) GetPayload() *models.SuccessResponseBody
type PostSyncUserWithLDAPParams ¶
type PostSyncUserWithLDAPParams struct { // UserID. // // Format: int64 UserID int64 Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
PostSyncUserWithLDAPParams contains all the parameters to send to the API endpoint
for the post sync user with l d a p operation. Typically these are written to a http.Request.
func NewPostSyncUserWithLDAPParams ¶
func NewPostSyncUserWithLDAPParams() *PostSyncUserWithLDAPParams
NewPostSyncUserWithLDAPParams creates a new PostSyncUserWithLDAPParams 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 NewPostSyncUserWithLDAPParamsWithContext ¶
func NewPostSyncUserWithLDAPParamsWithContext(ctx context.Context) *PostSyncUserWithLDAPParams
NewPostSyncUserWithLDAPParamsWithContext creates a new PostSyncUserWithLDAPParams object with the ability to set a context for a request.
func NewPostSyncUserWithLDAPParamsWithHTTPClient ¶
func NewPostSyncUserWithLDAPParamsWithHTTPClient(client *http.Client) *PostSyncUserWithLDAPParams
NewPostSyncUserWithLDAPParamsWithHTTPClient creates a new PostSyncUserWithLDAPParams object with the ability to set a custom HTTPClient for a request.
func NewPostSyncUserWithLDAPParamsWithTimeout ¶
func NewPostSyncUserWithLDAPParamsWithTimeout(timeout time.Duration) *PostSyncUserWithLDAPParams
NewPostSyncUserWithLDAPParamsWithTimeout creates a new PostSyncUserWithLDAPParams object with the ability to set a timeout on a request.
func (*PostSyncUserWithLDAPParams) SetContext ¶
func (o *PostSyncUserWithLDAPParams) SetContext(ctx context.Context)
SetContext adds the context to the post sync user with l d a p params
func (*PostSyncUserWithLDAPParams) SetDefaults ¶
func (o *PostSyncUserWithLDAPParams) SetDefaults()
SetDefaults hydrates default values in the post sync user with l d a p params (not the query body).
All values with no default are reset to their zero value.
func (*PostSyncUserWithLDAPParams) SetHTTPClient ¶
func (o *PostSyncUserWithLDAPParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the post sync user with l d a p params
func (*PostSyncUserWithLDAPParams) SetTimeout ¶
func (o *PostSyncUserWithLDAPParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the post sync user with l d a p params
func (*PostSyncUserWithLDAPParams) SetUserID ¶
func (o *PostSyncUserWithLDAPParams) SetUserID(userID int64)
SetUserID adds the userId to the post sync user with l d a p params
func (*PostSyncUserWithLDAPParams) WithContext ¶
func (o *PostSyncUserWithLDAPParams) WithContext(ctx context.Context) *PostSyncUserWithLDAPParams
WithContext adds the context to the post sync user with l d a p params
func (*PostSyncUserWithLDAPParams) WithDefaults ¶
func (o *PostSyncUserWithLDAPParams) WithDefaults() *PostSyncUserWithLDAPParams
WithDefaults hydrates default values in the post sync user with l d a p params (not the query body).
All values with no default are reset to their zero value.
func (*PostSyncUserWithLDAPParams) WithHTTPClient ¶
func (o *PostSyncUserWithLDAPParams) WithHTTPClient(client *http.Client) *PostSyncUserWithLDAPParams
WithHTTPClient adds the HTTPClient to the post sync user with l d a p params
func (*PostSyncUserWithLDAPParams) WithTimeout ¶
func (o *PostSyncUserWithLDAPParams) WithTimeout(timeout time.Duration) *PostSyncUserWithLDAPParams
WithTimeout adds the timeout to the post sync user with l d a p params
func (*PostSyncUserWithLDAPParams) WithUserID ¶
func (o *PostSyncUserWithLDAPParams) WithUserID(userID int64) *PostSyncUserWithLDAPParams
WithUserID adds the userID to the post sync user with l d a p params
func (*PostSyncUserWithLDAPParams) WriteToRequest ¶
func (o *PostSyncUserWithLDAPParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type PostSyncUserWithLDAPReader ¶
type PostSyncUserWithLDAPReader struct {
// contains filtered or unexported fields
}
PostSyncUserWithLDAPReader is a Reader for the PostSyncUserWithLDAP structure.
func (*PostSyncUserWithLDAPReader) ReadResponse ¶
func (o *PostSyncUserWithLDAPReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type PostSyncUserWithLDAPUnauthorized ¶
type PostSyncUserWithLDAPUnauthorized struct {
}PostSyncUserWithLDAPUnauthorized describes a response with status code 401, with default header values.
UnauthorizedError is returned when the request is not authenticated.
func NewPostSyncUserWithLDAPUnauthorized ¶
func NewPostSyncUserWithLDAPUnauthorized() *PostSyncUserWithLDAPUnauthorized
NewPostSyncUserWithLDAPUnauthorized creates a PostSyncUserWithLDAPUnauthorized with default headers values
func (*PostSyncUserWithLDAPUnauthorized) Error ¶
func (o *PostSyncUserWithLDAPUnauthorized) Error() string
func (*PostSyncUserWithLDAPUnauthorized) GetPayload ¶
func (o *PostSyncUserWithLDAPUnauthorized) GetPayload() *models.ErrorResponseBody
type ReloadLDAPCfgForbidden ¶
type ReloadLDAPCfgForbidden struct {
Payload *models.ErrorResponseBody
}
ReloadLDAPCfgForbidden describes a response with status code 403, with default header values.
ForbiddenError is returned if the user/token has insufficient permissions to access the requested resource.
func NewReloadLDAPCfgForbidden ¶
func NewReloadLDAPCfgForbidden() *ReloadLDAPCfgForbidden
NewReloadLDAPCfgForbidden creates a ReloadLDAPCfgForbidden with default headers values
func (*ReloadLDAPCfgForbidden) Error ¶
func (o *ReloadLDAPCfgForbidden) Error() string
func (*ReloadLDAPCfgForbidden) GetPayload ¶
func (o *ReloadLDAPCfgForbidden) GetPayload() *models.ErrorResponseBody
type ReloadLDAPCfgInternalServerError ¶
type ReloadLDAPCfgInternalServerError struct {
Payload *models.ErrorResponseBody
}
ReloadLDAPCfgInternalServerError describes a response with status code 500, with default header values.
InternalServerError is a general error indicating something went wrong internally.
func NewReloadLDAPCfgInternalServerError ¶
func NewReloadLDAPCfgInternalServerError() *ReloadLDAPCfgInternalServerError
NewReloadLDAPCfgInternalServerError creates a ReloadLDAPCfgInternalServerError with default headers values
func (*ReloadLDAPCfgInternalServerError) Error ¶
func (o *ReloadLDAPCfgInternalServerError) Error() string
func (*ReloadLDAPCfgInternalServerError) GetPayload ¶
func (o *ReloadLDAPCfgInternalServerError) GetPayload() *models.ErrorResponseBody
type ReloadLDAPCfgOK ¶
type ReloadLDAPCfgOK struct {
Payload *models.SuccessResponseBody
}
ReloadLDAPCfgOK describes a response with status code 200, with default header values.
An OKResponse is returned if the request was successful.
func NewReloadLDAPCfgOK ¶
func NewReloadLDAPCfgOK() *ReloadLDAPCfgOK
NewReloadLDAPCfgOK creates a ReloadLDAPCfgOK with default headers values
func (*ReloadLDAPCfgOK) Error ¶
func (o *ReloadLDAPCfgOK) Error() string
func (*ReloadLDAPCfgOK) GetPayload ¶
func (o *ReloadLDAPCfgOK) GetPayload() *models.SuccessResponseBody
type ReloadLDAPCfgParams ¶
type ReloadLDAPCfgParams struct { Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
ReloadLDAPCfgParams contains all the parameters to send to the API endpoint
for the reload l d a p cfg operation. Typically these are written to a http.Request.
func NewReloadLDAPCfgParams ¶
func NewReloadLDAPCfgParams() *ReloadLDAPCfgParams
NewReloadLDAPCfgParams creates a new ReloadLDAPCfgParams 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 NewReloadLDAPCfgParamsWithContext ¶
func NewReloadLDAPCfgParamsWithContext(ctx context.Context) *ReloadLDAPCfgParams
NewReloadLDAPCfgParamsWithContext creates a new ReloadLDAPCfgParams object with the ability to set a context for a request.
func NewReloadLDAPCfgParamsWithHTTPClient ¶
func NewReloadLDAPCfgParamsWithHTTPClient(client *http.Client) *ReloadLDAPCfgParams
NewReloadLDAPCfgParamsWithHTTPClient creates a new ReloadLDAPCfgParams object with the ability to set a custom HTTPClient for a request.
func NewReloadLDAPCfgParamsWithTimeout ¶
func NewReloadLDAPCfgParamsWithTimeout(timeout time.Duration) *ReloadLDAPCfgParams
NewReloadLDAPCfgParamsWithTimeout creates a new ReloadLDAPCfgParams object with the ability to set a timeout on a request.
func (*ReloadLDAPCfgParams) SetContext ¶
func (o *ReloadLDAPCfgParams) SetContext(ctx context.Context)
SetContext adds the context to the reload l d a p cfg params
func (*ReloadLDAPCfgParams) SetDefaults ¶
func (o *ReloadLDAPCfgParams) SetDefaults()
SetDefaults hydrates default values in the reload l d a p cfg params (not the query body).
All values with no default are reset to their zero value.
func (*ReloadLDAPCfgParams) SetHTTPClient ¶
func (o *ReloadLDAPCfgParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the reload l d a p cfg params
func (*ReloadLDAPCfgParams) SetTimeout ¶
func (o *ReloadLDAPCfgParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the reload l d a p cfg params
func (*ReloadLDAPCfgParams) WithContext ¶
func (o *ReloadLDAPCfgParams) WithContext(ctx context.Context) *ReloadLDAPCfgParams
WithContext adds the context to the reload l d a p cfg params
func (*ReloadLDAPCfgParams) WithDefaults ¶
func (o *ReloadLDAPCfgParams) WithDefaults() *ReloadLDAPCfgParams
WithDefaults hydrates default values in the reload l d a p cfg params (not the query body).
All values with no default are reset to their zero value.
func (*ReloadLDAPCfgParams) WithHTTPClient ¶
func (o *ReloadLDAPCfgParams) WithHTTPClient(client *http.Client) *ReloadLDAPCfgParams
WithHTTPClient adds the HTTPClient to the reload l d a p cfg params
func (*ReloadLDAPCfgParams) WithTimeout ¶
func (o *ReloadLDAPCfgParams) WithTimeout(timeout time.Duration) *ReloadLDAPCfgParams
WithTimeout adds the timeout to the reload l d a p cfg params
func (*ReloadLDAPCfgParams) WriteToRequest ¶
func (o *ReloadLDAPCfgParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type ReloadLDAPCfgReader ¶
type ReloadLDAPCfgReader struct {
// contains filtered or unexported fields
}
ReloadLDAPCfgReader is a Reader for the ReloadLDAPCfg structure.
func (*ReloadLDAPCfgReader) ReadResponse ¶
func (o *ReloadLDAPCfgReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type ReloadLDAPCfgUnauthorized ¶
type ReloadLDAPCfgUnauthorized struct {
}ReloadLDAPCfgUnauthorized describes a response with status code 401, with default header values.
UnauthorizedError is returned when the request is not authenticated.
func NewReloadLDAPCfgUnauthorized ¶
func NewReloadLDAPCfgUnauthorized() *ReloadLDAPCfgUnauthorized
NewReloadLDAPCfgUnauthorized creates a ReloadLDAPCfgUnauthorized with default headers values
func (*ReloadLDAPCfgUnauthorized) Error ¶
func (o *ReloadLDAPCfgUnauthorized) Error() string
func (*ReloadLDAPCfgUnauthorized) GetPayload ¶
func (o *ReloadLDAPCfgUnauthorized) GetPayload() *models.ErrorResponseBody
Source Files
¶
- admin_ldap_client.go
- get_l_d_a_p_status_parameters.go
- get_l_d_a_p_status_responses.go
- get_user_from_l_d_a_p_parameters.go
- get_user_from_l_d_a_p_responses.go
- post_sync_user_with_l_d_a_p_parameters.go
- post_sync_user_with_l_d_a_p_responses.go
- reload_l_d_a_p_cfg_parameters.go
- reload_l_d_a_p_cfg_responses.go