Documentation
¶
Index ¶
- func WithAcceptApplicationJSON(r *runtime.ClientOperation)
- func WithAcceptApplicationPemCertificateChain(r *runtime.ClientOperation)
- func WithAcceptApplicationTimestampReply(r *runtime.ClientOperation)
- func WithContentTypeApplicationJSON(r *runtime.ClientOperation)
- func WithContentTypeApplicationTimestampQuery(r *runtime.ClientOperation)
- type Client
- func (a *Client) GetTimestampCertChain(params *GetTimestampCertChainParams, opts ...ClientOption) (*GetTimestampCertChainOK, error)
- func (a *Client) GetTimestampCertChainContext(ctx context.Context, params *GetTimestampCertChainParams, opts ...ClientOption) (*GetTimestampCertChainOK, error)
- func (a *Client) GetTimestampResponse(params *GetTimestampResponseParams, writer io.Writer, opts ...ClientOption) (*GetTimestampResponseOK, *GetTimestampResponseCreated, error)
- func (a *Client) GetTimestampResponseContext(ctx context.Context, params *GetTimestampResponseParams, writer io.Writer, ...) (*GetTimestampResponseOK, *GetTimestampResponseCreated, error)
- func (a *Client) SetTransport(transport runtime.ContextualTransport)
- type ClientOption
- type ClientService
- type GetTimestampCertChainDefault
- func (o *GetTimestampCertChainDefault) Code() int
- func (o *GetTimestampCertChainDefault) Error() string
- func (o *GetTimestampCertChainDefault) GetPayload() *models.Error
- func (o *GetTimestampCertChainDefault) IsClientError() bool
- func (o *GetTimestampCertChainDefault) IsCode(code int) bool
- func (o *GetTimestampCertChainDefault) IsRedirect() bool
- func (o *GetTimestampCertChainDefault) IsServerError() bool
- func (o *GetTimestampCertChainDefault) IsSuccess() bool
- func (o *GetTimestampCertChainDefault) String() string
- type GetTimestampCertChainNotFound
- func (o *GetTimestampCertChainNotFound) Code() int
- func (o *GetTimestampCertChainNotFound) Error() string
- func (o *GetTimestampCertChainNotFound) IsClientError() bool
- func (o *GetTimestampCertChainNotFound) IsCode(code int) bool
- func (o *GetTimestampCertChainNotFound) IsRedirect() bool
- func (o *GetTimestampCertChainNotFound) IsServerError() bool
- func (o *GetTimestampCertChainNotFound) IsSuccess() bool
- func (o *GetTimestampCertChainNotFound) String() string
- type GetTimestampCertChainOK
- func (o *GetTimestampCertChainOK) Code() int
- func (o *GetTimestampCertChainOK) Error() string
- func (o *GetTimestampCertChainOK) GetPayload() string
- func (o *GetTimestampCertChainOK) IsClientError() bool
- func (o *GetTimestampCertChainOK) IsCode(code int) bool
- func (o *GetTimestampCertChainOK) IsRedirect() bool
- func (o *GetTimestampCertChainOK) IsServerError() bool
- func (o *GetTimestampCertChainOK) IsSuccess() bool
- func (o *GetTimestampCertChainOK) String() string
- type GetTimestampCertChainParams
- func NewGetTimestampCertChainParams() *GetTimestampCertChainParams
- func NewGetTimestampCertChainParamsWithContext(ctx context.Context) *GetTimestampCertChainParamsdeprecated
- func NewGetTimestampCertChainParamsWithHTTPClient(client *http.Client) *GetTimestampCertChainParams
- func NewGetTimestampCertChainParamsWithTimeout(timeout time.Duration) *GetTimestampCertChainParams
- func (o *GetTimestampCertChainParams) SetContext(ctx context.Context)deprecated
- func (o *GetTimestampCertChainParams) SetDefaults()
- func (o *GetTimestampCertChainParams) SetHTTPClient(client *http.Client)
- func (o *GetTimestampCertChainParams) SetTimeout(timeout time.Duration)
- func (o *GetTimestampCertChainParams) WithContext(ctx context.Context) *GetTimestampCertChainParamsdeprecated
- func (o *GetTimestampCertChainParams) WithDefaults() *GetTimestampCertChainParams
- func (o *GetTimestampCertChainParams) WithHTTPClient(client *http.Client) *GetTimestampCertChainParams
- func (o *GetTimestampCertChainParams) WithTimeout(timeout time.Duration) *GetTimestampCertChainParams
- func (o *GetTimestampCertChainParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetTimestampCertChainReader
- type GetTimestampResponseBadRequest
- func (o *GetTimestampResponseBadRequest) Code() int
- func (o *GetTimestampResponseBadRequest) Error() string
- func (o *GetTimestampResponseBadRequest) GetPayload() *models.Error
- func (o *GetTimestampResponseBadRequest) IsClientError() bool
- func (o *GetTimestampResponseBadRequest) IsCode(code int) bool
- func (o *GetTimestampResponseBadRequest) IsRedirect() bool
- func (o *GetTimestampResponseBadRequest) IsServerError() bool
- func (o *GetTimestampResponseBadRequest) IsSuccess() bool
- func (o *GetTimestampResponseBadRequest) String() string
- type GetTimestampResponseCreated
- func (o *GetTimestampResponseCreated) Code() int
- func (o *GetTimestampResponseCreated) Error() string
- func (o *GetTimestampResponseCreated) GetPayload() io.Writer
- func (o *GetTimestampResponseCreated) IsClientError() bool
- func (o *GetTimestampResponseCreated) IsCode(code int) bool
- func (o *GetTimestampResponseCreated) IsRedirect() bool
- func (o *GetTimestampResponseCreated) IsServerError() bool
- func (o *GetTimestampResponseCreated) IsSuccess() bool
- func (o *GetTimestampResponseCreated) String() string
- type GetTimestampResponseDefault
- func (o *GetTimestampResponseDefault) Code() int
- func (o *GetTimestampResponseDefault) Error() string
- func (o *GetTimestampResponseDefault) GetPayload() *models.Error
- func (o *GetTimestampResponseDefault) IsClientError() bool
- func (o *GetTimestampResponseDefault) IsCode(code int) bool
- func (o *GetTimestampResponseDefault) IsRedirect() bool
- func (o *GetTimestampResponseDefault) IsServerError() bool
- func (o *GetTimestampResponseDefault) IsSuccess() bool
- func (o *GetTimestampResponseDefault) String() string
- type GetTimestampResponseNotImplemented
- func (o *GetTimestampResponseNotImplemented) Code() int
- func (o *GetTimestampResponseNotImplemented) Error() string
- func (o *GetTimestampResponseNotImplemented) IsClientError() bool
- func (o *GetTimestampResponseNotImplemented) IsCode(code int) bool
- func (o *GetTimestampResponseNotImplemented) IsRedirect() bool
- func (o *GetTimestampResponseNotImplemented) IsServerError() bool
- func (o *GetTimestampResponseNotImplemented) IsSuccess() bool
- func (o *GetTimestampResponseNotImplemented) String() string
- type GetTimestampResponseOK
- func (o *GetTimestampResponseOK) Code() int
- func (o *GetTimestampResponseOK) Error() string
- func (o *GetTimestampResponseOK) GetPayload() io.Writer
- func (o *GetTimestampResponseOK) IsClientError() bool
- func (o *GetTimestampResponseOK) IsCode(code int) bool
- func (o *GetTimestampResponseOK) IsRedirect() bool
- func (o *GetTimestampResponseOK) IsServerError() bool
- func (o *GetTimestampResponseOK) IsSuccess() bool
- func (o *GetTimestampResponseOK) String() string
- type GetTimestampResponseParams
- func NewGetTimestampResponseParams() *GetTimestampResponseParams
- func NewGetTimestampResponseParamsWithContext(ctx context.Context) *GetTimestampResponseParamsdeprecated
- func NewGetTimestampResponseParamsWithHTTPClient(client *http.Client) *GetTimestampResponseParams
- func NewGetTimestampResponseParamsWithTimeout(timeout time.Duration) *GetTimestampResponseParams
- func (o *GetTimestampResponseParams) SetContext(ctx context.Context)deprecated
- func (o *GetTimestampResponseParams) SetDefaults()
- func (o *GetTimestampResponseParams) SetHTTPClient(client *http.Client)
- func (o *GetTimestampResponseParams) SetRequest(request io.ReadCloser)
- func (o *GetTimestampResponseParams) SetTimeout(timeout time.Duration)
- func (o *GetTimestampResponseParams) WithContext(ctx context.Context) *GetTimestampResponseParamsdeprecated
- func (o *GetTimestampResponseParams) WithDefaults() *GetTimestampResponseParams
- func (o *GetTimestampResponseParams) WithHTTPClient(client *http.Client) *GetTimestampResponseParams
- func (o *GetTimestampResponseParams) WithRequest(request io.ReadCloser) *GetTimestampResponseParams
- func (o *GetTimestampResponseParams) WithTimeout(timeout time.Duration) *GetTimestampResponseParams
- func (o *GetTimestampResponseParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetTimestampResponseReader
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func WithAcceptApplicationJSON ¶
func WithAcceptApplicationJSON(r *runtime.ClientOperation)
WithAcceptApplicationJSON sets the Accept header to "application/json".
func WithAcceptApplicationPemCertificateChain ¶
func WithAcceptApplicationPemCertificateChain(r *runtime.ClientOperation)
WithAcceptApplicationPemCertificateChain sets the Accept header to "application/pem-certificate-chain".
func WithAcceptApplicationTimestampReply ¶
func WithAcceptApplicationTimestampReply(r *runtime.ClientOperation)
WithAcceptApplicationTimestampReply sets the Accept header to "application/timestamp-reply".
func WithContentTypeApplicationJSON ¶
func WithContentTypeApplicationJSON(r *runtime.ClientOperation)
WithContentTypeApplicationJSON sets the Content-Type header to "application/json".
func WithContentTypeApplicationTimestampQuery ¶
func WithContentTypeApplicationTimestampQuery(r *runtime.ClientOperation)
WithContentTypeApplicationTimestampQuery sets the Content-Type header to "application/timestamp-query".
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client for timestamp API.
func (*Client) GetTimestampCertChain ¶
func (a *Client) GetTimestampCertChain(params *GetTimestampCertChainParams, opts ...ClientOption) (*GetTimestampCertChainOK, error)
GetTimestampCertChain retrieves the certificate chain for timestamping that can be used to validate trusted timestamps.
Returns the certificate chain for timestamping that can be used to validate trusted timestamps.
This method does not support injected context. However, timeout and opentracing contexts are honored whenever enabled.
If you need to pass a specific context, use Client.GetTimestampCertChainContext instead.
func (*Client) GetTimestampCertChainContext ¶ added in v2.1.3
func (a *Client) GetTimestampCertChainContext(ctx context.Context, params *GetTimestampCertChainParams, opts ...ClientOption) (*GetTimestampCertChainOK, error)
GetTimestampCertChainContext retrieves the certificate chain for timestamping that can be used to validate trusted timestamps.
Returns the certificate chain for timestamping that can be used to validate trusted timestamps.
Do not use the deprecated [GetTimestampCertChainParams.Context] with this method: it would be ignored.
func (*Client) GetTimestampResponse ¶
func (a *Client) GetTimestampResponse(params *GetTimestampResponseParams, writer io.Writer, opts ...ClientOption) (*GetTimestampResponseOK, *GetTimestampResponseCreated, error)
GetTimestampResponse generates a new timestamp response and creates a new log entry for the timestamp in the transparency log.
This method does not support injected context. However, timeout and opentracing contexts are honored whenever enabled.
If you need to pass a specific context, use Client.GetTimestampResponseContext instead.
func (*Client) GetTimestampResponseContext ¶ added in v2.1.3
func (a *Client) GetTimestampResponseContext(ctx context.Context, params *GetTimestampResponseParams, writer io.Writer, opts ...ClientOption) (*GetTimestampResponseOK, *GetTimestampResponseCreated, error)
GetTimestampResponseContext generates a new timestamp response and creates a new log entry for the timestamp in the transparency log.
Do not use the deprecated [GetTimestampResponseParams.Context] with this method: it would be ignored.
func (*Client) SetTransport ¶
func (a *Client) SetTransport(transport runtime.ContextualTransport)
SetTransport changes the transport on the client
type ClientOption ¶
type ClientOption func(*runtime.ClientOperation)
ClientOption may be used to customize the behavior of Client methods.
func WithAccept ¶
func WithAccept(mime string) ClientOption
WithAccept allows the client to force the Accept header to negotiate a specific Producer from the server.
You may use this option to set arbitrary extensions to your MIME media type.
func WithContentType ¶
func WithContentType(mime string) ClientOption
WithContentType allows the client to force the Content-Type header to negotiate a specific Consumer from the server.
You may use this option to set arbitrary extensions to your MIME media type.
type ClientService ¶
type ClientService interface {
// GetTimestampCertChain retrieve the certificate chain for timestamping that can be used to validate trusted timestamps.
GetTimestampCertChain(params *GetTimestampCertChainParams, opts ...ClientOption) (*GetTimestampCertChainOK, error)
// GetTimestampCertChainContext retrieve the certificate chain for timestamping that can be used to validate trusted timestamps.
GetTimestampCertChainContext(ctx context.Context, params *GetTimestampCertChainParams, opts ...ClientOption) (*GetTimestampCertChainOK, error)
// GetTimestampResponse generates a new timestamp response and creates a new log entry for the timestamp in the transparency log.
GetTimestampResponse(params *GetTimestampResponseParams, writer io.Writer, opts ...ClientOption) (*GetTimestampResponseOK, *GetTimestampResponseCreated, error)
// GetTimestampResponseContext generates a new timestamp response and creates a new log entry for the timestamp in the transparency log.
GetTimestampResponseContext(ctx context.Context, params *GetTimestampResponseParams, writer io.Writer, opts ...ClientOption) (*GetTimestampResponseOK, *GetTimestampResponseCreated, error)
SetTransport(transport runtime.ContextualTransport)
}
ClientService is the interface for Client methods.
func New ¶
func New(transport runtime.ContextualTransport, formats strfmt.Registry) ClientService
New creates a new timestamp API client.
func NewClientWithBasicAuth ¶
func NewClientWithBasicAuth(host, basePath, scheme, user, password string) ClientService
New creates a new timestamp API client with basic auth credentials.
It takes the following parameters: - host: http host (github.com). - basePath: any base path for the API client ("/v1", "/v3"). - scheme: http scheme ("http", "https"). - user: user for basic authentication header. - password: password for basic authentication header.
func NewClientWithBearerToken ¶
func NewClientWithBearerToken(host, basePath, scheme, bearerToken string) ClientService
New creates a new timestamp API client with a bearer token for authentication.
It takes the following parameters: - host: http host (github.com). - basePath: any base path for the API client ("/v1", "/v3"). - scheme: http scheme ("http", "https"). - bearerToken: bearer token for Bearer authentication header.
type GetTimestampCertChainDefault ¶
type GetTimestampCertChainDefault struct {
Payload *models.Error
// contains filtered or unexported fields
}
GetTimestampCertChainDefault describes a response with status code -1, with default header values.
There was an internal error in the server while processing the request
func NewGetTimestampCertChainDefault ¶
func NewGetTimestampCertChainDefault(code int) *GetTimestampCertChainDefault
NewGetTimestampCertChainDefault creates a GetTimestampCertChainDefault with default headers values
func (*GetTimestampCertChainDefault) Code ¶
func (o *GetTimestampCertChainDefault) Code() int
Code gets the status code for the get timestamp cert chain default response
func (*GetTimestampCertChainDefault) Error ¶
func (o *GetTimestampCertChainDefault) Error() string
func (*GetTimestampCertChainDefault) GetPayload ¶
func (o *GetTimestampCertChainDefault) GetPayload() *models.Error
func (*GetTimestampCertChainDefault) IsClientError ¶
func (o *GetTimestampCertChainDefault) IsClientError() bool
IsClientError returns true when this get timestamp cert chain default response has a 4xx status code
func (*GetTimestampCertChainDefault) IsCode ¶
func (o *GetTimestampCertChainDefault) IsCode(code int) bool
IsCode returns true when this get timestamp cert chain default response a status code equal to that given
func (*GetTimestampCertChainDefault) IsRedirect ¶
func (o *GetTimestampCertChainDefault) IsRedirect() bool
IsRedirect returns true when this get timestamp cert chain default response has a 3xx status code
func (*GetTimestampCertChainDefault) IsServerError ¶
func (o *GetTimestampCertChainDefault) IsServerError() bool
IsServerError returns true when this get timestamp cert chain default response has a 5xx status code
func (*GetTimestampCertChainDefault) IsSuccess ¶
func (o *GetTimestampCertChainDefault) IsSuccess() bool
IsSuccess returns true when this get timestamp cert chain default response has a 2xx status code
func (*GetTimestampCertChainDefault) String ¶
func (o *GetTimestampCertChainDefault) String() string
type GetTimestampCertChainNotFound ¶
type GetTimestampCertChainNotFound struct {
}
GetTimestampCertChainNotFound describes a response with status code 404, with default header values.
The content requested could not be found
func NewGetTimestampCertChainNotFound ¶
func NewGetTimestampCertChainNotFound() *GetTimestampCertChainNotFound
NewGetTimestampCertChainNotFound creates a GetTimestampCertChainNotFound with default headers values
func (*GetTimestampCertChainNotFound) Code ¶
func (o *GetTimestampCertChainNotFound) Code() int
Code gets the status code for the get timestamp cert chain not found response
func (*GetTimestampCertChainNotFound) Error ¶
func (o *GetTimestampCertChainNotFound) Error() string
func (*GetTimestampCertChainNotFound) IsClientError ¶
func (o *GetTimestampCertChainNotFound) IsClientError() bool
IsClientError returns true when this get timestamp cert chain not found response has a 4xx status code
func (*GetTimestampCertChainNotFound) IsCode ¶
func (o *GetTimestampCertChainNotFound) IsCode(code int) bool
IsCode returns true when this get timestamp cert chain not found response a status code equal to that given
func (*GetTimestampCertChainNotFound) IsRedirect ¶
func (o *GetTimestampCertChainNotFound) IsRedirect() bool
IsRedirect returns true when this get timestamp cert chain not found response has a 3xx status code
func (*GetTimestampCertChainNotFound) IsServerError ¶
func (o *GetTimestampCertChainNotFound) IsServerError() bool
IsServerError returns true when this get timestamp cert chain not found response has a 5xx status code
func (*GetTimestampCertChainNotFound) IsSuccess ¶
func (o *GetTimestampCertChainNotFound) IsSuccess() bool
IsSuccess returns true when this get timestamp cert chain not found response has a 2xx status code
func (*GetTimestampCertChainNotFound) String ¶
func (o *GetTimestampCertChainNotFound) String() string
type GetTimestampCertChainOK ¶
type GetTimestampCertChainOK struct {
Payload string
}
GetTimestampCertChainOK describes a response with status code 200, with default header values.
The PEM encoded cert chain
func NewGetTimestampCertChainOK ¶
func NewGetTimestampCertChainOK() *GetTimestampCertChainOK
NewGetTimestampCertChainOK creates a GetTimestampCertChainOK with default headers values
func (*GetTimestampCertChainOK) Code ¶
func (o *GetTimestampCertChainOK) Code() int
Code gets the status code for the get timestamp cert chain o k response
func (*GetTimestampCertChainOK) Error ¶
func (o *GetTimestampCertChainOK) Error() string
func (*GetTimestampCertChainOK) GetPayload ¶
func (o *GetTimestampCertChainOK) GetPayload() string
func (*GetTimestampCertChainOK) IsClientError ¶
func (o *GetTimestampCertChainOK) IsClientError() bool
IsClientError returns true when this get timestamp cert chain o k response has a 4xx status code
func (*GetTimestampCertChainOK) IsCode ¶
func (o *GetTimestampCertChainOK) IsCode(code int) bool
IsCode returns true when this get timestamp cert chain o k response a status code equal to that given
func (*GetTimestampCertChainOK) IsRedirect ¶
func (o *GetTimestampCertChainOK) IsRedirect() bool
IsRedirect returns true when this get timestamp cert chain o k response has a 3xx status code
func (*GetTimestampCertChainOK) IsServerError ¶
func (o *GetTimestampCertChainOK) IsServerError() bool
IsServerError returns true when this get timestamp cert chain o k response has a 5xx status code
func (*GetTimestampCertChainOK) IsSuccess ¶
func (o *GetTimestampCertChainOK) IsSuccess() bool
IsSuccess returns true when this get timestamp cert chain o k response has a 2xx status code
func (*GetTimestampCertChainOK) String ¶
func (o *GetTimestampCertChainOK) String() string
type GetTimestampCertChainParams ¶
type GetTimestampCertChainParams struct {
HTTPClient *http.Client
// contains filtered or unexported fields
}
GetTimestampCertChainParams contains all the parameters to send to the API endpoint
for the get timestamp cert chain operation. Typically these are written to a http.Request.
func NewGetTimestampCertChainParams ¶
func NewGetTimestampCertChainParams() *GetTimestampCertChainParams
NewGetTimestampCertChainParams creates a new GetTimestampCertChainParams 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 NewGetTimestampCertChainParamsWithContext
deprecated
func NewGetTimestampCertChainParamsWithContext(ctx context.Context) *GetTimestampCertChainParams
NewGetTimestampCertChainParamsWithContext creates a new GetTimestampCertChainParams object with the ability to set a context for a request.
Deprecated: use the operation call with context to pass the context instead of GetTimestampCertChainParams.
func NewGetTimestampCertChainParamsWithHTTPClient ¶
func NewGetTimestampCertChainParamsWithHTTPClient(client *http.Client) *GetTimestampCertChainParams
NewGetTimestampCertChainParamsWithHTTPClient creates a new GetTimestampCertChainParams object with the ability to set a custom HTTPClient for a request.
func NewGetTimestampCertChainParamsWithTimeout ¶
func NewGetTimestampCertChainParamsWithTimeout(timeout time.Duration) *GetTimestampCertChainParams
NewGetTimestampCertChainParamsWithTimeout creates a new GetTimestampCertChainParams object with the ability to set a timeout on a request.
func (*GetTimestampCertChainParams) SetContext
deprecated
func (o *GetTimestampCertChainParams) SetContext(ctx context.Context)
SetContext adds the context to the get timestamp cert chain params.
Deprecated: use the operation call with context to pass the context instead of GetTimestampCertChainParams.
func (*GetTimestampCertChainParams) SetDefaults ¶
func (o *GetTimestampCertChainParams) SetDefaults()
SetDefaults hydrates default values in the get timestamp cert chain params (not the query body).
All values with no default are reset to their zero value.
func (*GetTimestampCertChainParams) SetHTTPClient ¶
func (o *GetTimestampCertChainParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the get timestamp cert chain params.
func (*GetTimestampCertChainParams) SetTimeout ¶
func (o *GetTimestampCertChainParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the get timestamp cert chain params.
func (*GetTimestampCertChainParams) WithContext
deprecated
func (o *GetTimestampCertChainParams) WithContext(ctx context.Context) *GetTimestampCertChainParams
WithContext adds the context to the get timestamp cert chain params.
Deprecated: use the operation call with context to pass the context instead of GetTimestampCertChainParams.
func (*GetTimestampCertChainParams) WithDefaults ¶
func (o *GetTimestampCertChainParams) WithDefaults() *GetTimestampCertChainParams
WithDefaults hydrates default values in the get timestamp cert chain params (not the query body).
All values with no default are reset to their zero value.
func (*GetTimestampCertChainParams) WithHTTPClient ¶
func (o *GetTimestampCertChainParams) WithHTTPClient(client *http.Client) *GetTimestampCertChainParams
WithHTTPClient adds the HTTPClient to the get timestamp cert chain params.
func (*GetTimestampCertChainParams) WithTimeout ¶
func (o *GetTimestampCertChainParams) WithTimeout(timeout time.Duration) *GetTimestampCertChainParams
WithTimeout adds the timeout to the get timestamp cert chain params.
func (*GetTimestampCertChainParams) WriteToRequest ¶
func (o *GetTimestampCertChainParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a runtime.ClientRequest.
type GetTimestampCertChainReader ¶
type GetTimestampCertChainReader struct {
// contains filtered or unexported fields
}
GetTimestampCertChainReader is a Reader for the GetTimestampCertChain structure.
func (*GetTimestampCertChainReader) ReadResponse ¶
func (o *GetTimestampCertChainReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (any, error)
ReadResponse reads a server response into the received o.
type GetTimestampResponseBadRequest ¶
GetTimestampResponseBadRequest describes a response with status code 400, with default header values.
The content supplied to the server was invalid
func NewGetTimestampResponseBadRequest ¶
func NewGetTimestampResponseBadRequest() *GetTimestampResponseBadRequest
NewGetTimestampResponseBadRequest creates a GetTimestampResponseBadRequest with default headers values
func (*GetTimestampResponseBadRequest) Code ¶
func (o *GetTimestampResponseBadRequest) Code() int
Code gets the status code for the get timestamp response bad request response
func (*GetTimestampResponseBadRequest) Error ¶
func (o *GetTimestampResponseBadRequest) Error() string
func (*GetTimestampResponseBadRequest) GetPayload ¶
func (o *GetTimestampResponseBadRequest) GetPayload() *models.Error
func (*GetTimestampResponseBadRequest) IsClientError ¶
func (o *GetTimestampResponseBadRequest) IsClientError() bool
IsClientError returns true when this get timestamp response bad request response has a 4xx status code
func (*GetTimestampResponseBadRequest) IsCode ¶
func (o *GetTimestampResponseBadRequest) IsCode(code int) bool
IsCode returns true when this get timestamp response bad request response a status code equal to that given
func (*GetTimestampResponseBadRequest) IsRedirect ¶
func (o *GetTimestampResponseBadRequest) IsRedirect() bool
IsRedirect returns true when this get timestamp response bad request response has a 3xx status code
func (*GetTimestampResponseBadRequest) IsServerError ¶
func (o *GetTimestampResponseBadRequest) IsServerError() bool
IsServerError returns true when this get timestamp response bad request response has a 5xx status code
func (*GetTimestampResponseBadRequest) IsSuccess ¶
func (o *GetTimestampResponseBadRequest) IsSuccess() bool
IsSuccess returns true when this get timestamp response bad request response has a 2xx status code
func (*GetTimestampResponseBadRequest) String ¶
func (o *GetTimestampResponseBadRequest) String() string
type GetTimestampResponseCreated ¶
GetTimestampResponseCreated describes a response with status code 201, with default header values.
Returns a timestamp response and the location of the log entry in the transprency log
func NewGetTimestampResponseCreated ¶
func NewGetTimestampResponseCreated(writer io.Writer) *GetTimestampResponseCreated
NewGetTimestampResponseCreated creates a GetTimestampResponseCreated with default headers values
func (*GetTimestampResponseCreated) Code ¶
func (o *GetTimestampResponseCreated) Code() int
Code gets the status code for the get timestamp response created response
func (*GetTimestampResponseCreated) Error ¶
func (o *GetTimestampResponseCreated) Error() string
func (*GetTimestampResponseCreated) GetPayload ¶
func (o *GetTimestampResponseCreated) GetPayload() io.Writer
func (*GetTimestampResponseCreated) IsClientError ¶
func (o *GetTimestampResponseCreated) IsClientError() bool
IsClientError returns true when this get timestamp response created response has a 4xx status code
func (*GetTimestampResponseCreated) IsCode ¶
func (o *GetTimestampResponseCreated) IsCode(code int) bool
IsCode returns true when this get timestamp response created response a status code equal to that given
func (*GetTimestampResponseCreated) IsRedirect ¶
func (o *GetTimestampResponseCreated) IsRedirect() bool
IsRedirect returns true when this get timestamp response created response has a 3xx status code
func (*GetTimestampResponseCreated) IsServerError ¶
func (o *GetTimestampResponseCreated) IsServerError() bool
IsServerError returns true when this get timestamp response created response has a 5xx status code
func (*GetTimestampResponseCreated) IsSuccess ¶
func (o *GetTimestampResponseCreated) IsSuccess() bool
IsSuccess returns true when this get timestamp response created response has a 2xx status code
func (*GetTimestampResponseCreated) String ¶
func (o *GetTimestampResponseCreated) String() string
type GetTimestampResponseDefault ¶
type GetTimestampResponseDefault struct {
Payload *models.Error
// contains filtered or unexported fields
}
GetTimestampResponseDefault describes a response with status code -1, with default header values.
There was an internal error in the server while processing the request
func NewGetTimestampResponseDefault ¶
func NewGetTimestampResponseDefault(code int) *GetTimestampResponseDefault
NewGetTimestampResponseDefault creates a GetTimestampResponseDefault with default headers values
func (*GetTimestampResponseDefault) Code ¶
func (o *GetTimestampResponseDefault) Code() int
Code gets the status code for the get timestamp response default response
func (*GetTimestampResponseDefault) Error ¶
func (o *GetTimestampResponseDefault) Error() string
func (*GetTimestampResponseDefault) GetPayload ¶
func (o *GetTimestampResponseDefault) GetPayload() *models.Error
func (*GetTimestampResponseDefault) IsClientError ¶
func (o *GetTimestampResponseDefault) IsClientError() bool
IsClientError returns true when this get timestamp response default response has a 4xx status code
func (*GetTimestampResponseDefault) IsCode ¶
func (o *GetTimestampResponseDefault) IsCode(code int) bool
IsCode returns true when this get timestamp response default response a status code equal to that given
func (*GetTimestampResponseDefault) IsRedirect ¶
func (o *GetTimestampResponseDefault) IsRedirect() bool
IsRedirect returns true when this get timestamp response default response has a 3xx status code
func (*GetTimestampResponseDefault) IsServerError ¶
func (o *GetTimestampResponseDefault) IsServerError() bool
IsServerError returns true when this get timestamp response default response has a 5xx status code
func (*GetTimestampResponseDefault) IsSuccess ¶
func (o *GetTimestampResponseDefault) IsSuccess() bool
IsSuccess returns true when this get timestamp response default response has a 2xx status code
func (*GetTimestampResponseDefault) String ¶
func (o *GetTimestampResponseDefault) String() string
type GetTimestampResponseNotImplemented ¶
type GetTimestampResponseNotImplemented struct {
}
GetTimestampResponseNotImplemented describes a response with status code 501, with default header values.
The content requested is not implemented
func NewGetTimestampResponseNotImplemented ¶
func NewGetTimestampResponseNotImplemented() *GetTimestampResponseNotImplemented
NewGetTimestampResponseNotImplemented creates a GetTimestampResponseNotImplemented with default headers values
func (*GetTimestampResponseNotImplemented) Code ¶
func (o *GetTimestampResponseNotImplemented) Code() int
Code gets the status code for the get timestamp response not implemented response
func (*GetTimestampResponseNotImplemented) Error ¶
func (o *GetTimestampResponseNotImplemented) Error() string
func (*GetTimestampResponseNotImplemented) IsClientError ¶
func (o *GetTimestampResponseNotImplemented) IsClientError() bool
IsClientError returns true when this get timestamp response not implemented response has a 4xx status code
func (*GetTimestampResponseNotImplemented) IsCode ¶
func (o *GetTimestampResponseNotImplemented) IsCode(code int) bool
IsCode returns true when this get timestamp response not implemented response a status code equal to that given
func (*GetTimestampResponseNotImplemented) IsRedirect ¶
func (o *GetTimestampResponseNotImplemented) IsRedirect() bool
IsRedirect returns true when this get timestamp response not implemented response has a 3xx status code
func (*GetTimestampResponseNotImplemented) IsServerError ¶
func (o *GetTimestampResponseNotImplemented) IsServerError() bool
IsServerError returns true when this get timestamp response not implemented response has a 5xx status code
func (*GetTimestampResponseNotImplemented) IsSuccess ¶
func (o *GetTimestampResponseNotImplemented) IsSuccess() bool
IsSuccess returns true when this get timestamp response not implemented response has a 2xx status code
func (*GetTimestampResponseNotImplemented) String ¶
func (o *GetTimestampResponseNotImplemented) String() string
type GetTimestampResponseOK ¶
GetTimestampResponseOK describes a response with status code 200, with default header values.
Returns a timestamp response and the location of the log entry in the transprency log
func NewGetTimestampResponseOK ¶
func NewGetTimestampResponseOK(writer io.Writer) *GetTimestampResponseOK
NewGetTimestampResponseOK creates a GetTimestampResponseOK with default headers values
func (*GetTimestampResponseOK) Code ¶
func (o *GetTimestampResponseOK) Code() int
Code gets the status code for the get timestamp response o k response
func (*GetTimestampResponseOK) Error ¶
func (o *GetTimestampResponseOK) Error() string
func (*GetTimestampResponseOK) GetPayload ¶
func (o *GetTimestampResponseOK) GetPayload() io.Writer
func (*GetTimestampResponseOK) IsClientError ¶
func (o *GetTimestampResponseOK) IsClientError() bool
IsClientError returns true when this get timestamp response o k response has a 4xx status code
func (*GetTimestampResponseOK) IsCode ¶
func (o *GetTimestampResponseOK) IsCode(code int) bool
IsCode returns true when this get timestamp response o k response a status code equal to that given
func (*GetTimestampResponseOK) IsRedirect ¶
func (o *GetTimestampResponseOK) IsRedirect() bool
IsRedirect returns true when this get timestamp response o k response has a 3xx status code
func (*GetTimestampResponseOK) IsServerError ¶
func (o *GetTimestampResponseOK) IsServerError() bool
IsServerError returns true when this get timestamp response o k response has a 5xx status code
func (*GetTimestampResponseOK) IsSuccess ¶
func (o *GetTimestampResponseOK) IsSuccess() bool
IsSuccess returns true when this get timestamp response o k response has a 2xx status code
func (*GetTimestampResponseOK) String ¶
func (o *GetTimestampResponseOK) String() string
type GetTimestampResponseParams ¶
type GetTimestampResponseParams struct {
// Request.
//
// Format: binary
Request io.ReadCloser
HTTPClient *http.Client
// contains filtered or unexported fields
}
GetTimestampResponseParams contains all the parameters to send to the API endpoint
for the get timestamp response operation. Typically these are written to a http.Request.
func NewGetTimestampResponseParams ¶
func NewGetTimestampResponseParams() *GetTimestampResponseParams
NewGetTimestampResponseParams creates a new GetTimestampResponseParams 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 NewGetTimestampResponseParamsWithContext
deprecated
func NewGetTimestampResponseParamsWithContext(ctx context.Context) *GetTimestampResponseParams
NewGetTimestampResponseParamsWithContext creates a new GetTimestampResponseParams object with the ability to set a context for a request.
Deprecated: use the operation call with context to pass the context instead of GetTimestampResponseParams.
func NewGetTimestampResponseParamsWithHTTPClient ¶
func NewGetTimestampResponseParamsWithHTTPClient(client *http.Client) *GetTimestampResponseParams
NewGetTimestampResponseParamsWithHTTPClient creates a new GetTimestampResponseParams object with the ability to set a custom HTTPClient for a request.
func NewGetTimestampResponseParamsWithTimeout ¶
func NewGetTimestampResponseParamsWithTimeout(timeout time.Duration) *GetTimestampResponseParams
NewGetTimestampResponseParamsWithTimeout creates a new GetTimestampResponseParams object with the ability to set a timeout on a request.
func (*GetTimestampResponseParams) SetContext
deprecated
func (o *GetTimestampResponseParams) SetContext(ctx context.Context)
SetContext adds the context to the get timestamp response params.
Deprecated: use the operation call with context to pass the context instead of GetTimestampResponseParams.
func (*GetTimestampResponseParams) SetDefaults ¶
func (o *GetTimestampResponseParams) SetDefaults()
SetDefaults hydrates default values in the get timestamp response params (not the query body).
All values with no default are reset to their zero value.
func (*GetTimestampResponseParams) SetHTTPClient ¶
func (o *GetTimestampResponseParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the get timestamp response params.
func (*GetTimestampResponseParams) SetRequest ¶
func (o *GetTimestampResponseParams) SetRequest(request io.ReadCloser)
SetRequest adds the request to the get timestamp response params.
func (*GetTimestampResponseParams) SetTimeout ¶
func (o *GetTimestampResponseParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the get timestamp response params.
func (*GetTimestampResponseParams) WithContext
deprecated
func (o *GetTimestampResponseParams) WithContext(ctx context.Context) *GetTimestampResponseParams
WithContext adds the context to the get timestamp response params.
Deprecated: use the operation call with context to pass the context instead of GetTimestampResponseParams.
func (*GetTimestampResponseParams) WithDefaults ¶
func (o *GetTimestampResponseParams) WithDefaults() *GetTimestampResponseParams
WithDefaults hydrates default values in the get timestamp response params (not the query body).
All values with no default are reset to their zero value.
func (*GetTimestampResponseParams) WithHTTPClient ¶
func (o *GetTimestampResponseParams) WithHTTPClient(client *http.Client) *GetTimestampResponseParams
WithHTTPClient adds the HTTPClient to the get timestamp response params.
func (*GetTimestampResponseParams) WithRequest ¶
func (o *GetTimestampResponseParams) WithRequest(request io.ReadCloser) *GetTimestampResponseParams
WithRequest adds the request to the get timestamp response params.
func (*GetTimestampResponseParams) WithTimeout ¶
func (o *GetTimestampResponseParams) WithTimeout(timeout time.Duration) *GetTimestampResponseParams
WithTimeout adds the timeout to the get timestamp response params.
func (*GetTimestampResponseParams) WriteToRequest ¶
func (o *GetTimestampResponseParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a runtime.ClientRequest.
type GetTimestampResponseReader ¶
type GetTimestampResponseReader struct {
// contains filtered or unexported fields
}
GetTimestampResponseReader is a Reader for the GetTimestampResponse structure.
func (*GetTimestampResponseReader) ReadResponse ¶
func (o *GetTimestampResponseReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (any, error)
ReadResponse reads a server response into the received o.