timestamp

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Dec 16, 2021 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

Client for 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

Code gets the status code for the get timestamp cert chain default response

func (*GetTimestampCertChainDefault) Error

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

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

WithContext adds the context to the get timestamp cert chain params

func (*GetTimestampCertChainParams) WithDefaults

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

WithHTTPClient adds the HTTPClient to the get timestamp cert chain params

func (*GetTimestampCertChainParams) WithTimeout

WithTimeout adds the timeout to the get timestamp cert chain params

func (*GetTimestampCertChainParams) WriteToRequest

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

type GetTimestampResponseBadRequest struct {
	Payload *models.Error
}
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 (*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 (*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 (*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

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

WithContext adds the context to the get timestamp response params

func (*GetTimestampResponseParams) WithDefaults

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

WithHTTPClient adds the HTTPClient to the get timestamp response params

func (*GetTimestampResponseParams) WithRequest

WithRequest adds the request to the get timestamp response params

func (*GetTimestampResponseParams) WithTimeout

WithTimeout adds the timeout to the get timestamp response params

func (*GetTimestampResponseParams) WriteToRequest

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.

Jump to

Keyboard shortcuts

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