Documentation ¶
Index ¶
- type Client
- func (a *Client) GetTimestampCertChain(params *GetTimestampCertChainParams, opts ...ClientOption) (*GetTimestampCertChainOK, error)
- func (a *Client) GetTimestampResponse(params *GetTimestampResponseParams, writer io.Writer, opts ...ClientOption) (*GetTimestampResponseCreated, error)
- func (a *Client) SetTransport(transport runtime.ClientTransport)
- type ClientOption
- type ClientService
- type GetTimestampCertChainDefault
- type GetTimestampCertChainNotFound
- type GetTimestampCertChainOK
- type GetTimestampCertChainParams
- func NewGetTimestampCertChainParams() *GetTimestampCertChainParams
- func NewGetTimestampCertChainParamsWithContext(ctx context.Context) *GetTimestampCertChainParams
- func NewGetTimestampCertChainParamsWithHTTPClient(client *http.Client) *GetTimestampCertChainParams
- func NewGetTimestampCertChainParamsWithTimeout(timeout time.Duration) *GetTimestampCertChainParams
- func (o *GetTimestampCertChainParams) SetContext(ctx context.Context)
- 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) *GetTimestampCertChainParams
- 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
- type GetTimestampResponseCreated
- type GetTimestampResponseDefault
- type GetTimestampResponseNotImplemented
- type GetTimestampResponseParams
- func NewGetTimestampResponseParams() *GetTimestampResponseParams
- func NewGetTimestampResponseParamsWithContext(ctx context.Context) *GetTimestampResponseParams
- func NewGetTimestampResponseParamsWithHTTPClient(client *http.Client) *GetTimestampResponseParams
- func NewGetTimestampResponseParamsWithTimeout(timeout time.Duration) *GetTimestampResponseParams
- func (o *GetTimestampResponseParams) SetContext(ctx context.Context)
- 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) *GetTimestampResponseParams
- 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 ¶
This section is empty.
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 certfiicate chain for timestamping that can be used to validate trusted timestamps
Returns the certfiicate chain for timestamping that can be used to validate trusted timestamps
func (*Client) GetTimestampResponse ¶
func (a *Client) GetTimestampResponse(params *GetTimestampResponseParams, writer io.Writer, opts ...ClientOption) (*GetTimestampResponseCreated, error)
GetTimestampResponse generates a new timestamp response and creates a new log entry for the timestamp in the transparency log
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 { GetTimestampCertChain(params *GetTimestampCertChainParams, opts ...ClientOption) (*GetTimestampCertChainOK, error) GetTimestampResponse(params *GetTimestampResponseParams, writer io.Writer, opts ...ClientOption) (*GetTimestampResponseCreated, 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 timestamp API client.
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
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) Error ¶
func (o *GetTimestampCertChainNotFound) Error() 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) Error ¶
func (o *GetTimestampCertChainOK) Error() string
func (*GetTimestampCertChainOK) GetPayload ¶
func (o *GetTimestampCertChainOK) GetPayload() string
type GetTimestampCertChainParams ¶
type GetTimestampCertChainParams struct { Context context.Context 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 ¶
func NewGetTimestampCertChainParamsWithContext(ctx context.Context) *GetTimestampCertChainParams
NewGetTimestampCertChainParamsWithContext creates a new GetTimestampCertChainParams object with the ability to set a context for a request.
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 ¶
func (o *GetTimestampCertChainParams) SetContext(ctx context.Context)
SetContext adds the context to the get timestamp cert chain params
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 ¶
func (o *GetTimestampCertChainParams) WithContext(ctx context.Context) *GetTimestampCertChainParams
WithContext adds the context to the get timestamp cert chain params
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 swagger request
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) (interface{}, 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) Error ¶
func (o *GetTimestampResponseBadRequest) Error() string
func (*GetTimestampResponseBadRequest) GetPayload ¶
func (o *GetTimestampResponseBadRequest) GetPayload() *models.Error
type GetTimestampResponseCreated ¶ added in v0.3.0
type GetTimestampResponseCreated struct { /* UUID of the log entry made for the timestamp response */ ETag string /* Log index of the log entry made for the timestamp response */ Index int64 /* URI location of the log entry made for the timestamp response Format: uri */ Location strfmt.URI Payload io.Writer }
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 ¶ added in v0.3.0
func NewGetTimestampResponseCreated(writer io.Writer) *GetTimestampResponseCreated
NewGetTimestampResponseCreated creates a GetTimestampResponseCreated with default headers values
func (*GetTimestampResponseCreated) Error ¶ added in v0.3.0
func (o *GetTimestampResponseCreated) Error() string
func (*GetTimestampResponseCreated) GetPayload ¶ added in v0.3.0
func (o *GetTimestampResponseCreated) GetPayload() io.Writer
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
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) Error ¶
func (o *GetTimestampResponseNotImplemented) Error() string
type GetTimestampResponseParams ¶
type GetTimestampResponseParams struct { // Request. // // Format: binary Request io.ReadCloser Context context.Context 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 ¶
func NewGetTimestampResponseParamsWithContext(ctx context.Context) *GetTimestampResponseParams
NewGetTimestampResponseParamsWithContext creates a new GetTimestampResponseParams object with the ability to set a context for a request.
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 ¶
func (o *GetTimestampResponseParams) SetContext(ctx context.Context)
SetContext adds the context to the get timestamp response params
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 ¶
func (o *GetTimestampResponseParams) WithContext(ctx context.Context) *GetTimestampResponseParams
WithContext adds the context to the get timestamp response params
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 swagger request
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) (interface{}, error)
ReadResponse reads a server response into the received o.