Documentation
¶
Index ¶
- type Client
- func (a *Client) GetLogInfo(params *GetLogInfoParams, opts ...ClientOption) (*GetLogInfoOK, error)
- func (a *Client) GetLogInfoContext(ctx context.Context, params *GetLogInfoParams, opts ...ClientOption) (*GetLogInfoOK, error)
- func (a *Client) GetLogProof(params *GetLogProofParams, opts ...ClientOption) (*GetLogProofOK, error)
- func (a *Client) GetLogProofContext(ctx context.Context, params *GetLogProofParams, opts ...ClientOption) (*GetLogProofOK, error)
- func (a *Client) SetTransport(transport runtime.ContextualTransport)
- type ClientOption
- type ClientService
- type GetLogInfoDefault
- func (o *GetLogInfoDefault) Code() int
- func (o *GetLogInfoDefault) Error() string
- func (o *GetLogInfoDefault) GetPayload() *models.Error
- func (o *GetLogInfoDefault) IsClientError() bool
- func (o *GetLogInfoDefault) IsCode(code int) bool
- func (o *GetLogInfoDefault) IsRedirect() bool
- func (o *GetLogInfoDefault) IsServerError() bool
- func (o *GetLogInfoDefault) IsSuccess() bool
- func (o *GetLogInfoDefault) String() string
- type GetLogInfoOK
- func (o *GetLogInfoOK) Code() int
- func (o *GetLogInfoOK) Error() string
- func (o *GetLogInfoOK) GetPayload() *models.LogInfo
- func (o *GetLogInfoOK) IsClientError() bool
- func (o *GetLogInfoOK) IsCode(code int) bool
- func (o *GetLogInfoOK) IsRedirect() bool
- func (o *GetLogInfoOK) IsServerError() bool
- func (o *GetLogInfoOK) IsSuccess() bool
- func (o *GetLogInfoOK) String() string
- type GetLogInfoParams
- func (o *GetLogInfoParams) SetContext(ctx context.Context)deprecated
- func (o *GetLogInfoParams) SetDefaults()
- func (o *GetLogInfoParams) SetHTTPClient(client *http.Client)
- func (o *GetLogInfoParams) SetTimeout(timeout time.Duration)
- func (o *GetLogInfoParams) WithContext(ctx context.Context) *GetLogInfoParamsdeprecated
- func (o *GetLogInfoParams) WithDefaults() *GetLogInfoParams
- func (o *GetLogInfoParams) WithHTTPClient(client *http.Client) *GetLogInfoParams
- func (o *GetLogInfoParams) WithTimeout(timeout time.Duration) *GetLogInfoParams
- func (o *GetLogInfoParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetLogInfoReader
- type GetLogProofBadRequest
- func (o *GetLogProofBadRequest) Code() int
- func (o *GetLogProofBadRequest) Error() string
- func (o *GetLogProofBadRequest) GetPayload() *models.Error
- func (o *GetLogProofBadRequest) IsClientError() bool
- func (o *GetLogProofBadRequest) IsCode(code int) bool
- func (o *GetLogProofBadRequest) IsRedirect() bool
- func (o *GetLogProofBadRequest) IsServerError() bool
- func (o *GetLogProofBadRequest) IsSuccess() bool
- func (o *GetLogProofBadRequest) String() string
- type GetLogProofDefault
- func (o *GetLogProofDefault) Code() int
- func (o *GetLogProofDefault) Error() string
- func (o *GetLogProofDefault) GetPayload() *models.Error
- func (o *GetLogProofDefault) IsClientError() bool
- func (o *GetLogProofDefault) IsCode(code int) bool
- func (o *GetLogProofDefault) IsRedirect() bool
- func (o *GetLogProofDefault) IsServerError() bool
- func (o *GetLogProofDefault) IsSuccess() bool
- func (o *GetLogProofDefault) String() string
- type GetLogProofOK
- func (o *GetLogProofOK) Code() int
- func (o *GetLogProofOK) Error() string
- func (o *GetLogProofOK) GetPayload() *models.ConsistencyProof
- func (o *GetLogProofOK) IsClientError() bool
- func (o *GetLogProofOK) IsCode(code int) bool
- func (o *GetLogProofOK) IsRedirect() bool
- func (o *GetLogProofOK) IsServerError() bool
- func (o *GetLogProofOK) IsSuccess() bool
- func (o *GetLogProofOK) String() string
- type GetLogProofParams
- func (o *GetLogProofParams) SetContext(ctx context.Context)deprecated
- func (o *GetLogProofParams) SetDefaults()
- func (o *GetLogProofParams) SetFirstSize(firstSize *int64)
- func (o *GetLogProofParams) SetHTTPClient(client *http.Client)
- func (o *GetLogProofParams) SetLastSize(lastSize int64)
- func (o *GetLogProofParams) SetTimeout(timeout time.Duration)
- func (o *GetLogProofParams) SetTreeID(treeID *string)
- func (o *GetLogProofParams) WithContext(ctx context.Context) *GetLogProofParamsdeprecated
- func (o *GetLogProofParams) WithDefaults() *GetLogProofParams
- func (o *GetLogProofParams) WithFirstSize(firstSize *int64) *GetLogProofParams
- func (o *GetLogProofParams) WithHTTPClient(client *http.Client) *GetLogProofParams
- func (o *GetLogProofParams) WithLastSize(lastSize int64) *GetLogProofParams
- func (o *GetLogProofParams) WithTimeout(timeout time.Duration) *GetLogProofParams
- func (o *GetLogProofParams) WithTreeID(treeID *string) *GetLogProofParams
- func (o *GetLogProofParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetLogProofReader
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 tlog API.
func (*Client) GetLogInfo ¶
func (a *Client) GetLogInfo(params *GetLogInfoParams, opts ...ClientOption) (*GetLogInfoOK, error)
GetLogInfo gets information about the current state of the transparency log.
Returns the current root hash and size of the merkle tree used to store the log entries..
This method does not support injected context. However, timeout and opentracing contexts are honored whenever enabled.
If you need to pass a specific context, use Client.GetLogInfoContext instead.
func (*Client) GetLogInfoContext ¶ added in v1.5.4
func (a *Client) GetLogInfoContext(ctx context.Context, params *GetLogInfoParams, opts ...ClientOption) (*GetLogInfoOK, error)
GetLogInfoContext gets information about the current state of the transparency log.
Returns the current root hash and size of the merkle tree used to store the log entries..
Do not use the deprecated [GetLogInfoParams.Context] with this method: it would be ignored.
func (*Client) GetLogProof ¶
func (a *Client) GetLogProof(params *GetLogProofParams, opts ...ClientOption) (*GetLogProofOK, error)
GetLogProof gets information required to generate a consistency proof for the transparency log.
Returns a list of hashes for specified tree sizes that can be used to confirm the consistency of the transparency log.
This method does not support injected context. However, timeout and opentracing contexts are honored whenever enabled.
If you need to pass a specific context, use Client.GetLogProofContext instead.
func (*Client) GetLogProofContext ¶ added in v1.5.4
func (a *Client) GetLogProofContext(ctx context.Context, params *GetLogProofParams, opts ...ClientOption) (*GetLogProofOK, error)
GetLogProofContext gets information required to generate a consistency proof for the transparency log.
Returns a list of hashes for specified tree sizes that can be used to confirm the consistency of the transparency log.
Do not use the deprecated [GetLogProofParams.Context] with this method: it would be ignored.
func (*Client) SetTransport ¶
func (a *Client) SetTransport(transport runtime.ContextualTransport)
SetTransport changes the transport on the client
type ClientOption ¶ added in v0.2.0
type ClientOption func(*runtime.ClientOperation)
ClientOption may be used to customize the behavior of Client methods.
type ClientService ¶
type ClientService interface {
// GetLogInfo get information about the current state of the transparency log.
GetLogInfo(params *GetLogInfoParams, opts ...ClientOption) (*GetLogInfoOK, error)
// GetLogInfoContext get information about the current state of the transparency log.
GetLogInfoContext(ctx context.Context, params *GetLogInfoParams, opts ...ClientOption) (*GetLogInfoOK, error)
// GetLogProof get information required to generate a consistency proof for the transparency log.
GetLogProof(params *GetLogProofParams, opts ...ClientOption) (*GetLogProofOK, error)
// GetLogProofContext get information required to generate a consistency proof for the transparency log.
GetLogProofContext(ctx context.Context, params *GetLogProofParams, opts ...ClientOption) (*GetLogProofOK, error)
SetTransport(transport runtime.ContextualTransport)
}
ClientService is the interface for Client methods.
func New ¶
func New(transport runtime.ContextualTransport, formats strfmt.Registry) ClientService
New creates a new tlog API client.
func NewClientWithBasicAuth ¶ added in v1.3.7
func NewClientWithBasicAuth(host, basePath, scheme, user, password string) ClientService
New creates a new tlog API client with basic auth credentials.
It takes the following parameters: - host: http host (github.com). - basePath: any base path for the API client ("/v1", "/v3"). - scheme: http scheme ("http", "https"). - user: user for basic authentication header. - password: password for basic authentication header.
func NewClientWithBearerToken ¶ added in v1.3.7
func NewClientWithBearerToken(host, basePath, scheme, bearerToken string) ClientService
New creates a new tlog API client with a bearer token for authentication.
It takes the following parameters: - host: http host (github.com). - basePath: any base path for the API client ("/v1", "/v3"). - scheme: http scheme ("http", "https"). - bearerToken: bearer token for Bearer authentication header.
type GetLogInfoDefault ¶
GetLogInfoDefault describes a response with status code -1, with default header values.
There was an internal error in the server while processing the request
func NewGetLogInfoDefault ¶
func NewGetLogInfoDefault(code int) *GetLogInfoDefault
NewGetLogInfoDefault creates a GetLogInfoDefault with default headers values
func (*GetLogInfoDefault) Code ¶
func (o *GetLogInfoDefault) Code() int
Code gets the status code for the get log info default response
func (*GetLogInfoDefault) Error ¶
func (o *GetLogInfoDefault) Error() string
func (*GetLogInfoDefault) GetPayload ¶
func (o *GetLogInfoDefault) GetPayload() *models.Error
func (*GetLogInfoDefault) IsClientError ¶ added in v0.12.1
func (o *GetLogInfoDefault) IsClientError() bool
IsClientError returns true when this get log info default response has a 4xx status code
func (*GetLogInfoDefault) IsCode ¶ added in v0.12.1
func (o *GetLogInfoDefault) IsCode(code int) bool
IsCode returns true when this get log info default response a status code equal to that given
func (*GetLogInfoDefault) IsRedirect ¶ added in v0.12.1
func (o *GetLogInfoDefault) IsRedirect() bool
IsRedirect returns true when this get log info default response has a 3xx status code
func (*GetLogInfoDefault) IsServerError ¶ added in v0.12.1
func (o *GetLogInfoDefault) IsServerError() bool
IsServerError returns true when this get log info default response has a 5xx status code
func (*GetLogInfoDefault) IsSuccess ¶ added in v0.12.1
func (o *GetLogInfoDefault) IsSuccess() bool
IsSuccess returns true when this get log info default response has a 2xx status code
func (*GetLogInfoDefault) String ¶ added in v0.12.1
func (o *GetLogInfoDefault) String() string
type GetLogInfoOK ¶
GetLogInfoOK describes a response with status code 200, with default header values.
A JSON object with the root hash and tree size as properties
func NewGetLogInfoOK ¶
func NewGetLogInfoOK() *GetLogInfoOK
NewGetLogInfoOK creates a GetLogInfoOK with default headers values
func (*GetLogInfoOK) Code ¶ added in v1.1.0
func (o *GetLogInfoOK) Code() int
Code gets the status code for the get log info o k response
func (*GetLogInfoOK) Error ¶
func (o *GetLogInfoOK) Error() string
func (*GetLogInfoOK) GetPayload ¶
func (o *GetLogInfoOK) GetPayload() *models.LogInfo
func (*GetLogInfoOK) IsClientError ¶ added in v0.12.1
func (o *GetLogInfoOK) IsClientError() bool
IsClientError returns true when this get log info o k response has a 4xx status code
func (*GetLogInfoOK) IsCode ¶ added in v0.12.1
func (o *GetLogInfoOK) IsCode(code int) bool
IsCode returns true when this get log info o k response a status code equal to that given
func (*GetLogInfoOK) IsRedirect ¶ added in v0.12.1
func (o *GetLogInfoOK) IsRedirect() bool
IsRedirect returns true when this get log info o k response has a 3xx status code
func (*GetLogInfoOK) IsServerError ¶ added in v0.12.1
func (o *GetLogInfoOK) IsServerError() bool
IsServerError returns true when this get log info o k response has a 5xx status code
func (*GetLogInfoOK) IsSuccess ¶ added in v0.12.1
func (o *GetLogInfoOK) IsSuccess() bool
IsSuccess returns true when this get log info o k response has a 2xx status code
func (*GetLogInfoOK) String ¶ added in v0.12.1
func (o *GetLogInfoOK) String() string
type GetLogInfoParams ¶
GetLogInfoParams contains all the parameters to send to the API endpoint
for the get log info operation. Typically these are written to a http.Request.
func NewGetLogInfoParams ¶
func NewGetLogInfoParams() *GetLogInfoParams
NewGetLogInfoParams creates a new GetLogInfoParams 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 NewGetLogInfoParamsWithContext
deprecated
func NewGetLogInfoParamsWithContext(ctx context.Context) *GetLogInfoParams
NewGetLogInfoParamsWithContext creates a new GetLogInfoParams object with the ability to set a context for a request.
Deprecated: use the operation call with context to pass the context instead of GetLogInfoParams.
func NewGetLogInfoParamsWithHTTPClient ¶
func NewGetLogInfoParamsWithHTTPClient(client *http.Client) *GetLogInfoParams
NewGetLogInfoParamsWithHTTPClient creates a new GetLogInfoParams object with the ability to set a custom HTTPClient for a request.
func NewGetLogInfoParamsWithTimeout ¶
func NewGetLogInfoParamsWithTimeout(timeout time.Duration) *GetLogInfoParams
NewGetLogInfoParamsWithTimeout creates a new GetLogInfoParams object with the ability to set a timeout on a request.
func (*GetLogInfoParams) SetContext
deprecated
func (o *GetLogInfoParams) SetContext(ctx context.Context)
SetContext adds the context to the get log info params.
Deprecated: use the operation call with context to pass the context instead of GetLogInfoParams.
func (*GetLogInfoParams) SetDefaults ¶ added in v0.2.0
func (o *GetLogInfoParams) SetDefaults()
SetDefaults hydrates default values in the get log info params (not the query body).
All values with no default are reset to their zero value.
func (*GetLogInfoParams) SetHTTPClient ¶
func (o *GetLogInfoParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the get log info params.
func (*GetLogInfoParams) SetTimeout ¶
func (o *GetLogInfoParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the get log info params.
func (*GetLogInfoParams) WithContext
deprecated
func (o *GetLogInfoParams) WithContext(ctx context.Context) *GetLogInfoParams
WithContext adds the context to the get log info params.
Deprecated: use the operation call with context to pass the context instead of GetLogInfoParams.
func (*GetLogInfoParams) WithDefaults ¶ added in v0.2.0
func (o *GetLogInfoParams) WithDefaults() *GetLogInfoParams
WithDefaults hydrates default values in the get log info params (not the query body).
All values with no default are reset to their zero value.
func (*GetLogInfoParams) WithHTTPClient ¶
func (o *GetLogInfoParams) WithHTTPClient(client *http.Client) *GetLogInfoParams
WithHTTPClient adds the HTTPClient to the get log info params.
func (*GetLogInfoParams) WithTimeout ¶
func (o *GetLogInfoParams) WithTimeout(timeout time.Duration) *GetLogInfoParams
WithTimeout adds the timeout to the get log info params.
func (*GetLogInfoParams) WriteToRequest ¶
func (o *GetLogInfoParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a runtime.ClientRequest.
type GetLogInfoReader ¶
type GetLogInfoReader struct {
// contains filtered or unexported fields
}
GetLogInfoReader is a Reader for the GetLogInfo structure.
func (*GetLogInfoReader) ReadResponse ¶
func (o *GetLogInfoReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (any, error)
ReadResponse reads a server response into the received o.
type GetLogProofBadRequest ¶
GetLogProofBadRequest describes a response with status code 400, with default header values.
The content supplied to the server was invalid
func NewGetLogProofBadRequest ¶
func NewGetLogProofBadRequest() *GetLogProofBadRequest
NewGetLogProofBadRequest creates a GetLogProofBadRequest with default headers values
func (*GetLogProofBadRequest) Code ¶ added in v1.1.0
func (o *GetLogProofBadRequest) Code() int
Code gets the status code for the get log proof bad request response
func (*GetLogProofBadRequest) Error ¶
func (o *GetLogProofBadRequest) Error() string
func (*GetLogProofBadRequest) GetPayload ¶
func (o *GetLogProofBadRequest) GetPayload() *models.Error
func (*GetLogProofBadRequest) IsClientError ¶ added in v0.12.1
func (o *GetLogProofBadRequest) IsClientError() bool
IsClientError returns true when this get log proof bad request response has a 4xx status code
func (*GetLogProofBadRequest) IsCode ¶ added in v0.12.1
func (o *GetLogProofBadRequest) IsCode(code int) bool
IsCode returns true when this get log proof bad request response a status code equal to that given
func (*GetLogProofBadRequest) IsRedirect ¶ added in v0.12.1
func (o *GetLogProofBadRequest) IsRedirect() bool
IsRedirect returns true when this get log proof bad request response has a 3xx status code
func (*GetLogProofBadRequest) IsServerError ¶ added in v0.12.1
func (o *GetLogProofBadRequest) IsServerError() bool
IsServerError returns true when this get log proof bad request response has a 5xx status code
func (*GetLogProofBadRequest) IsSuccess ¶ added in v0.12.1
func (o *GetLogProofBadRequest) IsSuccess() bool
IsSuccess returns true when this get log proof bad request response has a 2xx status code
func (*GetLogProofBadRequest) String ¶ added in v0.12.1
func (o *GetLogProofBadRequest) String() string
type GetLogProofDefault ¶
GetLogProofDefault describes a response with status code -1, with default header values.
There was an internal error in the server while processing the request
func NewGetLogProofDefault ¶
func NewGetLogProofDefault(code int) *GetLogProofDefault
NewGetLogProofDefault creates a GetLogProofDefault with default headers values
func (*GetLogProofDefault) Code ¶
func (o *GetLogProofDefault) Code() int
Code gets the status code for the get log proof default response
func (*GetLogProofDefault) Error ¶
func (o *GetLogProofDefault) Error() string
func (*GetLogProofDefault) GetPayload ¶
func (o *GetLogProofDefault) GetPayload() *models.Error
func (*GetLogProofDefault) IsClientError ¶ added in v0.12.1
func (o *GetLogProofDefault) IsClientError() bool
IsClientError returns true when this get log proof default response has a 4xx status code
func (*GetLogProofDefault) IsCode ¶ added in v0.12.1
func (o *GetLogProofDefault) IsCode(code int) bool
IsCode returns true when this get log proof default response a status code equal to that given
func (*GetLogProofDefault) IsRedirect ¶ added in v0.12.1
func (o *GetLogProofDefault) IsRedirect() bool
IsRedirect returns true when this get log proof default response has a 3xx status code
func (*GetLogProofDefault) IsServerError ¶ added in v0.12.1
func (o *GetLogProofDefault) IsServerError() bool
IsServerError returns true when this get log proof default response has a 5xx status code
func (*GetLogProofDefault) IsSuccess ¶ added in v0.12.1
func (o *GetLogProofDefault) IsSuccess() bool
IsSuccess returns true when this get log proof default response has a 2xx status code
func (*GetLogProofDefault) String ¶ added in v0.12.1
func (o *GetLogProofDefault) String() string
type GetLogProofOK ¶
type GetLogProofOK struct {
Payload *models.ConsistencyProof
}
GetLogProofOK describes a response with status code 200, with default header values.
All hashes required to compute the consistency proof
func NewGetLogProofOK ¶
func NewGetLogProofOK() *GetLogProofOK
NewGetLogProofOK creates a GetLogProofOK with default headers values
func (*GetLogProofOK) Code ¶ added in v1.1.0
func (o *GetLogProofOK) Code() int
Code gets the status code for the get log proof o k response
func (*GetLogProofOK) Error ¶
func (o *GetLogProofOK) Error() string
func (*GetLogProofOK) GetPayload ¶
func (o *GetLogProofOK) GetPayload() *models.ConsistencyProof
func (*GetLogProofOK) IsClientError ¶ added in v0.12.1
func (o *GetLogProofOK) IsClientError() bool
IsClientError returns true when this get log proof o k response has a 4xx status code
func (*GetLogProofOK) IsCode ¶ added in v0.12.1
func (o *GetLogProofOK) IsCode(code int) bool
IsCode returns true when this get log proof o k response a status code equal to that given
func (*GetLogProofOK) IsRedirect ¶ added in v0.12.1
func (o *GetLogProofOK) IsRedirect() bool
IsRedirect returns true when this get log proof o k response has a 3xx status code
func (*GetLogProofOK) IsServerError ¶ added in v0.12.1
func (o *GetLogProofOK) IsServerError() bool
IsServerError returns true when this get log proof o k response has a 5xx status code
func (*GetLogProofOK) IsSuccess ¶ added in v0.12.1
func (o *GetLogProofOK) IsSuccess() bool
IsSuccess returns true when this get log proof o k response has a 2xx status code
func (*GetLogProofOK) String ¶ added in v0.12.1
func (o *GetLogProofOK) String() string
type GetLogProofParams ¶
type GetLogProofParams struct {
// FirstSize.
//
// The size of the tree that you wish to prove consistency from (1 means the beginning of the log) Defaults to 1 if not specified
//
//
// Default: 1
FirstSize *int64
// LastSize.
//
// The size of the tree that you wish to prove consistency to
LastSize int64
// TreeID.
//
// The tree ID of the tree that you wish to prove consistency for
TreeID *string
HTTPClient *http.Client
// contains filtered or unexported fields
}
GetLogProofParams contains all the parameters to send to the API endpoint
for the get log proof operation. Typically these are written to a http.Request.
func NewGetLogProofParams ¶
func NewGetLogProofParams() *GetLogProofParams
NewGetLogProofParams creates a new GetLogProofParams 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 NewGetLogProofParamsWithContext
deprecated
func NewGetLogProofParamsWithContext(ctx context.Context) *GetLogProofParams
NewGetLogProofParamsWithContext creates a new GetLogProofParams object with the ability to set a context for a request.
Deprecated: use the operation call with context to pass the context instead of GetLogProofParams.
func NewGetLogProofParamsWithHTTPClient ¶
func NewGetLogProofParamsWithHTTPClient(client *http.Client) *GetLogProofParams
NewGetLogProofParamsWithHTTPClient creates a new GetLogProofParams object with the ability to set a custom HTTPClient for a request.
func NewGetLogProofParamsWithTimeout ¶
func NewGetLogProofParamsWithTimeout(timeout time.Duration) *GetLogProofParams
NewGetLogProofParamsWithTimeout creates a new GetLogProofParams object with the ability to set a timeout on a request.
func (*GetLogProofParams) SetContext
deprecated
func (o *GetLogProofParams) SetContext(ctx context.Context)
SetContext adds the context to the get log proof params.
Deprecated: use the operation call with context to pass the context instead of GetLogProofParams.
func (*GetLogProofParams) SetDefaults ¶ added in v0.2.0
func (o *GetLogProofParams) SetDefaults()
SetDefaults hydrates default values in the get log proof params (not the query body).
All values with no default are reset to their zero value.
func (*GetLogProofParams) SetFirstSize ¶
func (o *GetLogProofParams) SetFirstSize(firstSize *int64)
SetFirstSize adds the firstSize to the get log proof params.
func (*GetLogProofParams) SetHTTPClient ¶
func (o *GetLogProofParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the get log proof params.
func (*GetLogProofParams) SetLastSize ¶
func (o *GetLogProofParams) SetLastSize(lastSize int64)
SetLastSize adds the lastSize to the get log proof params.
func (*GetLogProofParams) SetTimeout ¶
func (o *GetLogProofParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the get log proof params.
func (*GetLogProofParams) SetTreeID ¶ added in v0.6.0
func (o *GetLogProofParams) SetTreeID(treeID *string)
SetTreeID adds the treeId to the get log proof params.
func (*GetLogProofParams) WithContext
deprecated
func (o *GetLogProofParams) WithContext(ctx context.Context) *GetLogProofParams
WithContext adds the context to the get log proof params.
Deprecated: use the operation call with context to pass the context instead of GetLogProofParams.
func (*GetLogProofParams) WithDefaults ¶ added in v0.2.0
func (o *GetLogProofParams) WithDefaults() *GetLogProofParams
WithDefaults hydrates default values in the get log proof params (not the query body).
All values with no default are reset to their zero value.
func (*GetLogProofParams) WithFirstSize ¶
func (o *GetLogProofParams) WithFirstSize(firstSize *int64) *GetLogProofParams
WithFirstSize adds the firstSize to the get log proof params.
func (*GetLogProofParams) WithHTTPClient ¶
func (o *GetLogProofParams) WithHTTPClient(client *http.Client) *GetLogProofParams
WithHTTPClient adds the HTTPClient to the get log proof params.
func (*GetLogProofParams) WithLastSize ¶
func (o *GetLogProofParams) WithLastSize(lastSize int64) *GetLogProofParams
WithLastSize adds the lastSize to the get log proof params.
func (*GetLogProofParams) WithTimeout ¶
func (o *GetLogProofParams) WithTimeout(timeout time.Duration) *GetLogProofParams
WithTimeout adds the timeout to the get log proof params.
func (*GetLogProofParams) WithTreeID ¶ added in v0.6.0
func (o *GetLogProofParams) WithTreeID(treeID *string) *GetLogProofParams
WithTreeID adds the treeID to the get log proof params.
func (*GetLogProofParams) WriteToRequest ¶
func (o *GetLogProofParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a runtime.ClientRequest.
type GetLogProofReader ¶
type GetLogProofReader struct {
// contains filtered or unexported fields
}
GetLogProofReader is a Reader for the GetLogProof structure.
func (*GetLogProofReader) ReadResponse ¶
func (o *GetLogProofReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (any, error)
ReadResponse reads a server response into the received o.