boot_proof

package
v0.10.0 Latest Latest
Warning

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

Go to latest
Published: Oct 23, 2025 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

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 boot proof API

func (*Client) GetBootProof

func (a *Client) GetBootProof(params *GetBootProofParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetBootProofOK, error)

GetBootProof gets a specific boot proof

Get the boot proof for a given ephemeral key.

func (*Client) GetLatestBootProof

func (a *Client) GetLatestBootProof(params *GetLatestBootProofParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetLatestBootProofOK, error)

GetLatestBootProof gets the latest boot proof for an app

Get the latest boot proof for a given enclave app name.

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 {
	GetBootProof(params *GetBootProofParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetBootProofOK, error)

	GetLatestBootProof(params *GetLatestBootProofParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetLatestBootProofOK, 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 boot proof API client.

type GetBootProofOK

type GetBootProofOK struct {
	Payload *models.BootProofResponse
}

GetBootProofOK describes a response with status code 200, with default header values.

A successful response.

func NewGetBootProofOK

func NewGetBootProofOK() *GetBootProofOK

NewGetBootProofOK creates a GetBootProofOK with default headers values

func (*GetBootProofOK) Code

func (o *GetBootProofOK) Code() int

Code gets the status code for the get boot proof o k response

func (*GetBootProofOK) Error

func (o *GetBootProofOK) Error() string

func (*GetBootProofOK) GetPayload

func (o *GetBootProofOK) GetPayload() *models.BootProofResponse

func (*GetBootProofOK) IsClientError

func (o *GetBootProofOK) IsClientError() bool

IsClientError returns true when this get boot proof o k response has a 4xx status code

func (*GetBootProofOK) IsCode

func (o *GetBootProofOK) IsCode(code int) bool

IsCode returns true when this get boot proof o k response a status code equal to that given

func (*GetBootProofOK) IsRedirect

func (o *GetBootProofOK) IsRedirect() bool

IsRedirect returns true when this get boot proof o k response has a 3xx status code

func (*GetBootProofOK) IsServerError

func (o *GetBootProofOK) IsServerError() bool

IsServerError returns true when this get boot proof o k response has a 5xx status code

func (*GetBootProofOK) IsSuccess

func (o *GetBootProofOK) IsSuccess() bool

IsSuccess returns true when this get boot proof o k response has a 2xx status code

func (*GetBootProofOK) String

func (o *GetBootProofOK) String() string

type GetBootProofParams

type GetBootProofParams struct {

	// Body.
	Body *models.GetBootProofRequest

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

GetBootProofParams contains all the parameters to send to the API endpoint

for the get boot proof operation.

Typically these are written to a http.Request.

func NewGetBootProofParams

func NewGetBootProofParams() *GetBootProofParams

NewGetBootProofParams creates a new GetBootProofParams 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 NewGetBootProofParamsWithContext

func NewGetBootProofParamsWithContext(ctx context.Context) *GetBootProofParams

NewGetBootProofParamsWithContext creates a new GetBootProofParams object with the ability to set a context for a request.

func NewGetBootProofParamsWithHTTPClient

func NewGetBootProofParamsWithHTTPClient(client *http.Client) *GetBootProofParams

NewGetBootProofParamsWithHTTPClient creates a new GetBootProofParams object with the ability to set a custom HTTPClient for a request.

func NewGetBootProofParamsWithTimeout

func NewGetBootProofParamsWithTimeout(timeout time.Duration) *GetBootProofParams

NewGetBootProofParamsWithTimeout creates a new GetBootProofParams object with the ability to set a timeout on a request.

func (*GetBootProofParams) SetBody

func (o *GetBootProofParams) SetBody(body *models.GetBootProofRequest)

SetBody adds the body to the get boot proof params

func (*GetBootProofParams) SetContext

func (o *GetBootProofParams) SetContext(ctx context.Context)

SetContext adds the context to the get boot proof params

func (*GetBootProofParams) SetDefaults

func (o *GetBootProofParams) SetDefaults()

SetDefaults hydrates default values in the get boot proof params (not the query body).

All values with no default are reset to their zero value.

func (*GetBootProofParams) SetHTTPClient

func (o *GetBootProofParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the get boot proof params

func (*GetBootProofParams) SetTimeout

func (o *GetBootProofParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the get boot proof params

func (*GetBootProofParams) WithBody

WithBody adds the body to the get boot proof params

func (*GetBootProofParams) WithContext

WithContext adds the context to the get boot proof params

func (*GetBootProofParams) WithDefaults

func (o *GetBootProofParams) WithDefaults() *GetBootProofParams

WithDefaults hydrates default values in the get boot proof params (not the query body).

All values with no default are reset to their zero value.

func (*GetBootProofParams) WithHTTPClient

func (o *GetBootProofParams) WithHTTPClient(client *http.Client) *GetBootProofParams

WithHTTPClient adds the HTTPClient to the get boot proof params

func (*GetBootProofParams) WithTimeout

func (o *GetBootProofParams) WithTimeout(timeout time.Duration) *GetBootProofParams

WithTimeout adds the timeout to the get boot proof params

func (*GetBootProofParams) WriteToRequest

func (o *GetBootProofParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type GetBootProofReader

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

GetBootProofReader is a Reader for the GetBootProof structure.

func (*GetBootProofReader) ReadResponse

func (o *GetBootProofReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type GetLatestBootProofOK

type GetLatestBootProofOK struct {
	Payload *models.BootProofResponse
}

GetLatestBootProofOK describes a response with status code 200, with default header values.

A successful response.

func NewGetLatestBootProofOK

func NewGetLatestBootProofOK() *GetLatestBootProofOK

NewGetLatestBootProofOK creates a GetLatestBootProofOK with default headers values

func (*GetLatestBootProofOK) Code

func (o *GetLatestBootProofOK) Code() int

Code gets the status code for the get latest boot proof o k response

func (*GetLatestBootProofOK) Error

func (o *GetLatestBootProofOK) Error() string

func (*GetLatestBootProofOK) GetPayload

func (*GetLatestBootProofOK) IsClientError

func (o *GetLatestBootProofOK) IsClientError() bool

IsClientError returns true when this get latest boot proof o k response has a 4xx status code

func (*GetLatestBootProofOK) IsCode

func (o *GetLatestBootProofOK) IsCode(code int) bool

IsCode returns true when this get latest boot proof o k response a status code equal to that given

func (*GetLatestBootProofOK) IsRedirect

func (o *GetLatestBootProofOK) IsRedirect() bool

IsRedirect returns true when this get latest boot proof o k response has a 3xx status code

func (*GetLatestBootProofOK) IsServerError

func (o *GetLatestBootProofOK) IsServerError() bool

IsServerError returns true when this get latest boot proof o k response has a 5xx status code

func (*GetLatestBootProofOK) IsSuccess

func (o *GetLatestBootProofOK) IsSuccess() bool

IsSuccess returns true when this get latest boot proof o k response has a 2xx status code

func (*GetLatestBootProofOK) String

func (o *GetLatestBootProofOK) String() string

type GetLatestBootProofParams

type GetLatestBootProofParams struct {

	// Body.
	Body *models.GetLatestBootProofRequest

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

GetLatestBootProofParams contains all the parameters to send to the API endpoint

for the get latest boot proof operation.

Typically these are written to a http.Request.

func NewGetLatestBootProofParams

func NewGetLatestBootProofParams() *GetLatestBootProofParams

NewGetLatestBootProofParams creates a new GetLatestBootProofParams 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 NewGetLatestBootProofParamsWithContext

func NewGetLatestBootProofParamsWithContext(ctx context.Context) *GetLatestBootProofParams

NewGetLatestBootProofParamsWithContext creates a new GetLatestBootProofParams object with the ability to set a context for a request.

func NewGetLatestBootProofParamsWithHTTPClient

func NewGetLatestBootProofParamsWithHTTPClient(client *http.Client) *GetLatestBootProofParams

NewGetLatestBootProofParamsWithHTTPClient creates a new GetLatestBootProofParams object with the ability to set a custom HTTPClient for a request.

func NewGetLatestBootProofParamsWithTimeout

func NewGetLatestBootProofParamsWithTimeout(timeout time.Duration) *GetLatestBootProofParams

NewGetLatestBootProofParamsWithTimeout creates a new GetLatestBootProofParams object with the ability to set a timeout on a request.

func (*GetLatestBootProofParams) SetBody

SetBody adds the body to the get latest boot proof params

func (*GetLatestBootProofParams) SetContext

func (o *GetLatestBootProofParams) SetContext(ctx context.Context)

SetContext adds the context to the get latest boot proof params

func (*GetLatestBootProofParams) SetDefaults

func (o *GetLatestBootProofParams) SetDefaults()

SetDefaults hydrates default values in the get latest boot proof params (not the query body).

All values with no default are reset to their zero value.

func (*GetLatestBootProofParams) SetHTTPClient

func (o *GetLatestBootProofParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the get latest boot proof params

func (*GetLatestBootProofParams) SetTimeout

func (o *GetLatestBootProofParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the get latest boot proof params

func (*GetLatestBootProofParams) WithBody

WithBody adds the body to the get latest boot proof params

func (*GetLatestBootProofParams) WithContext

WithContext adds the context to the get latest boot proof params

func (*GetLatestBootProofParams) WithDefaults

WithDefaults hydrates default values in the get latest boot proof params (not the query body).

All values with no default are reset to their zero value.

func (*GetLatestBootProofParams) WithHTTPClient

func (o *GetLatestBootProofParams) WithHTTPClient(client *http.Client) *GetLatestBootProofParams

WithHTTPClient adds the HTTPClient to the get latest boot proof params

func (*GetLatestBootProofParams) WithTimeout

WithTimeout adds the timeout to the get latest boot proof params

func (*GetLatestBootProofParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type GetLatestBootProofReader

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

GetLatestBootProofReader is a Reader for the GetLatestBootProof structure.

func (*GetLatestBootProofReader) ReadResponse

func (o *GetLatestBootProofReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

Jump to

Keyboard shortcuts

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