GetPublicKeyOKCode is the HTTP code returned for type GetPublicKeyOK
const GetPublicKeyOKCode int = 200
GetPublicKey swagger:route GET /api/v1/log/publicKey pubkey getPublicKey
Returns the public key that can be used to validate the signed tree head
type GetPublicKey struct { Context *middleware.Context Handler GetPublicKeyHandler }
func NewGetPublicKey(ctx *middleware.Context, handler GetPublicKeyHandler) *GetPublicKey
NewGetPublicKey creates a new http.Handler for the get public key operation
func (o *GetPublicKey) ServeHTTP(rw http.ResponseWriter, r *http.Request)
GetPublicKeyDefault There was an internal error in the server while processing the request
swagger:response getPublicKeyDefault
type GetPublicKeyDefault struct { /* In: Body */ Payload *models.Error `json:"body,omitempty"` // contains filtered or unexported fields }
func NewGetPublicKeyDefault(code int) *GetPublicKeyDefault
NewGetPublicKeyDefault creates GetPublicKeyDefault with default headers values
func (o *GetPublicKeyDefault) SetPayload(payload *models.Error)
SetPayload sets the payload to the get public key default response
func (o *GetPublicKeyDefault) SetStatusCode(code int)
SetStatusCode sets the status to the get public key default response
func (o *GetPublicKeyDefault) WithPayload(payload *models.Error) *GetPublicKeyDefault
WithPayload adds the payload to the get public key default response
func (o *GetPublicKeyDefault) WithStatusCode(code int) *GetPublicKeyDefault
WithStatusCode adds the status to the get public key default response
func (o *GetPublicKeyDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
GetPublicKeyHandler interface for that can handle valid get public key params
type GetPublicKeyHandler interface { Handle(GetPublicKeyParams) middleware.Responder }
GetPublicKeyHandlerFunc turns a function with the right signature into a get public key handler
type GetPublicKeyHandlerFunc func(GetPublicKeyParams) middleware.Responder
func (fn GetPublicKeyHandlerFunc) Handle(params GetPublicKeyParams) middleware.Responder
Handle executing the request and returning a response
GetPublicKeyOK The public key
swagger:response getPublicKeyOK
type GetPublicKeyOK struct { /* In: Body */ Payload string `json:"body,omitempty"` }
func NewGetPublicKeyOK() *GetPublicKeyOK
NewGetPublicKeyOK creates GetPublicKeyOK with default headers values
func (o *GetPublicKeyOK) SetPayload(payload string)
SetPayload sets the payload to the get public key o k response
func (o *GetPublicKeyOK) WithPayload(payload string) *GetPublicKeyOK
WithPayload adds the payload to the get public key o k response
func (o *GetPublicKeyOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
GetPublicKeyParams contains all the bound params for the get public key operation typically these are obtained from a http.Request
swagger:parameters getPublicKey
type GetPublicKeyParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /*The tree ID of the tree you wish to get a public key for Pattern: ^[0-9]+$ In: query */ TreeID *string }
func NewGetPublicKeyParams() GetPublicKeyParams
NewGetPublicKeyParams creates a new GetPublicKeyParams object
There are no default values defined in the spec.
func (o *GetPublicKeyParams) 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 NewGetPublicKeyParams() beforehand.
GetPublicKeyURL generates an URL for the get public key operation
type GetPublicKeyURL struct { TreeID *string // contains filtered or unexported fields }
func (o *GetPublicKeyURL) Build() (*url.URL, error)
Build a url path and query string
func (o *GetPublicKeyURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (o *GetPublicKeyURL) Must(u *url.URL, err error) *url.URL
Must is a helper function to panic when the url builder returns an error
func (o *GetPublicKeyURL) 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 (o *GetPublicKeyURL) String() string
String returns the string representation of the path with query string
func (o *GetPublicKeyURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (o *GetPublicKeyURL) WithBasePath(bp string) *GetPublicKeyURL
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