timestamp

package
v1.2.2 Latest Latest
Warning

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

Go to latest
Published: Feb 14, 2024 License: Apache-2.0 Imports: 10 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 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

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

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

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 added in v1.1.0

Code gets the status code for the get timestamp cert chain not found response

func (*GetTimestampCertChainNotFound) Error

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

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 added in v1.1.0

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 {
	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) Code added in v1.1.0

Code gets the status code for the get timestamp response bad request response

func (*GetTimestampResponseBadRequest) Error

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

type GetTimestampResponseCreated

type GetTimestampResponseCreated struct {
	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

func NewGetTimestampResponseCreated(writer io.Writer) *GetTimestampResponseCreated

NewGetTimestampResponseCreated creates a GetTimestampResponseCreated with default headers values

func (*GetTimestampResponseCreated) Code added in v1.1.0

func (o *GetTimestampResponseCreated) Code() int

Code gets the status code for the get timestamp response created response

func (*GetTimestampResponseCreated) Error

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 (*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 added in v1.1.0

Code gets the status code for the get timestamp response not implemented response

func (*GetTimestampResponseNotImplemented) Error

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

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

IsSuccess returns true when this get timestamp response not implemented response has a 2xx status code

func (*GetTimestampResponseNotImplemented) 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

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