Documentation ¶
Index ¶
- type Client
- type ClientOption
- type ClientService
- type GetPublicKeyDefault
- type GetPublicKeyOK
- type GetPublicKeyParams
- func (o *GetPublicKeyParams) SetContext(ctx context.Context)
- func (o *GetPublicKeyParams) SetDefaults()
- func (o *GetPublicKeyParams) SetHTTPClient(client *http.Client)
- func (o *GetPublicKeyParams) SetTimeout(timeout time.Duration)
- func (o *GetPublicKeyParams) WithContext(ctx context.Context) *GetPublicKeyParams
- func (o *GetPublicKeyParams) WithDefaults() *GetPublicKeyParams
- func (o *GetPublicKeyParams) WithHTTPClient(client *http.Client) *GetPublicKeyParams
- func (o *GetPublicKeyParams) WithTimeout(timeout time.Duration) *GetPublicKeyParams
- func (o *GetPublicKeyParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetPublicKeyReader
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 pubkey API
func (*Client) GetPublicKey ¶
func (a *Client) GetPublicKey(params *GetPublicKeyParams, opts ...ClientOption) (*GetPublicKeyOK, error)
GetPublicKey retrieves the public key that can be used to validate the signed tree head
Returns the public key that can be used to validate the signed tree head
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 { GetPublicKey(params *GetPublicKeyParams, opts ...ClientOption) (*GetPublicKeyOK, 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 pubkey API client.
type GetPublicKeyDefault ¶
GetPublicKeyDefault describes a response with status code -1, with default header values.
There was an internal error in the server while processing the request
func NewGetPublicKeyDefault ¶
func NewGetPublicKeyDefault(code int) *GetPublicKeyDefault
NewGetPublicKeyDefault creates a GetPublicKeyDefault with default headers values
func (*GetPublicKeyDefault) Code ¶
func (o *GetPublicKeyDefault) Code() int
Code gets the status code for the get public key default response
func (*GetPublicKeyDefault) Error ¶
func (o *GetPublicKeyDefault) Error() string
func (*GetPublicKeyDefault) GetPayload ¶
func (o *GetPublicKeyDefault) GetPayload() *models.Error
type GetPublicKeyOK ¶
type GetPublicKeyOK struct {
Payload string
}
GetPublicKeyOK describes a response with status code 200, with default header values.
The public key
func NewGetPublicKeyOK ¶
func NewGetPublicKeyOK() *GetPublicKeyOK
NewGetPublicKeyOK creates a GetPublicKeyOK with default headers values
func (*GetPublicKeyOK) Error ¶
func (o *GetPublicKeyOK) Error() string
func (*GetPublicKeyOK) GetPayload ¶
func (o *GetPublicKeyOK) GetPayload() string
type GetPublicKeyParams ¶
type GetPublicKeyParams struct { Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
GetPublicKeyParams contains all the parameters to send to the API endpoint
for the get public key operation. Typically these are written to a http.Request.
func NewGetPublicKeyParams ¶
func NewGetPublicKeyParams() *GetPublicKeyParams
NewGetPublicKeyParams creates a new GetPublicKeyParams 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 NewGetPublicKeyParamsWithContext ¶
func NewGetPublicKeyParamsWithContext(ctx context.Context) *GetPublicKeyParams
NewGetPublicKeyParamsWithContext creates a new GetPublicKeyParams object with the ability to set a context for a request.
func NewGetPublicKeyParamsWithHTTPClient ¶
func NewGetPublicKeyParamsWithHTTPClient(client *http.Client) *GetPublicKeyParams
NewGetPublicKeyParamsWithHTTPClient creates a new GetPublicKeyParams object with the ability to set a custom HTTPClient for a request.
func NewGetPublicKeyParamsWithTimeout ¶
func NewGetPublicKeyParamsWithTimeout(timeout time.Duration) *GetPublicKeyParams
NewGetPublicKeyParamsWithTimeout creates a new GetPublicKeyParams object with the ability to set a timeout on a request.
func (*GetPublicKeyParams) SetContext ¶
func (o *GetPublicKeyParams) SetContext(ctx context.Context)
SetContext adds the context to the get public key params
func (*GetPublicKeyParams) SetDefaults ¶
func (o *GetPublicKeyParams) SetDefaults()
SetDefaults hydrates default values in the get public key params (not the query body).
All values with no default are reset to their zero value.
func (*GetPublicKeyParams) SetHTTPClient ¶
func (o *GetPublicKeyParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the get public key params
func (*GetPublicKeyParams) SetTimeout ¶
func (o *GetPublicKeyParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the get public key params
func (*GetPublicKeyParams) WithContext ¶
func (o *GetPublicKeyParams) WithContext(ctx context.Context) *GetPublicKeyParams
WithContext adds the context to the get public key params
func (*GetPublicKeyParams) WithDefaults ¶
func (o *GetPublicKeyParams) WithDefaults() *GetPublicKeyParams
WithDefaults hydrates default values in the get public key params (not the query body).
All values with no default are reset to their zero value.
func (*GetPublicKeyParams) WithHTTPClient ¶
func (o *GetPublicKeyParams) WithHTTPClient(client *http.Client) *GetPublicKeyParams
WithHTTPClient adds the HTTPClient to the get public key params
func (*GetPublicKeyParams) WithTimeout ¶
func (o *GetPublicKeyParams) WithTimeout(timeout time.Duration) *GetPublicKeyParams
WithTimeout adds the timeout to the get public key params
func (*GetPublicKeyParams) WriteToRequest ¶
func (o *GetPublicKeyParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type GetPublicKeyReader ¶
type GetPublicKeyReader struct {
// contains filtered or unexported fields
}
GetPublicKeyReader is a Reader for the GetPublicKey structure.
func (*GetPublicKeyReader) ReadResponse ¶
func (o *GetPublicKeyReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.