user

package
v0.0.0-...-b339f66 Latest Latest
Warning

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

Go to latest
Published: Oct 10, 2022 License: Apache-2.0 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 user API

func (*Client) ListUser

func (a *Client) ListUser(params *ListUserParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ListUserOK, error)

ListUser List users

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 {
	ListUser(params *ListUserParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ListUserOK, 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 user API client.

type ListUserDefault

type ListUserDefault struct {
	Payload *models.ErrorResponse
	// contains filtered or unexported fields
}

ListUserDefault describes a response with status code -1, with default header values.

errorResponse

func NewListUserDefault

func NewListUserDefault(code int) *ListUserDefault

NewListUserDefault creates a ListUserDefault with default headers values

func (*ListUserDefault) Code

func (o *ListUserDefault) Code() int

Code gets the status code for the list user default response

func (*ListUserDefault) Error

func (o *ListUserDefault) Error() string

func (*ListUserDefault) GetPayload

func (o *ListUserDefault) GetPayload() *models.ErrorResponse

func (*ListUserDefault) IsClientError

func (o *ListUserDefault) IsClientError() bool

IsClientError returns true when this list user default response has a 4xx status code

func (*ListUserDefault) IsCode

func (o *ListUserDefault) IsCode(code int) bool

IsCode returns true when this list user default response a status code equal to that given

func (*ListUserDefault) IsRedirect

func (o *ListUserDefault) IsRedirect() bool

IsRedirect returns true when this list user default response has a 3xx status code

func (*ListUserDefault) IsServerError

func (o *ListUserDefault) IsServerError() bool

IsServerError returns true when this list user default response has a 5xx status code

func (*ListUserDefault) IsSuccess

func (o *ListUserDefault) IsSuccess() bool

IsSuccess returns true when this list user default response has a 2xx status code

func (*ListUserDefault) String

func (o *ListUserDefault) String() string

type ListUserForbidden

type ListUserForbidden struct {
}

ListUserForbidden describes a response with status code 403, with default header values.

EmptyResponse is a empty response

func NewListUserForbidden

func NewListUserForbidden() *ListUserForbidden

NewListUserForbidden creates a ListUserForbidden with default headers values

func (*ListUserForbidden) Error

func (o *ListUserForbidden) Error() string

func (*ListUserForbidden) IsClientError

func (o *ListUserForbidden) IsClientError() bool

IsClientError returns true when this list user forbidden response has a 4xx status code

func (*ListUserForbidden) IsCode

func (o *ListUserForbidden) IsCode(code int) bool

IsCode returns true when this list user forbidden response a status code equal to that given

func (*ListUserForbidden) IsRedirect

func (o *ListUserForbidden) IsRedirect() bool

IsRedirect returns true when this list user forbidden response has a 3xx status code

func (*ListUserForbidden) IsServerError

func (o *ListUserForbidden) IsServerError() bool

IsServerError returns true when this list user forbidden response has a 5xx status code

func (*ListUserForbidden) IsSuccess

func (o *ListUserForbidden) IsSuccess() bool

IsSuccess returns true when this list user forbidden response has a 2xx status code

func (*ListUserForbidden) String

func (o *ListUserForbidden) String() string

type ListUserOK

type ListUserOK struct {
	Payload []*models.User
}

ListUserOK describes a response with status code 200, with default header values.

User

func NewListUserOK

func NewListUserOK() *ListUserOK

NewListUserOK creates a ListUserOK with default headers values

func (*ListUserOK) Error

func (o *ListUserOK) Error() string

func (*ListUserOK) GetPayload

func (o *ListUserOK) GetPayload() []*models.User

func (*ListUserOK) IsClientError

func (o *ListUserOK) IsClientError() bool

IsClientError returns true when this list user o k response has a 4xx status code

func (*ListUserOK) IsCode

func (o *ListUserOK) IsCode(code int) bool

IsCode returns true when this list user o k response a status code equal to that given

func (*ListUserOK) IsRedirect

func (o *ListUserOK) IsRedirect() bool

IsRedirect returns true when this list user o k response has a 3xx status code

func (*ListUserOK) IsServerError

func (o *ListUserOK) IsServerError() bool

IsServerError returns true when this list user o k response has a 5xx status code

func (*ListUserOK) IsSuccess

func (o *ListUserOK) IsSuccess() bool

IsSuccess returns true when this list user o k response has a 2xx status code

func (*ListUserOK) String

func (o *ListUserOK) String() string

type ListUserParams

type ListUserParams struct {
	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

ListUserParams contains all the parameters to send to the API endpoint

for the list user operation.

Typically these are written to a http.Request.

func NewListUserParams

func NewListUserParams() *ListUserParams

NewListUserParams creates a new ListUserParams 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 NewListUserParamsWithContext

func NewListUserParamsWithContext(ctx context.Context) *ListUserParams

NewListUserParamsWithContext creates a new ListUserParams object with the ability to set a context for a request.

func NewListUserParamsWithHTTPClient

func NewListUserParamsWithHTTPClient(client *http.Client) *ListUserParams

NewListUserParamsWithHTTPClient creates a new ListUserParams object with the ability to set a custom HTTPClient for a request.

func NewListUserParamsWithTimeout

func NewListUserParamsWithTimeout(timeout time.Duration) *ListUserParams

NewListUserParamsWithTimeout creates a new ListUserParams object with the ability to set a timeout on a request.

func (*ListUserParams) SetContext

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

SetContext adds the context to the list user params

func (*ListUserParams) SetDefaults

func (o *ListUserParams) SetDefaults()

SetDefaults hydrates default values in the list user params (not the query body).

All values with no default are reset to their zero value.

func (*ListUserParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the list user params

func (*ListUserParams) SetTimeout

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

SetTimeout adds the timeout to the list user params

func (*ListUserParams) WithContext

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

WithContext adds the context to the list user params

func (*ListUserParams) WithDefaults

func (o *ListUserParams) WithDefaults() *ListUserParams

WithDefaults hydrates default values in the list user params (not the query body).

All values with no default are reset to their zero value.

func (*ListUserParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the list user params

func (*ListUserParams) WithTimeout

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

WithTimeout adds the timeout to the list user params

func (*ListUserParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type ListUserReader

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

ListUserReader is a Reader for the ListUser structure.

func (*ListUserReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type ListUserUnauthorized

type ListUserUnauthorized struct {
}

ListUserUnauthorized describes a response with status code 401, with default header values.

EmptyResponse is a empty response

func NewListUserUnauthorized

func NewListUserUnauthorized() *ListUserUnauthorized

NewListUserUnauthorized creates a ListUserUnauthorized with default headers values

func (*ListUserUnauthorized) Error

func (o *ListUserUnauthorized) Error() string

func (*ListUserUnauthorized) IsClientError

func (o *ListUserUnauthorized) IsClientError() bool

IsClientError returns true when this list user unauthorized response has a 4xx status code

func (*ListUserUnauthorized) IsCode

func (o *ListUserUnauthorized) IsCode(code int) bool

IsCode returns true when this list user unauthorized response a status code equal to that given

func (*ListUserUnauthorized) IsRedirect

func (o *ListUserUnauthorized) IsRedirect() bool

IsRedirect returns true when this list user unauthorized response has a 3xx status code

func (*ListUserUnauthorized) IsServerError

func (o *ListUserUnauthorized) IsServerError() bool

IsServerError returns true when this list user unauthorized response has a 5xx status code

func (*ListUserUnauthorized) IsSuccess

func (o *ListUserUnauthorized) IsSuccess() bool

IsSuccess returns true when this list user unauthorized response has a 2xx status code

func (*ListUserUnauthorized) String

func (o *ListUserUnauthorized) String() string

Jump to

Keyboard shortcuts

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