index

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Mar 9, 2021 License: Apache-2.0 Imports: 10 Imported by: 26

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

func (*Client) SearchIndex

func (a *Client) SearchIndex(params *SearchIndexParams) (*SearchIndexOK, error)

SearchIndex searches index by entry metadata

func (*Client) SetTransport

func (a *Client) SetTransport(transport runtime.ClientTransport)

SetTransport changes the transport on the client

type ClientService

type ClientService interface {
	SearchIndex(params *SearchIndexParams) (*SearchIndexOK, 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 index API client.

type SearchIndexBadRequest

type SearchIndexBadRequest struct {
	Payload *models.Error
}

SearchIndexBadRequest handles this case with default header values.

The content supplied to the server was invalid

func NewSearchIndexBadRequest

func NewSearchIndexBadRequest() *SearchIndexBadRequest

NewSearchIndexBadRequest creates a SearchIndexBadRequest with default headers values

func (*SearchIndexBadRequest) Error

func (o *SearchIndexBadRequest) Error() string

func (*SearchIndexBadRequest) GetPayload

func (o *SearchIndexBadRequest) GetPayload() *models.Error

type SearchIndexDefault

type SearchIndexDefault struct {
	Payload *models.Error
	// contains filtered or unexported fields
}

SearchIndexDefault handles this case with default header values.

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

func NewSearchIndexDefault

func NewSearchIndexDefault(code int) *SearchIndexDefault

NewSearchIndexDefault creates a SearchIndexDefault with default headers values

func (*SearchIndexDefault) Code

func (o *SearchIndexDefault) Code() int

Code gets the status code for the search index default response

func (*SearchIndexDefault) Error

func (o *SearchIndexDefault) Error() string

func (*SearchIndexDefault) GetPayload

func (o *SearchIndexDefault) GetPayload() *models.Error

type SearchIndexOK

type SearchIndexOK struct {
	Payload []string
}

SearchIndexOK handles this case with default header values.

Returns zero or more entry UUIDs from the transparency log based on search query

func NewSearchIndexOK

func NewSearchIndexOK() *SearchIndexOK

NewSearchIndexOK creates a SearchIndexOK with default headers values

func (*SearchIndexOK) Error

func (o *SearchIndexOK) Error() string

func (*SearchIndexOK) GetPayload

func (o *SearchIndexOK) GetPayload() []string

type SearchIndexParams

type SearchIndexParams struct {

	/*Query*/
	Query *models.SearchIndex

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

SearchIndexParams contains all the parameters to send to the API endpoint for the search index operation typically these are written to a http.Request

func NewSearchIndexParams

func NewSearchIndexParams() *SearchIndexParams

NewSearchIndexParams creates a new SearchIndexParams object with the default values initialized.

func NewSearchIndexParamsWithContext

func NewSearchIndexParamsWithContext(ctx context.Context) *SearchIndexParams

NewSearchIndexParamsWithContext creates a new SearchIndexParams object with the default values initialized, and the ability to set a context for a request

func NewSearchIndexParamsWithHTTPClient

func NewSearchIndexParamsWithHTTPClient(client *http.Client) *SearchIndexParams

NewSearchIndexParamsWithHTTPClient creates a new SearchIndexParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewSearchIndexParamsWithTimeout

func NewSearchIndexParamsWithTimeout(timeout time.Duration) *SearchIndexParams

NewSearchIndexParamsWithTimeout creates a new SearchIndexParams object with the default values initialized, and the ability to set a timeout on a request

func (*SearchIndexParams) SetContext

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

SetContext adds the context to the search index params

func (*SearchIndexParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the search index params

func (*SearchIndexParams) SetQuery

func (o *SearchIndexParams) SetQuery(query *models.SearchIndex)

SetQuery adds the query to the search index params

func (*SearchIndexParams) SetTimeout

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

SetTimeout adds the timeout to the search index params

func (*SearchIndexParams) WithContext

func (o *SearchIndexParams) WithContext(ctx context.Context) *SearchIndexParams

WithContext adds the context to the search index params

func (*SearchIndexParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the search index params

func (*SearchIndexParams) WithQuery

func (o *SearchIndexParams) WithQuery(query *models.SearchIndex) *SearchIndexParams

WithQuery adds the query to the search index params

func (*SearchIndexParams) WithTimeout

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

WithTimeout adds the timeout to the search index params

func (*SearchIndexParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type SearchIndexReader

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

SearchIndexReader is a Reader for the SearchIndex structure.

func (*SearchIndexReader) ReadResponse

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