admin_ldap

package
v0.0.0-...-d4d7cce Latest Latest
Warning

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

Go to latest
Published: Nov 22, 2023 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

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

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 (*GetLDAPStatusInternalServerError) GetPayload

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

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 {
	Payload *models.ErrorResponseBody
}

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

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

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 (*GetUserFromLDAPInternalServerError) GetPayload

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

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 {
	Payload *models.ErrorResponseBody
}

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 (*GetUserFromLDAPUnauthorized) GetPayload

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 (*PostSyncUserWithLDAPForbidden) GetPayload

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 (*PostSyncUserWithLDAPInternalServerError) GetPayload

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

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

WithContext adds the context to the post sync user with l d a p params

func (*PostSyncUserWithLDAPParams) WithDefaults

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

WithHTTPClient adds the HTTPClient to the post sync user with l d a p params

func (*PostSyncUserWithLDAPParams) WithTimeout

WithTimeout adds the timeout to the post sync user with l d a p params

func (*PostSyncUserWithLDAPParams) WithUserID

WithUserID adds the userID to the post sync user with l d a p params

func (*PostSyncUserWithLDAPParams) WriteToRequest

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 {
	Payload *models.ErrorResponseBody
}

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 (*PostSyncUserWithLDAPUnauthorized) GetPayload

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

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 (*ReloadLDAPCfgInternalServerError) GetPayload

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

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 {
	Payload *models.ErrorResponseBody
}

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

Jump to

Keyboard shortcuts

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