Documentation ¶
Index ¶
- type Client
- func (a *Client) CreateClient(params *CreateClientParams, authInfo runtime.ClientAuthInfoWriter) (*CreateClientOK, error)
- func (a *Client) DeleteClient(params *DeleteClientParams, authInfo runtime.ClientAuthInfoWriter) (*DeleteClientOK, error)
- func (a *Client) GetClients(params *GetClientsParams, authInfo runtime.ClientAuthInfoWriter) (*GetClientsOK, error)
- func (a *Client) SetTransport(transport runtime.ClientTransport)
- func (a *Client) UpdateClient(params *UpdateClientParams, authInfo runtime.ClientAuthInfoWriter) (*UpdateClientOK, error)
- type CreateClientBadRequest
- type CreateClientForbidden
- type CreateClientOK
- type CreateClientParams
- func (o *CreateClientParams) SetBody(body *models.Client)
- func (o *CreateClientParams) SetContext(ctx context.Context)
- func (o *CreateClientParams) SetHTTPClient(client *http.Client)
- func (o *CreateClientParams) SetTimeout(timeout time.Duration)
- func (o *CreateClientParams) WithBody(body *models.Client) *CreateClientParams
- func (o *CreateClientParams) WithContext(ctx context.Context) *CreateClientParams
- func (o *CreateClientParams) WithHTTPClient(client *http.Client) *CreateClientParams
- func (o *CreateClientParams) WithTimeout(timeout time.Duration) *CreateClientParams
- func (o *CreateClientParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type CreateClientReader
- type CreateClientUnauthorized
- type DeleteClientBadRequest
- type DeleteClientForbidden
- type DeleteClientNotFound
- type DeleteClientOK
- type DeleteClientParams
- func (o *DeleteClientParams) SetContext(ctx context.Context)
- func (o *DeleteClientParams) SetHTTPClient(client *http.Client)
- func (o *DeleteClientParams) SetID(id int64)
- func (o *DeleteClientParams) SetTimeout(timeout time.Duration)
- func (o *DeleteClientParams) WithContext(ctx context.Context) *DeleteClientParams
- func (o *DeleteClientParams) WithHTTPClient(client *http.Client) *DeleteClientParams
- func (o *DeleteClientParams) WithID(id int64) *DeleteClientParams
- func (o *DeleteClientParams) WithTimeout(timeout time.Duration) *DeleteClientParams
- func (o *DeleteClientParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type DeleteClientReader
- type DeleteClientUnauthorized
- type GetClientsForbidden
- type GetClientsOK
- type GetClientsParams
- func (o *GetClientsParams) SetContext(ctx context.Context)
- func (o *GetClientsParams) SetHTTPClient(client *http.Client)
- func (o *GetClientsParams) SetTimeout(timeout time.Duration)
- func (o *GetClientsParams) WithContext(ctx context.Context) *GetClientsParams
- func (o *GetClientsParams) WithHTTPClient(client *http.Client) *GetClientsParams
- func (o *GetClientsParams) WithTimeout(timeout time.Duration) *GetClientsParams
- func (o *GetClientsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetClientsReader
- type GetClientsUnauthorized
- type UpdateClientBadRequest
- type UpdateClientForbidden
- type UpdateClientNotFound
- type UpdateClientOK
- type UpdateClientParams
- func (o *UpdateClientParams) SetBody(body *models.Client)
- func (o *UpdateClientParams) SetContext(ctx context.Context)
- func (o *UpdateClientParams) SetHTTPClient(client *http.Client)
- func (o *UpdateClientParams) SetID(id int64)
- func (o *UpdateClientParams) SetTimeout(timeout time.Duration)
- func (o *UpdateClientParams) WithBody(body *models.Client) *UpdateClientParams
- func (o *UpdateClientParams) WithContext(ctx context.Context) *UpdateClientParams
- func (o *UpdateClientParams) WithHTTPClient(client *http.Client) *UpdateClientParams
- func (o *UpdateClientParams) WithID(id int64) *UpdateClientParams
- func (o *UpdateClientParams) WithTimeout(timeout time.Duration) *UpdateClientParams
- func (o *UpdateClientParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type UpdateClientReader
- type UpdateClientUnauthorized
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 client API
func New ¶
func New(transport runtime.ClientTransport, formats strfmt.Registry) *Client
New creates a new client API client.
func (*Client) CreateClient ¶
func (a *Client) CreateClient(params *CreateClientParams, authInfo runtime.ClientAuthInfoWriter) (*CreateClientOK, error)
CreateClient creates a client
func (*Client) DeleteClient ¶
func (a *Client) DeleteClient(params *DeleteClientParams, authInfo runtime.ClientAuthInfoWriter) (*DeleteClientOK, error)
DeleteClient deletes a client
func (*Client) GetClients ¶
func (a *Client) GetClients(params *GetClientsParams, authInfo runtime.ClientAuthInfoWriter) (*GetClientsOK, error)
GetClients returns all clients
func (*Client) SetTransport ¶
func (a *Client) SetTransport(transport runtime.ClientTransport)
SetTransport changes the transport on the client
func (*Client) UpdateClient ¶
func (a *Client) UpdateClient(params *UpdateClientParams, authInfo runtime.ClientAuthInfoWriter) (*UpdateClientOK, error)
UpdateClient updates a client
type CreateClientBadRequest ¶
CreateClientBadRequest handles this case with default header values.
Bad Request
func NewCreateClientBadRequest ¶
func NewCreateClientBadRequest() *CreateClientBadRequest
NewCreateClientBadRequest creates a CreateClientBadRequest with default headers values
func (*CreateClientBadRequest) Error ¶
func (o *CreateClientBadRequest) Error() string
type CreateClientForbidden ¶
CreateClientForbidden handles this case with default header values.
Forbidden
func NewCreateClientForbidden ¶
func NewCreateClientForbidden() *CreateClientForbidden
NewCreateClientForbidden creates a CreateClientForbidden with default headers values
func (*CreateClientForbidden) Error ¶
func (o *CreateClientForbidden) Error() string
type CreateClientOK ¶
CreateClientOK handles this case with default header values.
Ok
func NewCreateClientOK ¶
func NewCreateClientOK() *CreateClientOK
NewCreateClientOK creates a CreateClientOK with default headers values
func (*CreateClientOK) Error ¶
func (o *CreateClientOK) Error() string
type CreateClientParams ¶
type CreateClientParams struct { /*Body the client to add */ Body *models.Client Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
CreateClientParams contains all the parameters to send to the API endpoint for the create client operation typically these are written to a http.Request
func NewCreateClientParams ¶
func NewCreateClientParams() *CreateClientParams
NewCreateClientParams creates a new CreateClientParams object with the default values initialized.
func NewCreateClientParamsWithContext ¶
func NewCreateClientParamsWithContext(ctx context.Context) *CreateClientParams
NewCreateClientParamsWithContext creates a new CreateClientParams object with the default values initialized, and the ability to set a context for a request
func NewCreateClientParamsWithHTTPClient ¶
func NewCreateClientParamsWithHTTPClient(client *http.Client) *CreateClientParams
NewCreateClientParamsWithHTTPClient creates a new CreateClientParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewCreateClientParamsWithTimeout ¶
func NewCreateClientParamsWithTimeout(timeout time.Duration) *CreateClientParams
NewCreateClientParamsWithTimeout creates a new CreateClientParams object with the default values initialized, and the ability to set a timeout on a request
func (*CreateClientParams) SetBody ¶
func (o *CreateClientParams) SetBody(body *models.Client)
SetBody adds the body to the create client params
func (*CreateClientParams) SetContext ¶
func (o *CreateClientParams) SetContext(ctx context.Context)
SetContext adds the context to the create client params
func (*CreateClientParams) SetHTTPClient ¶
func (o *CreateClientParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the create client params
func (*CreateClientParams) SetTimeout ¶
func (o *CreateClientParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the create client params
func (*CreateClientParams) WithBody ¶
func (o *CreateClientParams) WithBody(body *models.Client) *CreateClientParams
WithBody adds the body to the create client params
func (*CreateClientParams) WithContext ¶
func (o *CreateClientParams) WithContext(ctx context.Context) *CreateClientParams
WithContext adds the context to the create client params
func (*CreateClientParams) WithHTTPClient ¶
func (o *CreateClientParams) WithHTTPClient(client *http.Client) *CreateClientParams
WithHTTPClient adds the HTTPClient to the create client params
func (*CreateClientParams) WithTimeout ¶
func (o *CreateClientParams) WithTimeout(timeout time.Duration) *CreateClientParams
WithTimeout adds the timeout to the create client params
func (*CreateClientParams) WriteToRequest ¶
func (o *CreateClientParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type CreateClientReader ¶
type CreateClientReader struct {
// contains filtered or unexported fields
}
CreateClientReader is a Reader for the CreateClient structure.
func (*CreateClientReader) ReadResponse ¶
func (o *CreateClientReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type CreateClientUnauthorized ¶
type CreateClientUnauthorized struct {
}CreateClientUnauthorized handles this case with default header values.
Unauthorized
func NewCreateClientUnauthorized ¶
func NewCreateClientUnauthorized() *CreateClientUnauthorized
NewCreateClientUnauthorized creates a CreateClientUnauthorized with default headers values
func (*CreateClientUnauthorized) Error ¶
func (o *CreateClientUnauthorized) Error() string
type DeleteClientBadRequest ¶
DeleteClientBadRequest handles this case with default header values.
Bad Request
func NewDeleteClientBadRequest ¶
func NewDeleteClientBadRequest() *DeleteClientBadRequest
NewDeleteClientBadRequest creates a DeleteClientBadRequest with default headers values
func (*DeleteClientBadRequest) Error ¶
func (o *DeleteClientBadRequest) Error() string
type DeleteClientForbidden ¶
DeleteClientForbidden handles this case with default header values.
Forbidden
func NewDeleteClientForbidden ¶
func NewDeleteClientForbidden() *DeleteClientForbidden
NewDeleteClientForbidden creates a DeleteClientForbidden with default headers values
func (*DeleteClientForbidden) Error ¶
func (o *DeleteClientForbidden) Error() string
type DeleteClientNotFound ¶
DeleteClientNotFound handles this case with default header values.
Not Found
func NewDeleteClientNotFound ¶
func NewDeleteClientNotFound() *DeleteClientNotFound
NewDeleteClientNotFound creates a DeleteClientNotFound with default headers values
func (*DeleteClientNotFound) Error ¶
func (o *DeleteClientNotFound) Error() string
type DeleteClientOK ¶
type DeleteClientOK struct { }
DeleteClientOK handles this case with default header values.
Ok
func NewDeleteClientOK ¶
func NewDeleteClientOK() *DeleteClientOK
NewDeleteClientOK creates a DeleteClientOK with default headers values
func (*DeleteClientOK) Error ¶
func (o *DeleteClientOK) Error() string
type DeleteClientParams ¶
type DeleteClientParams struct { /*ID the client id */ ID int64 Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
DeleteClientParams contains all the parameters to send to the API endpoint for the delete client operation typically these are written to a http.Request
func NewDeleteClientParams ¶
func NewDeleteClientParams() *DeleteClientParams
NewDeleteClientParams creates a new DeleteClientParams object with the default values initialized.
func NewDeleteClientParamsWithContext ¶
func NewDeleteClientParamsWithContext(ctx context.Context) *DeleteClientParams
NewDeleteClientParamsWithContext creates a new DeleteClientParams object with the default values initialized, and the ability to set a context for a request
func NewDeleteClientParamsWithHTTPClient ¶
func NewDeleteClientParamsWithHTTPClient(client *http.Client) *DeleteClientParams
NewDeleteClientParamsWithHTTPClient creates a new DeleteClientParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewDeleteClientParamsWithTimeout ¶
func NewDeleteClientParamsWithTimeout(timeout time.Duration) *DeleteClientParams
NewDeleteClientParamsWithTimeout creates a new DeleteClientParams object with the default values initialized, and the ability to set a timeout on a request
func (*DeleteClientParams) SetContext ¶
func (o *DeleteClientParams) SetContext(ctx context.Context)
SetContext adds the context to the delete client params
func (*DeleteClientParams) SetHTTPClient ¶
func (o *DeleteClientParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the delete client params
func (*DeleteClientParams) SetID ¶
func (o *DeleteClientParams) SetID(id int64)
SetID adds the id to the delete client params
func (*DeleteClientParams) SetTimeout ¶
func (o *DeleteClientParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the delete client params
func (*DeleteClientParams) WithContext ¶
func (o *DeleteClientParams) WithContext(ctx context.Context) *DeleteClientParams
WithContext adds the context to the delete client params
func (*DeleteClientParams) WithHTTPClient ¶
func (o *DeleteClientParams) WithHTTPClient(client *http.Client) *DeleteClientParams
WithHTTPClient adds the HTTPClient to the delete client params
func (*DeleteClientParams) WithID ¶
func (o *DeleteClientParams) WithID(id int64) *DeleteClientParams
WithID adds the id to the delete client params
func (*DeleteClientParams) WithTimeout ¶
func (o *DeleteClientParams) WithTimeout(timeout time.Duration) *DeleteClientParams
WithTimeout adds the timeout to the delete client params
func (*DeleteClientParams) WriteToRequest ¶
func (o *DeleteClientParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type DeleteClientReader ¶
type DeleteClientReader struct {
// contains filtered or unexported fields
}
DeleteClientReader is a Reader for the DeleteClient structure.
func (*DeleteClientReader) ReadResponse ¶
func (o *DeleteClientReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type DeleteClientUnauthorized ¶
type DeleteClientUnauthorized struct {
}DeleteClientUnauthorized handles this case with default header values.
Unauthorized
func NewDeleteClientUnauthorized ¶
func NewDeleteClientUnauthorized() *DeleteClientUnauthorized
NewDeleteClientUnauthorized creates a DeleteClientUnauthorized with default headers values
func (*DeleteClientUnauthorized) Error ¶
func (o *DeleteClientUnauthorized) Error() string
type GetClientsForbidden ¶
GetClientsForbidden handles this case with default header values.
Forbidden
func NewGetClientsForbidden ¶
func NewGetClientsForbidden() *GetClientsForbidden
NewGetClientsForbidden creates a GetClientsForbidden with default headers values
func (*GetClientsForbidden) Error ¶
func (o *GetClientsForbidden) Error() string
type GetClientsOK ¶
GetClientsOK handles this case with default header values.
Ok
func NewGetClientsOK ¶
func NewGetClientsOK() *GetClientsOK
NewGetClientsOK creates a GetClientsOK with default headers values
func (*GetClientsOK) Error ¶
func (o *GetClientsOK) Error() string
type GetClientsParams ¶
type GetClientsParams struct { Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
GetClientsParams contains all the parameters to send to the API endpoint for the get clients operation typically these are written to a http.Request
func NewGetClientsParams ¶
func NewGetClientsParams() *GetClientsParams
NewGetClientsParams creates a new GetClientsParams object with the default values initialized.
func NewGetClientsParamsWithContext ¶
func NewGetClientsParamsWithContext(ctx context.Context) *GetClientsParams
NewGetClientsParamsWithContext creates a new GetClientsParams object with the default values initialized, and the ability to set a context for a request
func NewGetClientsParamsWithHTTPClient ¶
func NewGetClientsParamsWithHTTPClient(client *http.Client) *GetClientsParams
NewGetClientsParamsWithHTTPClient creates a new GetClientsParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewGetClientsParamsWithTimeout ¶
func NewGetClientsParamsWithTimeout(timeout time.Duration) *GetClientsParams
NewGetClientsParamsWithTimeout creates a new GetClientsParams object with the default values initialized, and the ability to set a timeout on a request
func (*GetClientsParams) SetContext ¶
func (o *GetClientsParams) SetContext(ctx context.Context)
SetContext adds the context to the get clients params
func (*GetClientsParams) SetHTTPClient ¶
func (o *GetClientsParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the get clients params
func (*GetClientsParams) SetTimeout ¶
func (o *GetClientsParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the get clients params
func (*GetClientsParams) WithContext ¶
func (o *GetClientsParams) WithContext(ctx context.Context) *GetClientsParams
WithContext adds the context to the get clients params
func (*GetClientsParams) WithHTTPClient ¶
func (o *GetClientsParams) WithHTTPClient(client *http.Client) *GetClientsParams
WithHTTPClient adds the HTTPClient to the get clients params
func (*GetClientsParams) WithTimeout ¶
func (o *GetClientsParams) WithTimeout(timeout time.Duration) *GetClientsParams
WithTimeout adds the timeout to the get clients params
func (*GetClientsParams) WriteToRequest ¶
func (o *GetClientsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type GetClientsReader ¶
type GetClientsReader struct {
// contains filtered or unexported fields
}
GetClientsReader is a Reader for the GetClients structure.
func (*GetClientsReader) ReadResponse ¶
func (o *GetClientsReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type GetClientsUnauthorized ¶
type GetClientsUnauthorized struct {
}GetClientsUnauthorized handles this case with default header values.
Unauthorized
func NewGetClientsUnauthorized ¶
func NewGetClientsUnauthorized() *GetClientsUnauthorized
NewGetClientsUnauthorized creates a GetClientsUnauthorized with default headers values
func (*GetClientsUnauthorized) Error ¶
func (o *GetClientsUnauthorized) Error() string
type UpdateClientBadRequest ¶
UpdateClientBadRequest handles this case with default header values.
Bad Request
func NewUpdateClientBadRequest ¶
func NewUpdateClientBadRequest() *UpdateClientBadRequest
NewUpdateClientBadRequest creates a UpdateClientBadRequest with default headers values
func (*UpdateClientBadRequest) Error ¶
func (o *UpdateClientBadRequest) Error() string
type UpdateClientForbidden ¶
UpdateClientForbidden handles this case with default header values.
Forbidden
func NewUpdateClientForbidden ¶
func NewUpdateClientForbidden() *UpdateClientForbidden
NewUpdateClientForbidden creates a UpdateClientForbidden with default headers values
func (*UpdateClientForbidden) Error ¶
func (o *UpdateClientForbidden) Error() string
type UpdateClientNotFound ¶
UpdateClientNotFound handles this case with default header values.
Not Found
func NewUpdateClientNotFound ¶
func NewUpdateClientNotFound() *UpdateClientNotFound
NewUpdateClientNotFound creates a UpdateClientNotFound with default headers values
func (*UpdateClientNotFound) Error ¶
func (o *UpdateClientNotFound) Error() string
type UpdateClientOK ¶
UpdateClientOK handles this case with default header values.
Ok
func NewUpdateClientOK ¶
func NewUpdateClientOK() *UpdateClientOK
NewUpdateClientOK creates a UpdateClientOK with default headers values
func (*UpdateClientOK) Error ¶
func (o *UpdateClientOK) Error() string
type UpdateClientParams ¶
type UpdateClientParams struct { /*Body the client to update */ Body *models.Client /*ID the client id */ ID int64 Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
UpdateClientParams contains all the parameters to send to the API endpoint for the update client operation typically these are written to a http.Request
func NewUpdateClientParams ¶
func NewUpdateClientParams() *UpdateClientParams
NewUpdateClientParams creates a new UpdateClientParams object with the default values initialized.
func NewUpdateClientParamsWithContext ¶
func NewUpdateClientParamsWithContext(ctx context.Context) *UpdateClientParams
NewUpdateClientParamsWithContext creates a new UpdateClientParams object with the default values initialized, and the ability to set a context for a request
func NewUpdateClientParamsWithHTTPClient ¶
func NewUpdateClientParamsWithHTTPClient(client *http.Client) *UpdateClientParams
NewUpdateClientParamsWithHTTPClient creates a new UpdateClientParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewUpdateClientParamsWithTimeout ¶
func NewUpdateClientParamsWithTimeout(timeout time.Duration) *UpdateClientParams
NewUpdateClientParamsWithTimeout creates a new UpdateClientParams object with the default values initialized, and the ability to set a timeout on a request
func (*UpdateClientParams) SetBody ¶
func (o *UpdateClientParams) SetBody(body *models.Client)
SetBody adds the body to the update client params
func (*UpdateClientParams) SetContext ¶
func (o *UpdateClientParams) SetContext(ctx context.Context)
SetContext adds the context to the update client params
func (*UpdateClientParams) SetHTTPClient ¶
func (o *UpdateClientParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the update client params
func (*UpdateClientParams) SetID ¶
func (o *UpdateClientParams) SetID(id int64)
SetID adds the id to the update client params
func (*UpdateClientParams) SetTimeout ¶
func (o *UpdateClientParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the update client params
func (*UpdateClientParams) WithBody ¶
func (o *UpdateClientParams) WithBody(body *models.Client) *UpdateClientParams
WithBody adds the body to the update client params
func (*UpdateClientParams) WithContext ¶
func (o *UpdateClientParams) WithContext(ctx context.Context) *UpdateClientParams
WithContext adds the context to the update client params
func (*UpdateClientParams) WithHTTPClient ¶
func (o *UpdateClientParams) WithHTTPClient(client *http.Client) *UpdateClientParams
WithHTTPClient adds the HTTPClient to the update client params
func (*UpdateClientParams) WithID ¶
func (o *UpdateClientParams) WithID(id int64) *UpdateClientParams
WithID adds the id to the update client params
func (*UpdateClientParams) WithTimeout ¶
func (o *UpdateClientParams) WithTimeout(timeout time.Duration) *UpdateClientParams
WithTimeout adds the timeout to the update client params
func (*UpdateClientParams) WriteToRequest ¶
func (o *UpdateClientParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type UpdateClientReader ¶
type UpdateClientReader struct {
// contains filtered or unexported fields
}
UpdateClientReader is a Reader for the UpdateClient structure.
func (*UpdateClientReader) ReadResponse ¶
func (o *UpdateClientReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type UpdateClientUnauthorized ¶
type UpdateClientUnauthorized struct {
}UpdateClientUnauthorized handles this case with default header values.
Unauthorized
func NewUpdateClientUnauthorized ¶
func NewUpdateClientUnauthorized() *UpdateClientUnauthorized
NewUpdateClientUnauthorized creates a UpdateClientUnauthorized with default headers values
func (*UpdateClientUnauthorized) Error ¶
func (o *UpdateClientUnauthorized) Error() string