timestamp

package
v1.2.3 Latest Latest
Warning

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

Go to latest
Published: Sep 25, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const GetTimestampCertChainNotFoundCode int = 404

GetTimestampCertChainNotFoundCode is the HTTP code returned for type GetTimestampCertChainNotFound

View Source
const GetTimestampCertChainOKCode int = 200

GetTimestampCertChainOKCode is the HTTP code returned for type GetTimestampCertChainOK

View Source
const GetTimestampResponseBadRequestCode int = 400

GetTimestampResponseBadRequestCode is the HTTP code returned for type GetTimestampResponseBadRequest

View Source
const GetTimestampResponseCreatedCode int = 201

GetTimestampResponseCreatedCode is the HTTP code returned for type GetTimestampResponseCreated

View Source
const GetTimestampResponseNotImplementedCode int = 501

GetTimestampResponseNotImplementedCode is the HTTP code returned for type GetTimestampResponseNotImplemented

Variables

This section is empty.

Functions

This section is empty.

Types

type GetTimestampCertChain

type GetTimestampCertChain struct {
	Context *middleware.Context
	Handler GetTimestampCertChainHandler
}
GetTimestampCertChain swagger:route GET /api/v1/timestamp/certchain timestamp getTimestampCertChain

Retrieve 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 NewGetTimestampCertChain

func NewGetTimestampCertChain(ctx *middleware.Context, handler GetTimestampCertChainHandler) *GetTimestampCertChain

NewGetTimestampCertChain creates a new http.Handler for the get timestamp cert chain operation

func (*GetTimestampCertChain) ServeHTTP

func (o *GetTimestampCertChain) ServeHTTP(rw http.ResponseWriter, r *http.Request)

type GetTimestampCertChainDefault

type GetTimestampCertChainDefault struct {

	/*
	  In: Body
	*/
	Payload *models.Error `json:"body,omitempty"`
	// contains filtered or unexported fields
}

GetTimestampCertChainDefault There was an internal error in the server while processing the request

swagger:response getTimestampCertChainDefault

func NewGetTimestampCertChainDefault

func NewGetTimestampCertChainDefault(code int) *GetTimestampCertChainDefault

NewGetTimestampCertChainDefault creates GetTimestampCertChainDefault with default headers values

func (*GetTimestampCertChainDefault) SetPayload

func (o *GetTimestampCertChainDefault) SetPayload(payload *models.Error)

SetPayload sets the payload to the get timestamp cert chain default response

func (*GetTimestampCertChainDefault) SetStatusCode

func (o *GetTimestampCertChainDefault) SetStatusCode(code int)

SetStatusCode sets the status to the get timestamp cert chain default response

func (*GetTimestampCertChainDefault) WithPayload

WithPayload adds the payload to the get timestamp cert chain default response

func (*GetTimestampCertChainDefault) WithStatusCode

WithStatusCode adds the status to the get timestamp cert chain default response

func (*GetTimestampCertChainDefault) WriteResponse

func (o *GetTimestampCertChainDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type GetTimestampCertChainHandler

type GetTimestampCertChainHandler interface {
	Handle(GetTimestampCertChainParams) middleware.Responder
}

GetTimestampCertChainHandler interface for that can handle valid get timestamp cert chain params

type GetTimestampCertChainHandlerFunc

type GetTimestampCertChainHandlerFunc func(GetTimestampCertChainParams) middleware.Responder

GetTimestampCertChainHandlerFunc turns a function with the right signature into a get timestamp cert chain handler

func (GetTimestampCertChainHandlerFunc) Handle

Handle executing the request and returning a response

type GetTimestampCertChainNotFound

type GetTimestampCertChainNotFound struct {
}

GetTimestampCertChainNotFound The content requested could not be found

swagger:response getTimestampCertChainNotFound

func NewGetTimestampCertChainNotFound

func NewGetTimestampCertChainNotFound() *GetTimestampCertChainNotFound

NewGetTimestampCertChainNotFound creates GetTimestampCertChainNotFound with default headers values

func (*GetTimestampCertChainNotFound) WriteResponse

func (o *GetTimestampCertChainNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type GetTimestampCertChainOK

type GetTimestampCertChainOK struct {

	/*
	  In: Body
	*/
	Payload string `json:"body,omitempty"`
}

GetTimestampCertChainOK The PEM encoded cert chain

swagger:response getTimestampCertChainOK

func NewGetTimestampCertChainOK

func NewGetTimestampCertChainOK() *GetTimestampCertChainOK

NewGetTimestampCertChainOK creates GetTimestampCertChainOK with default headers values

func (*GetTimestampCertChainOK) SetPayload

func (o *GetTimestampCertChainOK) SetPayload(payload string)

SetPayload sets the payload to the get timestamp cert chain o k response

func (*GetTimestampCertChainOK) WithPayload

func (o *GetTimestampCertChainOK) WithPayload(payload string) *GetTimestampCertChainOK

WithPayload adds the payload to the get timestamp cert chain o k response

func (*GetTimestampCertChainOK) WriteResponse

func (o *GetTimestampCertChainOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type GetTimestampCertChainParams

type GetTimestampCertChainParams struct {

	// HTTP Request Object
	HTTPRequest *http.Request `json:"-"`
}

GetTimestampCertChainParams contains all the bound params for the get timestamp cert chain operation typically these are obtained from a http.Request

swagger:parameters getTimestampCertChain

func NewGetTimestampCertChainParams

func NewGetTimestampCertChainParams() GetTimestampCertChainParams

NewGetTimestampCertChainParams creates a new GetTimestampCertChainParams object

There are no default values defined in the spec.

func (*GetTimestampCertChainParams) BindRequest

BindRequest both binds and validates a request, it assumes that complex things implement a Validatable(strfmt.Registry) error interface for simple values it will use straight method calls.

To ensure default values, the struct must have been initialized with NewGetTimestampCertChainParams() beforehand.

type GetTimestampCertChainURL

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

GetTimestampCertChainURL generates an URL for the get timestamp cert chain operation

func (*GetTimestampCertChainURL) Build

func (o *GetTimestampCertChainURL) Build() (*url.URL, error)

Build a url path and query string

func (*GetTimestampCertChainURL) BuildFull

func (o *GetTimestampCertChainURL) BuildFull(scheme, host string) (*url.URL, error)

BuildFull builds a full url with scheme, host, path and query string

func (*GetTimestampCertChainURL) Must

func (o *GetTimestampCertChainURL) Must(u *url.URL, err error) *url.URL

Must is a helper function to panic when the url builder returns an error

func (*GetTimestampCertChainURL) SetBasePath

func (o *GetTimestampCertChainURL) SetBasePath(bp string)

SetBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string

func (*GetTimestampCertChainURL) String

func (o *GetTimestampCertChainURL) String() string

String returns the string representation of the path with query string

func (*GetTimestampCertChainURL) StringFull

func (o *GetTimestampCertChainURL) StringFull(scheme, host string) string

StringFull returns the string representation of a complete url

func (*GetTimestampCertChainURL) WithBasePath

WithBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string

type GetTimestampResponse

type GetTimestampResponse struct {
	Context *middleware.Context
	Handler GetTimestampResponseHandler
}
GetTimestampResponse swagger:route POST /api/v1/timestamp timestamp getTimestampResponse

Generates a new timestamp response and creates a new log entry for the timestamp in the transparency log

func NewGetTimestampResponse

func NewGetTimestampResponse(ctx *middleware.Context, handler GetTimestampResponseHandler) *GetTimestampResponse

NewGetTimestampResponse creates a new http.Handler for the get timestamp response operation

func (*GetTimestampResponse) ServeHTTP

func (o *GetTimestampResponse) ServeHTTP(rw http.ResponseWriter, r *http.Request)

type GetTimestampResponseBadRequest

type GetTimestampResponseBadRequest struct {

	/*
	  In: Body
	*/
	Payload *models.Error `json:"body,omitempty"`
}

GetTimestampResponseBadRequest The content supplied to the server was invalid

swagger:response getTimestampResponseBadRequest

func NewGetTimestampResponseBadRequest

func NewGetTimestampResponseBadRequest() *GetTimestampResponseBadRequest

NewGetTimestampResponseBadRequest creates GetTimestampResponseBadRequest with default headers values

func (*GetTimestampResponseBadRequest) SetPayload

func (o *GetTimestampResponseBadRequest) SetPayload(payload *models.Error)

SetPayload sets the payload to the get timestamp response bad request response

func (*GetTimestampResponseBadRequest) WithPayload

WithPayload adds the payload to the get timestamp response bad request response

func (*GetTimestampResponseBadRequest) WriteResponse

func (o *GetTimestampResponseBadRequest) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type GetTimestampResponseCreated

type GetTimestampResponseCreated struct {

	/*
	  In: Body
	*/
	Payload io.ReadCloser `json:"body,omitempty"`
}

GetTimestampResponseCreated Returns a timestamp response and the location of the log entry in the transprency log

swagger:response getTimestampResponseCreated

func NewGetTimestampResponseCreated

func NewGetTimestampResponseCreated() *GetTimestampResponseCreated

NewGetTimestampResponseCreated creates GetTimestampResponseCreated with default headers values

func (*GetTimestampResponseCreated) SetPayload

func (o *GetTimestampResponseCreated) SetPayload(payload io.ReadCloser)

SetPayload sets the payload to the get timestamp response created response

func (*GetTimestampResponseCreated) WithPayload

WithPayload adds the payload to the get timestamp response created response

func (*GetTimestampResponseCreated) WriteResponse

func (o *GetTimestampResponseCreated) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type GetTimestampResponseDefault

type GetTimestampResponseDefault struct {

	/*
	  In: Body
	*/
	Payload *models.Error `json:"body,omitempty"`
	// contains filtered or unexported fields
}

GetTimestampResponseDefault There was an internal error in the server while processing the request

swagger:response getTimestampResponseDefault

func NewGetTimestampResponseDefault

func NewGetTimestampResponseDefault(code int) *GetTimestampResponseDefault

NewGetTimestampResponseDefault creates GetTimestampResponseDefault with default headers values

func (*GetTimestampResponseDefault) SetPayload

func (o *GetTimestampResponseDefault) SetPayload(payload *models.Error)

SetPayload sets the payload to the get timestamp response default response

func (*GetTimestampResponseDefault) SetStatusCode

func (o *GetTimestampResponseDefault) SetStatusCode(code int)

SetStatusCode sets the status to the get timestamp response default response

func (*GetTimestampResponseDefault) WithPayload

WithPayload adds the payload to the get timestamp response default response

func (*GetTimestampResponseDefault) WithStatusCode

WithStatusCode adds the status to the get timestamp response default response

func (*GetTimestampResponseDefault) WriteResponse

func (o *GetTimestampResponseDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type GetTimestampResponseHandler

type GetTimestampResponseHandler interface {
	Handle(GetTimestampResponseParams) middleware.Responder
}

GetTimestampResponseHandler interface for that can handle valid get timestamp response params

type GetTimestampResponseHandlerFunc

type GetTimestampResponseHandlerFunc func(GetTimestampResponseParams) middleware.Responder

GetTimestampResponseHandlerFunc turns a function with the right signature into a get timestamp response handler

func (GetTimestampResponseHandlerFunc) Handle

Handle executing the request and returning a response

type GetTimestampResponseNotImplemented

type GetTimestampResponseNotImplemented struct {
}

GetTimestampResponseNotImplemented The content requested is not implemented

swagger:response getTimestampResponseNotImplemented

func NewGetTimestampResponseNotImplemented

func NewGetTimestampResponseNotImplemented() *GetTimestampResponseNotImplemented

NewGetTimestampResponseNotImplemented creates GetTimestampResponseNotImplemented with default headers values

func (*GetTimestampResponseNotImplemented) WriteResponse

WriteResponse to the client

type GetTimestampResponseParams

type GetTimestampResponseParams struct {

	// HTTP Request Object
	HTTPRequest *http.Request `json:"-"`

	/*
	  Required: true
	  In: body
	*/
	Request io.ReadCloser
}

GetTimestampResponseParams contains all the bound params for the get timestamp response operation typically these are obtained from a http.Request

swagger:parameters getTimestampResponse

func NewGetTimestampResponseParams

func NewGetTimestampResponseParams() GetTimestampResponseParams

NewGetTimestampResponseParams creates a new GetTimestampResponseParams object

There are no default values defined in the spec.

func (*GetTimestampResponseParams) BindRequest

BindRequest both binds and validates a request, it assumes that complex things implement a Validatable(strfmt.Registry) error interface for simple values it will use straight method calls.

To ensure default values, the struct must have been initialized with NewGetTimestampResponseParams() beforehand.

type GetTimestampResponseURL

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

GetTimestampResponseURL generates an URL for the get timestamp response operation

func (*GetTimestampResponseURL) Build

func (o *GetTimestampResponseURL) Build() (*url.URL, error)

Build a url path and query string

func (*GetTimestampResponseURL) BuildFull

func (o *GetTimestampResponseURL) BuildFull(scheme, host string) (*url.URL, error)

BuildFull builds a full url with scheme, host, path and query string

func (*GetTimestampResponseURL) Must

func (o *GetTimestampResponseURL) Must(u *url.URL, err error) *url.URL

Must is a helper function to panic when the url builder returns an error

func (*GetTimestampResponseURL) SetBasePath

func (o *GetTimestampResponseURL) SetBasePath(bp string)

SetBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string

func (*GetTimestampResponseURL) String

func (o *GetTimestampResponseURL) String() string

String returns the string representation of the path with query string

func (*GetTimestampResponseURL) StringFull

func (o *GetTimestampResponseURL) StringFull(scheme, host string) string

StringFull returns the string representation of a complete url

func (*GetTimestampResponseURL) WithBasePath

WithBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string

Jump to

Keyboard shortcuts

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