ldap

package
v5.1.0 Latest Latest
Warning

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

Go to latest
Published: May 4, 2022 License: MIT Imports: 10 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 ldap API

func (*Client) ImportLdapUser

func (a *Client) ImportLdapUser(params *ImportLdapUserParams, authInfo runtime.ClientAuthInfoWriter) (*ImportLdapUserOK, error)

ImportLdapUser imports selected available ldap users

This endpoint adds the selected available ldap users to harbor based on related configuration parameters from the system. System will try to guess the user email address and realname, add to harbor user information. If have errors when import user, will return the list of importing failed uid and the failed reason.

func (*Client) PingLdap

func (a *Client) PingLdap(params *PingLdapParams, authInfo runtime.ClientAuthInfoWriter) (*PingLdapOK, error)

PingLdap pings available ldap service

This endpoint ping the available ldap service for test related configuration parameters.

func (*Client) SearchLdapGroup

func (a *Client) SearchLdapGroup(params *SearchLdapGroupParams, authInfo runtime.ClientAuthInfoWriter) (*SearchLdapGroupOK, error)

SearchLdapGroup searches available ldap groups

This endpoint searches the available ldap groups based on related configuration parameters. support to search by groupname or groupdn.

func (*Client) SearchLdapUser

func (a *Client) SearchLdapUser(params *SearchLdapUserParams, authInfo runtime.ClientAuthInfoWriter) (*SearchLdapUserOK, error)

SearchLdapUser searches available ldap users

This endpoint searches the available ldap users based on related configuration parameters. Support searched by input ladp configuration, load configuration from the system and specific filter.

func (*Client) SetTransport

func (a *Client) SetTransport(transport runtime.ClientTransport)

SetTransport changes the transport on the client

type ClientService

type ClientService interface {
	ImportLdapUser(params *ImportLdapUserParams, authInfo runtime.ClientAuthInfoWriter) (*ImportLdapUserOK, error)

	PingLdap(params *PingLdapParams, authInfo runtime.ClientAuthInfoWriter) (*PingLdapOK, error)

	SearchLdapGroup(params *SearchLdapGroupParams, authInfo runtime.ClientAuthInfoWriter) (*SearchLdapGroupOK, error)

	SearchLdapUser(params *SearchLdapUserParams, authInfo runtime.ClientAuthInfoWriter) (*SearchLdapUserOK, 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 ldap API client.

type ImportLdapUserBadRequest

type ImportLdapUserBadRequest struct {
	/*The ID of the corresponding request for the response
	 */
	XRequestID string

	Payload *model.Errors
}

ImportLdapUserBadRequest handles this case with default header values.

Bad request

func NewImportLdapUserBadRequest

func NewImportLdapUserBadRequest() *ImportLdapUserBadRequest

NewImportLdapUserBadRequest creates a ImportLdapUserBadRequest with default headers values

func (*ImportLdapUserBadRequest) Error

func (o *ImportLdapUserBadRequest) Error() string

func (*ImportLdapUserBadRequest) GetPayload

func (o *ImportLdapUserBadRequest) GetPayload() *model.Errors

type ImportLdapUserForbidden

type ImportLdapUserForbidden struct {
	/*The ID of the corresponding request for the response
	 */
	XRequestID string

	Payload *model.Errors
}

ImportLdapUserForbidden handles this case with default header values.

Forbidden

func NewImportLdapUserForbidden

func NewImportLdapUserForbidden() *ImportLdapUserForbidden

NewImportLdapUserForbidden creates a ImportLdapUserForbidden with default headers values

func (*ImportLdapUserForbidden) Error

func (o *ImportLdapUserForbidden) Error() string

func (*ImportLdapUserForbidden) GetPayload

func (o *ImportLdapUserForbidden) GetPayload() *model.Errors

type ImportLdapUserInternalServerError

type ImportLdapUserInternalServerError struct {
	/*The ID of the corresponding request for the response
	 */
	XRequestID string

	Payload *model.Errors
}

ImportLdapUserInternalServerError handles this case with default header values.

Internal server error

func NewImportLdapUserInternalServerError

func NewImportLdapUserInternalServerError() *ImportLdapUserInternalServerError

NewImportLdapUserInternalServerError creates a ImportLdapUserInternalServerError with default headers values

func (*ImportLdapUserInternalServerError) Error

func (*ImportLdapUserInternalServerError) GetPayload

type ImportLdapUserNotFound

type ImportLdapUserNotFound struct {
	Payload []*model.LdapFailedImportUser
}

ImportLdapUserNotFound handles this case with default header values.

Failed import some users.

func NewImportLdapUserNotFound

func NewImportLdapUserNotFound() *ImportLdapUserNotFound

NewImportLdapUserNotFound creates a ImportLdapUserNotFound with default headers values

func (*ImportLdapUserNotFound) Error

func (o *ImportLdapUserNotFound) Error() string

func (*ImportLdapUserNotFound) GetPayload

type ImportLdapUserOK

type ImportLdapUserOK struct {
}

ImportLdapUserOK handles this case with default header values.

Add ldap users successfully.

func NewImportLdapUserOK

func NewImportLdapUserOK() *ImportLdapUserOK

NewImportLdapUserOK creates a ImportLdapUserOK with default headers values

func (*ImportLdapUserOK) Error

func (o *ImportLdapUserOK) Error() string

type ImportLdapUserParams

type ImportLdapUserParams struct {

	/*XRequestID
	  An unique ID for the request

	*/
	XRequestID *string
	/*UIDList
	  The uid listed for importing. This list will check users validity of ldap service based on configuration from the system.

	*/
	UIDList *model.LdapImportUsers

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

ImportLdapUserParams contains all the parameters to send to the API endpoint for the import ldap user operation typically these are written to a http.Request

func NewImportLdapUserParams

func NewImportLdapUserParams() *ImportLdapUserParams

NewImportLdapUserParams creates a new ImportLdapUserParams object with the default values initialized.

func NewImportLdapUserParamsWithContext

func NewImportLdapUserParamsWithContext(ctx context.Context) *ImportLdapUserParams

NewImportLdapUserParamsWithContext creates a new ImportLdapUserParams object with the default values initialized, and the ability to set a context for a request

func NewImportLdapUserParamsWithHTTPClient

func NewImportLdapUserParamsWithHTTPClient(client *http.Client) *ImportLdapUserParams

NewImportLdapUserParamsWithHTTPClient creates a new ImportLdapUserParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewImportLdapUserParamsWithTimeout

func NewImportLdapUserParamsWithTimeout(timeout time.Duration) *ImportLdapUserParams

NewImportLdapUserParamsWithTimeout creates a new ImportLdapUserParams object with the default values initialized, and the ability to set a timeout on a request

func (*ImportLdapUserParams) SetContext

func (o *ImportLdapUserParams) SetContext(ctx context.Context)

SetContext adds the context to the import ldap user params

func (*ImportLdapUserParams) SetHTTPClient

func (o *ImportLdapUserParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the import ldap user params

func (*ImportLdapUserParams) SetTimeout

func (o *ImportLdapUserParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the import ldap user params

func (*ImportLdapUserParams) SetUIDList

func (o *ImportLdapUserParams) SetUIDList(uIDList *model.LdapImportUsers)

SetUIDList adds the uidList to the import ldap user params

func (*ImportLdapUserParams) SetXRequestID

func (o *ImportLdapUserParams) SetXRequestID(xRequestID *string)

SetXRequestID adds the xRequestId to the import ldap user params

func (*ImportLdapUserParams) WithContext

WithContext adds the context to the import ldap user params

func (*ImportLdapUserParams) WithHTTPClient

func (o *ImportLdapUserParams) WithHTTPClient(client *http.Client) *ImportLdapUserParams

WithHTTPClient adds the HTTPClient to the import ldap user params

func (*ImportLdapUserParams) WithTimeout

func (o *ImportLdapUserParams) WithTimeout(timeout time.Duration) *ImportLdapUserParams

WithTimeout adds the timeout to the import ldap user params

func (*ImportLdapUserParams) WithUIDList

WithUIDList adds the uIDList to the import ldap user params

func (*ImportLdapUserParams) WithXRequestID

func (o *ImportLdapUserParams) WithXRequestID(xRequestID *string) *ImportLdapUserParams

WithXRequestID adds the xRequestID to the import ldap user params

func (*ImportLdapUserParams) WriteToRequest

func (o *ImportLdapUserParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type ImportLdapUserReader

type ImportLdapUserReader struct {
	// contains filtered or unexported fields
}

ImportLdapUserReader is a Reader for the ImportLdapUser structure.

func (*ImportLdapUserReader) ReadResponse

func (o *ImportLdapUserReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type ImportLdapUserUnauthorized

type ImportLdapUserUnauthorized struct {
	/*The ID of the corresponding request for the response
	 */
	XRequestID string

	Payload *model.Errors
}

ImportLdapUserUnauthorized handles this case with default header values.

Unauthorized

func NewImportLdapUserUnauthorized

func NewImportLdapUserUnauthorized() *ImportLdapUserUnauthorized

NewImportLdapUserUnauthorized creates a ImportLdapUserUnauthorized with default headers values

func (*ImportLdapUserUnauthorized) Error

func (*ImportLdapUserUnauthorized) GetPayload

func (o *ImportLdapUserUnauthorized) GetPayload() *model.Errors

type PingLdapBadRequest

type PingLdapBadRequest struct {
	/*The ID of the corresponding request for the response
	 */
	XRequestID string

	Payload *model.Errors
}

PingLdapBadRequest handles this case with default header values.

Bad request

func NewPingLdapBadRequest

func NewPingLdapBadRequest() *PingLdapBadRequest

NewPingLdapBadRequest creates a PingLdapBadRequest with default headers values

func (*PingLdapBadRequest) Error

func (o *PingLdapBadRequest) Error() string

func (*PingLdapBadRequest) GetPayload

func (o *PingLdapBadRequest) GetPayload() *model.Errors

type PingLdapForbidden

type PingLdapForbidden struct {
	/*The ID of the corresponding request for the response
	 */
	XRequestID string

	Payload *model.Errors
}

PingLdapForbidden handles this case with default header values.

Forbidden

func NewPingLdapForbidden

func NewPingLdapForbidden() *PingLdapForbidden

NewPingLdapForbidden creates a PingLdapForbidden with default headers values

func (*PingLdapForbidden) Error

func (o *PingLdapForbidden) Error() string

func (*PingLdapForbidden) GetPayload

func (o *PingLdapForbidden) GetPayload() *model.Errors

type PingLdapInternalServerError

type PingLdapInternalServerError struct {
	/*The ID of the corresponding request for the response
	 */
	XRequestID string

	Payload *model.Errors
}

PingLdapInternalServerError handles this case with default header values.

Internal server error

func NewPingLdapInternalServerError

func NewPingLdapInternalServerError() *PingLdapInternalServerError

NewPingLdapInternalServerError creates a PingLdapInternalServerError with default headers values

func (*PingLdapInternalServerError) Error

func (*PingLdapInternalServerError) GetPayload

func (o *PingLdapInternalServerError) GetPayload() *model.Errors

type PingLdapOK

type PingLdapOK struct {
	Payload *model.LdapPingResult
}

PingLdapOK handles this case with default header values.

Ping ldap service successfully.

func NewPingLdapOK

func NewPingLdapOK() *PingLdapOK

NewPingLdapOK creates a PingLdapOK with default headers values

func (*PingLdapOK) Error

func (o *PingLdapOK) Error() string

func (*PingLdapOK) GetPayload

func (o *PingLdapOK) GetPayload() *model.LdapPingResult

type PingLdapParams

type PingLdapParams struct {

	/*XRequestID
	  An unique ID for the request

	*/
	XRequestID *string
	/*Ldapconf
	  ldap configuration. support input ldap service configuration. If it is a empty request, will load current configuration from the system.

	*/
	Ldapconf *model.LdapConf

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

PingLdapParams contains all the parameters to send to the API endpoint for the ping ldap operation typically these are written to a http.Request

func NewPingLdapParams

func NewPingLdapParams() *PingLdapParams

NewPingLdapParams creates a new PingLdapParams object with the default values initialized.

func NewPingLdapParamsWithContext

func NewPingLdapParamsWithContext(ctx context.Context) *PingLdapParams

NewPingLdapParamsWithContext creates a new PingLdapParams object with the default values initialized, and the ability to set a context for a request

func NewPingLdapParamsWithHTTPClient

func NewPingLdapParamsWithHTTPClient(client *http.Client) *PingLdapParams

NewPingLdapParamsWithHTTPClient creates a new PingLdapParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewPingLdapParamsWithTimeout

func NewPingLdapParamsWithTimeout(timeout time.Duration) *PingLdapParams

NewPingLdapParamsWithTimeout creates a new PingLdapParams object with the default values initialized, and the ability to set a timeout on a request

func (*PingLdapParams) SetContext

func (o *PingLdapParams) SetContext(ctx context.Context)

SetContext adds the context to the ping ldap params

func (*PingLdapParams) SetHTTPClient

func (o *PingLdapParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the ping ldap params

func (*PingLdapParams) SetLdapconf

func (o *PingLdapParams) SetLdapconf(ldapconf *model.LdapConf)

SetLdapconf adds the ldapconf to the ping ldap params

func (*PingLdapParams) SetTimeout

func (o *PingLdapParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the ping ldap params

func (*PingLdapParams) SetXRequestID

func (o *PingLdapParams) SetXRequestID(xRequestID *string)

SetXRequestID adds the xRequestId to the ping ldap params

func (*PingLdapParams) WithContext

func (o *PingLdapParams) WithContext(ctx context.Context) *PingLdapParams

WithContext adds the context to the ping ldap params

func (*PingLdapParams) WithHTTPClient

func (o *PingLdapParams) WithHTTPClient(client *http.Client) *PingLdapParams

WithHTTPClient adds the HTTPClient to the ping ldap params

func (*PingLdapParams) WithLdapconf

func (o *PingLdapParams) WithLdapconf(ldapconf *model.LdapConf) *PingLdapParams

WithLdapconf adds the ldapconf to the ping ldap params

func (*PingLdapParams) WithTimeout

func (o *PingLdapParams) WithTimeout(timeout time.Duration) *PingLdapParams

WithTimeout adds the timeout to the ping ldap params

func (*PingLdapParams) WithXRequestID

func (o *PingLdapParams) WithXRequestID(xRequestID *string) *PingLdapParams

WithXRequestID adds the xRequestID to the ping ldap params

func (*PingLdapParams) WriteToRequest

func (o *PingLdapParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type PingLdapReader

type PingLdapReader struct {
	// contains filtered or unexported fields
}

PingLdapReader is a Reader for the PingLdap structure.

func (*PingLdapReader) ReadResponse

func (o *PingLdapReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type PingLdapUnauthorized

type PingLdapUnauthorized struct {
	/*The ID of the corresponding request for the response
	 */
	XRequestID string

	Payload *model.Errors
}

PingLdapUnauthorized handles this case with default header values.

Unauthorized

func NewPingLdapUnauthorized

func NewPingLdapUnauthorized() *PingLdapUnauthorized

NewPingLdapUnauthorized creates a PingLdapUnauthorized with default headers values

func (*PingLdapUnauthorized) Error

func (o *PingLdapUnauthorized) Error() string

func (*PingLdapUnauthorized) GetPayload

func (o *PingLdapUnauthorized) GetPayload() *model.Errors

type SearchLdapGroupBadRequest

type SearchLdapGroupBadRequest struct {
	/*The ID of the corresponding request for the response
	 */
	XRequestID string

	Payload *model.Errors
}

SearchLdapGroupBadRequest handles this case with default header values.

Bad request

func NewSearchLdapGroupBadRequest

func NewSearchLdapGroupBadRequest() *SearchLdapGroupBadRequest

NewSearchLdapGroupBadRequest creates a SearchLdapGroupBadRequest with default headers values

func (*SearchLdapGroupBadRequest) Error

func (o *SearchLdapGroupBadRequest) Error() string

func (*SearchLdapGroupBadRequest) GetPayload

func (o *SearchLdapGroupBadRequest) GetPayload() *model.Errors

type SearchLdapGroupForbidden

type SearchLdapGroupForbidden struct {
	/*The ID of the corresponding request for the response
	 */
	XRequestID string

	Payload *model.Errors
}

SearchLdapGroupForbidden handles this case with default header values.

Forbidden

func NewSearchLdapGroupForbidden

func NewSearchLdapGroupForbidden() *SearchLdapGroupForbidden

NewSearchLdapGroupForbidden creates a SearchLdapGroupForbidden with default headers values

func (*SearchLdapGroupForbidden) Error

func (o *SearchLdapGroupForbidden) Error() string

func (*SearchLdapGroupForbidden) GetPayload

func (o *SearchLdapGroupForbidden) GetPayload() *model.Errors

type SearchLdapGroupInternalServerError

type SearchLdapGroupInternalServerError struct {
	/*The ID of the corresponding request for the response
	 */
	XRequestID string

	Payload *model.Errors
}

SearchLdapGroupInternalServerError handles this case with default header values.

Internal server error

func NewSearchLdapGroupInternalServerError

func NewSearchLdapGroupInternalServerError() *SearchLdapGroupInternalServerError

NewSearchLdapGroupInternalServerError creates a SearchLdapGroupInternalServerError with default headers values

func (*SearchLdapGroupInternalServerError) Error

func (*SearchLdapGroupInternalServerError) GetPayload

type SearchLdapGroupOK

type SearchLdapGroupOK struct {
	Payload []*model.UserGroup
}

SearchLdapGroupOK handles this case with default header values.

Search ldap group successfully.

func NewSearchLdapGroupOK

func NewSearchLdapGroupOK() *SearchLdapGroupOK

NewSearchLdapGroupOK creates a SearchLdapGroupOK with default headers values

func (*SearchLdapGroupOK) Error

func (o *SearchLdapGroupOK) Error() string

func (*SearchLdapGroupOK) GetPayload

func (o *SearchLdapGroupOK) GetPayload() []*model.UserGroup

type SearchLdapGroupParams

type SearchLdapGroupParams struct {

	/*XRequestID
	  An unique ID for the request

	*/
	XRequestID *string
	/*Groupdn
	  The LDAP group DN

	*/
	Groupdn *string
	/*Groupname
	  Ldap group name

	*/
	Groupname *string

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

SearchLdapGroupParams contains all the parameters to send to the API endpoint for the search ldap group operation typically these are written to a http.Request

func NewSearchLdapGroupParams

func NewSearchLdapGroupParams() *SearchLdapGroupParams

NewSearchLdapGroupParams creates a new SearchLdapGroupParams object with the default values initialized.

func NewSearchLdapGroupParamsWithContext

func NewSearchLdapGroupParamsWithContext(ctx context.Context) *SearchLdapGroupParams

NewSearchLdapGroupParamsWithContext creates a new SearchLdapGroupParams object with the default values initialized, and the ability to set a context for a request

func NewSearchLdapGroupParamsWithHTTPClient

func NewSearchLdapGroupParamsWithHTTPClient(client *http.Client) *SearchLdapGroupParams

NewSearchLdapGroupParamsWithHTTPClient creates a new SearchLdapGroupParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewSearchLdapGroupParamsWithTimeout

func NewSearchLdapGroupParamsWithTimeout(timeout time.Duration) *SearchLdapGroupParams

NewSearchLdapGroupParamsWithTimeout creates a new SearchLdapGroupParams object with the default values initialized, and the ability to set a timeout on a request

func (*SearchLdapGroupParams) SetContext

func (o *SearchLdapGroupParams) SetContext(ctx context.Context)

SetContext adds the context to the search ldap group params

func (*SearchLdapGroupParams) SetGroupdn

func (o *SearchLdapGroupParams) SetGroupdn(groupdn *string)

SetGroupdn adds the groupdn to the search ldap group params

func (*SearchLdapGroupParams) SetGroupname

func (o *SearchLdapGroupParams) SetGroupname(groupname *string)

SetGroupname adds the groupname to the search ldap group params

func (*SearchLdapGroupParams) SetHTTPClient

func (o *SearchLdapGroupParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the search ldap group params

func (*SearchLdapGroupParams) SetTimeout

func (o *SearchLdapGroupParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the search ldap group params

func (*SearchLdapGroupParams) SetXRequestID

func (o *SearchLdapGroupParams) SetXRequestID(xRequestID *string)

SetXRequestID adds the xRequestId to the search ldap group params

func (*SearchLdapGroupParams) WithContext

WithContext adds the context to the search ldap group params

func (*SearchLdapGroupParams) WithGroupdn

func (o *SearchLdapGroupParams) WithGroupdn(groupdn *string) *SearchLdapGroupParams

WithGroupdn adds the groupdn to the search ldap group params

func (*SearchLdapGroupParams) WithGroupname

func (o *SearchLdapGroupParams) WithGroupname(groupname *string) *SearchLdapGroupParams

WithGroupname adds the groupname to the search ldap group params

func (*SearchLdapGroupParams) WithHTTPClient

func (o *SearchLdapGroupParams) WithHTTPClient(client *http.Client) *SearchLdapGroupParams

WithHTTPClient adds the HTTPClient to the search ldap group params

func (*SearchLdapGroupParams) WithTimeout

func (o *SearchLdapGroupParams) WithTimeout(timeout time.Duration) *SearchLdapGroupParams

WithTimeout adds the timeout to the search ldap group params

func (*SearchLdapGroupParams) WithXRequestID

func (o *SearchLdapGroupParams) WithXRequestID(xRequestID *string) *SearchLdapGroupParams

WithXRequestID adds the xRequestID to the search ldap group params

func (*SearchLdapGroupParams) WriteToRequest

func (o *SearchLdapGroupParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type SearchLdapGroupReader

type SearchLdapGroupReader struct {
	// contains filtered or unexported fields
}

SearchLdapGroupReader is a Reader for the SearchLdapGroup structure.

func (*SearchLdapGroupReader) ReadResponse

func (o *SearchLdapGroupReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type SearchLdapGroupUnauthorized

type SearchLdapGroupUnauthorized struct {
	/*The ID of the corresponding request for the response
	 */
	XRequestID string

	Payload *model.Errors
}

SearchLdapGroupUnauthorized handles this case with default header values.

Unauthorized

func NewSearchLdapGroupUnauthorized

func NewSearchLdapGroupUnauthorized() *SearchLdapGroupUnauthorized

NewSearchLdapGroupUnauthorized creates a SearchLdapGroupUnauthorized with default headers values

func (*SearchLdapGroupUnauthorized) Error

func (*SearchLdapGroupUnauthorized) GetPayload

func (o *SearchLdapGroupUnauthorized) GetPayload() *model.Errors

type SearchLdapUserBadRequest

type SearchLdapUserBadRequest struct {
	/*The ID of the corresponding request for the response
	 */
	XRequestID string

	Payload *model.Errors
}

SearchLdapUserBadRequest handles this case with default header values.

Bad request

func NewSearchLdapUserBadRequest

func NewSearchLdapUserBadRequest() *SearchLdapUserBadRequest

NewSearchLdapUserBadRequest creates a SearchLdapUserBadRequest with default headers values

func (*SearchLdapUserBadRequest) Error

func (o *SearchLdapUserBadRequest) Error() string

func (*SearchLdapUserBadRequest) GetPayload

func (o *SearchLdapUserBadRequest) GetPayload() *model.Errors

type SearchLdapUserForbidden

type SearchLdapUserForbidden struct {
	/*The ID of the corresponding request for the response
	 */
	XRequestID string

	Payload *model.Errors
}

SearchLdapUserForbidden handles this case with default header values.

Forbidden

func NewSearchLdapUserForbidden

func NewSearchLdapUserForbidden() *SearchLdapUserForbidden

NewSearchLdapUserForbidden creates a SearchLdapUserForbidden with default headers values

func (*SearchLdapUserForbidden) Error

func (o *SearchLdapUserForbidden) Error() string

func (*SearchLdapUserForbidden) GetPayload

func (o *SearchLdapUserForbidden) GetPayload() *model.Errors

type SearchLdapUserInternalServerError

type SearchLdapUserInternalServerError struct {
	/*The ID of the corresponding request for the response
	 */
	XRequestID string

	Payload *model.Errors
}

SearchLdapUserInternalServerError handles this case with default header values.

Internal server error

func NewSearchLdapUserInternalServerError

func NewSearchLdapUserInternalServerError() *SearchLdapUserInternalServerError

NewSearchLdapUserInternalServerError creates a SearchLdapUserInternalServerError with default headers values

func (*SearchLdapUserInternalServerError) Error

func (*SearchLdapUserInternalServerError) GetPayload

type SearchLdapUserOK

type SearchLdapUserOK struct {
	Payload []*model.LdapUser
}

SearchLdapUserOK handles this case with default header values.

Search ldap users successfully.

func NewSearchLdapUserOK

func NewSearchLdapUserOK() *SearchLdapUserOK

NewSearchLdapUserOK creates a SearchLdapUserOK with default headers values

func (*SearchLdapUserOK) Error

func (o *SearchLdapUserOK) Error() string

func (*SearchLdapUserOK) GetPayload

func (o *SearchLdapUserOK) GetPayload() []*model.LdapUser

type SearchLdapUserParams

type SearchLdapUserParams struct {

	/*XRequestID
	  An unique ID for the request

	*/
	XRequestID *string
	/*Username
	  Registered user ID

	*/
	Username *string

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

SearchLdapUserParams contains all the parameters to send to the API endpoint for the search ldap user operation typically these are written to a http.Request

func NewSearchLdapUserParams

func NewSearchLdapUserParams() *SearchLdapUserParams

NewSearchLdapUserParams creates a new SearchLdapUserParams object with the default values initialized.

func NewSearchLdapUserParamsWithContext

func NewSearchLdapUserParamsWithContext(ctx context.Context) *SearchLdapUserParams

NewSearchLdapUserParamsWithContext creates a new SearchLdapUserParams object with the default values initialized, and the ability to set a context for a request

func NewSearchLdapUserParamsWithHTTPClient

func NewSearchLdapUserParamsWithHTTPClient(client *http.Client) *SearchLdapUserParams

NewSearchLdapUserParamsWithHTTPClient creates a new SearchLdapUserParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewSearchLdapUserParamsWithTimeout

func NewSearchLdapUserParamsWithTimeout(timeout time.Duration) *SearchLdapUserParams

NewSearchLdapUserParamsWithTimeout creates a new SearchLdapUserParams object with the default values initialized, and the ability to set a timeout on a request

func (*SearchLdapUserParams) SetContext

func (o *SearchLdapUserParams) SetContext(ctx context.Context)

SetContext adds the context to the search ldap user params

func (*SearchLdapUserParams) SetHTTPClient

func (o *SearchLdapUserParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the search ldap user params

func (*SearchLdapUserParams) SetTimeout

func (o *SearchLdapUserParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the search ldap user params

func (*SearchLdapUserParams) SetUsername

func (o *SearchLdapUserParams) SetUsername(username *string)

SetUsername adds the username to the search ldap user params

func (*SearchLdapUserParams) SetXRequestID

func (o *SearchLdapUserParams) SetXRequestID(xRequestID *string)

SetXRequestID adds the xRequestId to the search ldap user params

func (*SearchLdapUserParams) WithContext

WithContext adds the context to the search ldap user params

func (*SearchLdapUserParams) WithHTTPClient

func (o *SearchLdapUserParams) WithHTTPClient(client *http.Client) *SearchLdapUserParams

WithHTTPClient adds the HTTPClient to the search ldap user params

func (*SearchLdapUserParams) WithTimeout

func (o *SearchLdapUserParams) WithTimeout(timeout time.Duration) *SearchLdapUserParams

WithTimeout adds the timeout to the search ldap user params

func (*SearchLdapUserParams) WithUsername

func (o *SearchLdapUserParams) WithUsername(username *string) *SearchLdapUserParams

WithUsername adds the username to the search ldap user params

func (*SearchLdapUserParams) WithXRequestID

func (o *SearchLdapUserParams) WithXRequestID(xRequestID *string) *SearchLdapUserParams

WithXRequestID adds the xRequestID to the search ldap user params

func (*SearchLdapUserParams) WriteToRequest

func (o *SearchLdapUserParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type SearchLdapUserReader

type SearchLdapUserReader struct {
	// contains filtered or unexported fields
}

SearchLdapUserReader is a Reader for the SearchLdapUser structure.

func (*SearchLdapUserReader) ReadResponse

func (o *SearchLdapUserReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type SearchLdapUserUnauthorized

type SearchLdapUserUnauthorized struct {
	/*The ID of the corresponding request for the response
	 */
	XRequestID string

	Payload *model.Errors
}

SearchLdapUserUnauthorized handles this case with default header values.

Unauthorized

func NewSearchLdapUserUnauthorized

func NewSearchLdapUserUnauthorized() *SearchLdapUserUnauthorized

NewSearchLdapUserUnauthorized creates a SearchLdapUserUnauthorized with default headers values

func (*SearchLdapUserUnauthorized) Error

func (*SearchLdapUserUnauthorized) GetPayload

func (o *SearchLdapUserUnauthorized) GetPayload() *model.Errors

Jump to

Keyboard shortcuts

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