admin

package
v0.5.8 Latest Latest
Warning

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

Go to latest
Published: Nov 3, 2023 License: Apache-2.0, MIT Imports: 10 Imported by: 1

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 API

func (*Client) SetIdentity added in v0.5.4

func (a *Client) SetIdentity(params *SetIdentityParams, opts ...ClientOption) (*SetIdentityNoContent, error)

SetIdentity sets the user identity for tracking purpose

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 {
	SetIdentity(params *SetIdentityParams, opts ...ClientOption) (*SetIdentityNoContent, 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 API client.

type SetIdentityBadRequest added in v0.5.4

type SetIdentityBadRequest struct {
	Payload *models.APIHTTPError
}

SetIdentityBadRequest describes a response with status code 400, with default header values.

Bad Request

func NewSetIdentityBadRequest added in v0.5.4

func NewSetIdentityBadRequest() *SetIdentityBadRequest

NewSetIdentityBadRequest creates a SetIdentityBadRequest with default headers values

func (*SetIdentityBadRequest) Code added in v0.5.4

func (o *SetIdentityBadRequest) Code() int

Code gets the status code for the set identity bad request response

func (*SetIdentityBadRequest) Error added in v0.5.4

func (o *SetIdentityBadRequest) Error() string

func (*SetIdentityBadRequest) GetPayload added in v0.5.4

func (o *SetIdentityBadRequest) GetPayload() *models.APIHTTPError

func (*SetIdentityBadRequest) IsClientError added in v0.5.4

func (o *SetIdentityBadRequest) IsClientError() bool

IsClientError returns true when this set identity bad request response has a 4xx status code

func (*SetIdentityBadRequest) IsCode added in v0.5.4

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

IsCode returns true when this set identity bad request response a status code equal to that given

func (*SetIdentityBadRequest) IsRedirect added in v0.5.4

func (o *SetIdentityBadRequest) IsRedirect() bool

IsRedirect returns true when this set identity bad request response has a 3xx status code

func (*SetIdentityBadRequest) IsServerError added in v0.5.4

func (o *SetIdentityBadRequest) IsServerError() bool

IsServerError returns true when this set identity bad request response has a 5xx status code

func (*SetIdentityBadRequest) IsSuccess added in v0.5.4

func (o *SetIdentityBadRequest) IsSuccess() bool

IsSuccess returns true when this set identity bad request response has a 2xx status code

func (*SetIdentityBadRequest) String added in v0.5.4

func (o *SetIdentityBadRequest) String() string

type SetIdentityInternalServerError added in v0.5.4

type SetIdentityInternalServerError struct {
	Payload *models.APIHTTPError
}

SetIdentityInternalServerError describes a response with status code 500, with default header values.

Internal Server Error

func NewSetIdentityInternalServerError added in v0.5.4

func NewSetIdentityInternalServerError() *SetIdentityInternalServerError

NewSetIdentityInternalServerError creates a SetIdentityInternalServerError with default headers values

func (*SetIdentityInternalServerError) Code added in v0.5.4

Code gets the status code for the set identity internal server error response

func (*SetIdentityInternalServerError) Error added in v0.5.4

func (*SetIdentityInternalServerError) GetPayload added in v0.5.4

func (*SetIdentityInternalServerError) IsClientError added in v0.5.4

func (o *SetIdentityInternalServerError) IsClientError() bool

IsClientError returns true when this set identity internal server error response has a 4xx status code

func (*SetIdentityInternalServerError) IsCode added in v0.5.4

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

IsCode returns true when this set identity internal server error response a status code equal to that given

func (*SetIdentityInternalServerError) IsRedirect added in v0.5.4

func (o *SetIdentityInternalServerError) IsRedirect() bool

IsRedirect returns true when this set identity internal server error response has a 3xx status code

func (*SetIdentityInternalServerError) IsServerError added in v0.5.4

func (o *SetIdentityInternalServerError) IsServerError() bool

IsServerError returns true when this set identity internal server error response has a 5xx status code

func (*SetIdentityInternalServerError) IsSuccess added in v0.5.4

func (o *SetIdentityInternalServerError) IsSuccess() bool

IsSuccess returns true when this set identity internal server error response has a 2xx status code

func (*SetIdentityInternalServerError) String added in v0.5.4

type SetIdentityNoContent added in v0.5.4

type SetIdentityNoContent struct {
}

SetIdentityNoContent describes a response with status code 204, with default header values.

No Content

func NewSetIdentityNoContent added in v0.5.4

func NewSetIdentityNoContent() *SetIdentityNoContent

NewSetIdentityNoContent creates a SetIdentityNoContent with default headers values

func (*SetIdentityNoContent) Code added in v0.5.4

func (o *SetIdentityNoContent) Code() int

Code gets the status code for the set identity no content response

func (*SetIdentityNoContent) Error added in v0.5.4

func (o *SetIdentityNoContent) Error() string

func (*SetIdentityNoContent) IsClientError added in v0.5.4

func (o *SetIdentityNoContent) IsClientError() bool

IsClientError returns true when this set identity no content response has a 4xx status code

func (*SetIdentityNoContent) IsCode added in v0.5.4

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

IsCode returns true when this set identity no content response a status code equal to that given

func (*SetIdentityNoContent) IsRedirect added in v0.5.4

func (o *SetIdentityNoContent) IsRedirect() bool

IsRedirect returns true when this set identity no content response has a 3xx status code

func (*SetIdentityNoContent) IsServerError added in v0.5.4

func (o *SetIdentityNoContent) IsServerError() bool

IsServerError returns true when this set identity no content response has a 5xx status code

func (*SetIdentityNoContent) IsSuccess added in v0.5.4

func (o *SetIdentityNoContent) IsSuccess() bool

IsSuccess returns true when this set identity no content response has a 2xx status code

func (*SetIdentityNoContent) String added in v0.5.4

func (o *SetIdentityNoContent) String() string

type SetIdentityParams added in v0.5.4

type SetIdentityParams struct {

	/* Request.

	   Create Request
	*/
	Request *models.AdminSetIdentityRequest

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

SetIdentityParams contains all the parameters to send to the API endpoint

for the set identity operation.

Typically these are written to a http.Request.

func NewSetIdentityParams added in v0.5.4

func NewSetIdentityParams() *SetIdentityParams

NewSetIdentityParams creates a new SetIdentityParams 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 NewSetIdentityParamsWithContext added in v0.5.4

func NewSetIdentityParamsWithContext(ctx context.Context) *SetIdentityParams

NewSetIdentityParamsWithContext creates a new SetIdentityParams object with the ability to set a context for a request.

func NewSetIdentityParamsWithHTTPClient added in v0.5.4

func NewSetIdentityParamsWithHTTPClient(client *http.Client) *SetIdentityParams

NewSetIdentityParamsWithHTTPClient creates a new SetIdentityParams object with the ability to set a custom HTTPClient for a request.

func NewSetIdentityParamsWithTimeout added in v0.5.4

func NewSetIdentityParamsWithTimeout(timeout time.Duration) *SetIdentityParams

NewSetIdentityParamsWithTimeout creates a new SetIdentityParams object with the ability to set a timeout on a request.

func (*SetIdentityParams) SetContext added in v0.5.4

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

SetContext adds the context to the set identity params

func (*SetIdentityParams) SetDefaults added in v0.5.4

func (o *SetIdentityParams) SetDefaults()

SetDefaults hydrates default values in the set identity params (not the query body).

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

func (*SetIdentityParams) SetHTTPClient added in v0.5.4

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

SetHTTPClient adds the HTTPClient to the set identity params

func (*SetIdentityParams) SetRequest added in v0.5.4

func (o *SetIdentityParams) SetRequest(request *models.AdminSetIdentityRequest)

SetRequest adds the request to the set identity params

func (*SetIdentityParams) SetTimeout added in v0.5.4

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

SetTimeout adds the timeout to the set identity params

func (*SetIdentityParams) WithContext added in v0.5.4

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

WithContext adds the context to the set identity params

func (*SetIdentityParams) WithDefaults added in v0.5.4

func (o *SetIdentityParams) WithDefaults() *SetIdentityParams

WithDefaults hydrates default values in the set identity params (not the query body).

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

func (*SetIdentityParams) WithHTTPClient added in v0.5.4

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

WithHTTPClient adds the HTTPClient to the set identity params

func (*SetIdentityParams) WithRequest added in v0.5.4

WithRequest adds the request to the set identity params

func (*SetIdentityParams) WithTimeout added in v0.5.4

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

WithTimeout adds the timeout to the set identity params

func (*SetIdentityParams) WriteToRequest added in v0.5.4

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

WriteToRequest writes these params to a swagger request

type SetIdentityReader added in v0.5.4

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

SetIdentityReader is a Reader for the SetIdentity structure.

func (*SetIdentityReader) ReadResponse added in v0.5.4

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

ReadResponse reads a server response into the received o.

Jump to

Keyboard shortcuts

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