timestamp

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jun 16, 2021 License: Apache-2.0 Imports: 11 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 GetTimestampResponseNotImplementedCode int = 501

GetTimestampResponseNotImplementedCode is the HTTP code returned for type GetTimestampResponseNotImplemented

View Source
const GetTimestampResponseOKCode int = 200

GetTimestampResponseOKCode is the HTTP code returned for type GetTimestampResponseOK

View Source
const TimestampResponseBadRequestCode int = 400

TimestampResponseBadRequestCode is the HTTP code returned for type TimestampResponseBadRequest

View Source
const TimestampResponseOKCode int = 200

TimestampResponseOKCode is the HTTP code returned for type TimestampResponseOK

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

Returns a timestamp response generated by Rekor

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 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 GetTimestampResponseOK

type GetTimestampResponseOK struct {

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

GetTimestampResponseOK Returns a timestamp response

swagger:response getTimestampResponseOK

func NewGetTimestampResponseOK

func NewGetTimestampResponseOK() *GetTimestampResponseOK

NewGetTimestampResponseOK creates GetTimestampResponseOK with default headers values

func (*GetTimestampResponseOK) SetPayload

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

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

func (*GetTimestampResponseOK) WithPayload

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

func (*GetTimestampResponseOK) WriteResponse

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

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

type TimestampResponse

type TimestampResponse struct {
	Context *middleware.Context
	Handler TimestampResponseHandler
}
TimestampResponse swagger:route POST /api/v1/tsr timestamp timestampResponse

Generates a timestamp response

func NewTimestampResponse

func NewTimestampResponse(ctx *middleware.Context, handler TimestampResponseHandler) *TimestampResponse

NewTimestampResponse creates a new http.Handler for the timestamp response operation

func (*TimestampResponse) ServeHTTP

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

type TimestampResponseBadRequest

type TimestampResponseBadRequest struct {

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

TimestampResponseBadRequest The content supplied to the server was invalid

swagger:response timestampResponseBadRequest

func NewTimestampResponseBadRequest

func NewTimestampResponseBadRequest() *TimestampResponseBadRequest

NewTimestampResponseBadRequest creates TimestampResponseBadRequest with default headers values

func (*TimestampResponseBadRequest) SetPayload

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

SetPayload sets the payload to the timestamp response bad request response

func (*TimestampResponseBadRequest) WithPayload

WithPayload adds the payload to the timestamp response bad request response

func (*TimestampResponseBadRequest) WriteResponse

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

WriteResponse to the client

type TimestampResponseDefault

type TimestampResponseDefault struct {

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

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

swagger:response timestampResponseDefault

func NewTimestampResponseDefault

func NewTimestampResponseDefault(code int) *TimestampResponseDefault

NewTimestampResponseDefault creates TimestampResponseDefault with default headers values

func (*TimestampResponseDefault) SetPayload

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

SetPayload sets the payload to the timestamp response default response

func (*TimestampResponseDefault) SetStatusCode

func (o *TimestampResponseDefault) SetStatusCode(code int)

SetStatusCode sets the status to the timestamp response default response

func (*TimestampResponseDefault) WithPayload

WithPayload adds the payload to the timestamp response default response

func (*TimestampResponseDefault) WithStatusCode

func (o *TimestampResponseDefault) WithStatusCode(code int) *TimestampResponseDefault

WithStatusCode adds the status to the timestamp response default response

func (*TimestampResponseDefault) WriteResponse

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

WriteResponse to the client

type TimestampResponseHandler

type TimestampResponseHandler interface {
	Handle(TimestampResponseParams) middleware.Responder
}

TimestampResponseHandler interface for that can handle valid timestamp response params

type TimestampResponseHandlerFunc

type TimestampResponseHandlerFunc func(TimestampResponseParams) middleware.Responder

TimestampResponseHandlerFunc turns a function with the right signature into a timestamp response handler

func (TimestampResponseHandlerFunc) Handle

Handle executing the request and returning a response

type TimestampResponseOK

type TimestampResponseOK struct {

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

TimestampResponseOK Returns a timestamp response

swagger:response timestampResponseOK

func NewTimestampResponseOK

func NewTimestampResponseOK() *TimestampResponseOK

NewTimestampResponseOK creates TimestampResponseOK with default headers values

func (*TimestampResponseOK) SetPayload

func (o *TimestampResponseOK) SetPayload(payload *models.TimestampResponse)

SetPayload sets the payload to the timestamp response o k response

func (*TimestampResponseOK) WithPayload

WithPayload adds the payload to the timestamp response o k response

func (*TimestampResponseOK) WriteResponse

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

WriteResponse to the client

type TimestampResponseParams

type TimestampResponseParams struct {

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

	/*
	  Required: true
	  In: body
	*/
	Query *models.TimestampRequest
}

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

swagger:parameters timestampResponse

func NewTimestampResponseParams

func NewTimestampResponseParams() TimestampResponseParams

NewTimestampResponseParams creates a new TimestampResponseParams object

There are no default values defined in the spec.

func (*TimestampResponseParams) BindRequest

func (o *TimestampResponseParams) BindRequest(r *http.Request, route *middleware.MatchedRoute) error

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 NewTimestampResponseParams() beforehand.

type TimestampResponseURL

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

TimestampResponseURL generates an URL for the timestamp response operation

func (*TimestampResponseURL) Build

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

Build a url path and query string

func (*TimestampResponseURL) BuildFull

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

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

func (*TimestampResponseURL) Must

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

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

func (*TimestampResponseURL) SetBasePath

func (o *TimestampResponseURL) 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 (*TimestampResponseURL) String

func (o *TimestampResponseURL) String() string

String returns the string representation of the path with query string

func (*TimestampResponseURL) StringFull

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

StringFull returns the string representation of a complete url

func (*TimestampResponseURL) WithBasePath

func (o *TimestampResponseURL) WithBasePath(bp string) *TimestampResponseURL

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