search

package
v0.0.0-...-eff1da9 Latest Latest
Warning

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

Go to latest
Published: Nov 9, 2020 License: Apache-2.0 Imports: 11 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 search API

func (*Client) ConductRepoSearch

func (a *Client) ConductRepoSearch(params *ConductRepoSearchParams) (*ConductRepoSearchOK, error)

ConductRepoSearch Get a list of apps and repositories that match the specified query.

func (*Client) ConductSearch

func (a *Client) ConductSearch(params *ConductSearchParams, authInfo runtime.ClientAuthInfoWriter) (*ConductSearchOK, error)

ConductSearch Get a list of entities and resources that match the specified query.

func (*Client) GetMatchingEntities

func (a *Client) GetMatchingEntities(params *GetMatchingEntitiesParams) (*GetMatchingEntitiesOK, error)

GetMatchingEntities Get a list of entities that match the specified prefix.

func (*Client) SetTransport

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

SetTransport changes the transport on the client

type ClientService

type ClientService interface {
	ConductRepoSearch(params *ConductRepoSearchParams) (*ConductRepoSearchOK, error)

	ConductSearch(params *ConductSearchParams, authInfo runtime.ClientAuthInfoWriter) (*ConductSearchOK, error)

	GetMatchingEntities(params *GetMatchingEntitiesParams) (*GetMatchingEntitiesOK, 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 search API client.

type ConductRepoSearchBadRequest

type ConductRepoSearchBadRequest struct {
	Payload *models.APIError
}

ConductRepoSearchBadRequest handles this case with default header values.

Bad Request

func NewConductRepoSearchBadRequest

func NewConductRepoSearchBadRequest() *ConductRepoSearchBadRequest

NewConductRepoSearchBadRequest creates a ConductRepoSearchBadRequest with default headers values

func (*ConductRepoSearchBadRequest) Error

func (*ConductRepoSearchBadRequest) GetPayload

func (o *ConductRepoSearchBadRequest) GetPayload() *models.APIError

type ConductRepoSearchForbidden

type ConductRepoSearchForbidden struct {
	Payload *models.APIError
}

ConductRepoSearchForbidden handles this case with default header values.

Unauthorized access

func NewConductRepoSearchForbidden

func NewConductRepoSearchForbidden() *ConductRepoSearchForbidden

NewConductRepoSearchForbidden creates a ConductRepoSearchForbidden with default headers values

func (*ConductRepoSearchForbidden) Error

func (*ConductRepoSearchForbidden) GetPayload

func (o *ConductRepoSearchForbidden) GetPayload() *models.APIError

type ConductRepoSearchNotFound

type ConductRepoSearchNotFound struct {
	Payload *models.APIError
}

ConductRepoSearchNotFound handles this case with default header values.

Not found

func NewConductRepoSearchNotFound

func NewConductRepoSearchNotFound() *ConductRepoSearchNotFound

NewConductRepoSearchNotFound creates a ConductRepoSearchNotFound with default headers values

func (*ConductRepoSearchNotFound) Error

func (o *ConductRepoSearchNotFound) Error() string

func (*ConductRepoSearchNotFound) GetPayload

func (o *ConductRepoSearchNotFound) GetPayload() *models.APIError

type ConductRepoSearchOK

type ConductRepoSearchOK struct {
}

ConductRepoSearchOK handles this case with default header values.

Successful invocation

func NewConductRepoSearchOK

func NewConductRepoSearchOK() *ConductRepoSearchOK

NewConductRepoSearchOK creates a ConductRepoSearchOK with default headers values

func (*ConductRepoSearchOK) Error

func (o *ConductRepoSearchOK) Error() string

type ConductRepoSearchParams

type ConductRepoSearchParams struct {

	/*Page
	  The page.

	*/
	Page *int64
	/*Query
	  The search query.

	*/
	Query *string

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

ConductRepoSearchParams contains all the parameters to send to the API endpoint for the conduct repo search operation typically these are written to a http.Request

func NewConductRepoSearchParams

func NewConductRepoSearchParams() *ConductRepoSearchParams

NewConductRepoSearchParams creates a new ConductRepoSearchParams object with the default values initialized.

func NewConductRepoSearchParamsWithContext

func NewConductRepoSearchParamsWithContext(ctx context.Context) *ConductRepoSearchParams

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

func NewConductRepoSearchParamsWithHTTPClient

func NewConductRepoSearchParamsWithHTTPClient(client *http.Client) *ConductRepoSearchParams

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

func NewConductRepoSearchParamsWithTimeout

func NewConductRepoSearchParamsWithTimeout(timeout time.Duration) *ConductRepoSearchParams

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

func (*ConductRepoSearchParams) SetContext

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

SetContext adds the context to the conduct repo search params

func (*ConductRepoSearchParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the conduct repo search params

func (*ConductRepoSearchParams) SetPage

func (o *ConductRepoSearchParams) SetPage(page *int64)

SetPage adds the page to the conduct repo search params

func (*ConductRepoSearchParams) SetQuery

func (o *ConductRepoSearchParams) SetQuery(query *string)

SetQuery adds the query to the conduct repo search params

func (*ConductRepoSearchParams) SetTimeout

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

SetTimeout adds the timeout to the conduct repo search params

func (*ConductRepoSearchParams) WithContext

WithContext adds the context to the conduct repo search params

func (*ConductRepoSearchParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the conduct repo search params

func (*ConductRepoSearchParams) WithPage

WithPage adds the page to the conduct repo search params

func (*ConductRepoSearchParams) WithQuery

WithQuery adds the query to the conduct repo search params

func (*ConductRepoSearchParams) WithTimeout

WithTimeout adds the timeout to the conduct repo search params

func (*ConductRepoSearchParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type ConductRepoSearchReader

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

ConductRepoSearchReader is a Reader for the ConductRepoSearch structure.

func (*ConductRepoSearchReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type ConductRepoSearchUnauthorized

type ConductRepoSearchUnauthorized struct {
	Payload *models.APIError
}

ConductRepoSearchUnauthorized handles this case with default header values.

Session required

func NewConductRepoSearchUnauthorized

func NewConductRepoSearchUnauthorized() *ConductRepoSearchUnauthorized

NewConductRepoSearchUnauthorized creates a ConductRepoSearchUnauthorized with default headers values

func (*ConductRepoSearchUnauthorized) Error

func (*ConductRepoSearchUnauthorized) GetPayload

type ConductSearchBadRequest

type ConductSearchBadRequest struct {
	Payload *models.APIError
}

ConductSearchBadRequest handles this case with default header values.

Bad Request

func NewConductSearchBadRequest

func NewConductSearchBadRequest() *ConductSearchBadRequest

NewConductSearchBadRequest creates a ConductSearchBadRequest with default headers values

func (*ConductSearchBadRequest) Error

func (o *ConductSearchBadRequest) Error() string

func (*ConductSearchBadRequest) GetPayload

func (o *ConductSearchBadRequest) GetPayload() *models.APIError

type ConductSearchForbidden

type ConductSearchForbidden struct {
	Payload *models.APIError
}

ConductSearchForbidden handles this case with default header values.

Unauthorized access

func NewConductSearchForbidden

func NewConductSearchForbidden() *ConductSearchForbidden

NewConductSearchForbidden creates a ConductSearchForbidden with default headers values

func (*ConductSearchForbidden) Error

func (o *ConductSearchForbidden) Error() string

func (*ConductSearchForbidden) GetPayload

func (o *ConductSearchForbidden) GetPayload() *models.APIError

type ConductSearchNotFound

type ConductSearchNotFound struct {
	Payload *models.APIError
}

ConductSearchNotFound handles this case with default header values.

Not found

func NewConductSearchNotFound

func NewConductSearchNotFound() *ConductSearchNotFound

NewConductSearchNotFound creates a ConductSearchNotFound with default headers values

func (*ConductSearchNotFound) Error

func (o *ConductSearchNotFound) Error() string

func (*ConductSearchNotFound) GetPayload

func (o *ConductSearchNotFound) GetPayload() *models.APIError

type ConductSearchOK

type ConductSearchOK struct {
}

ConductSearchOK handles this case with default header values.

Successful invocation

func NewConductSearchOK

func NewConductSearchOK() *ConductSearchOK

NewConductSearchOK creates a ConductSearchOK with default headers values

func (*ConductSearchOK) Error

func (o *ConductSearchOK) Error() string

type ConductSearchParams

type ConductSearchParams struct {

	/*Query
	  The search query.

	*/
	Query *string

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

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

func NewConductSearchParams

func NewConductSearchParams() *ConductSearchParams

NewConductSearchParams creates a new ConductSearchParams object with the default values initialized.

func NewConductSearchParamsWithContext

func NewConductSearchParamsWithContext(ctx context.Context) *ConductSearchParams

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

func NewConductSearchParamsWithHTTPClient

func NewConductSearchParamsWithHTTPClient(client *http.Client) *ConductSearchParams

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

func NewConductSearchParamsWithTimeout

func NewConductSearchParamsWithTimeout(timeout time.Duration) *ConductSearchParams

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

func (*ConductSearchParams) SetContext

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

SetContext adds the context to the conduct search params

func (*ConductSearchParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the conduct search params

func (*ConductSearchParams) SetQuery

func (o *ConductSearchParams) SetQuery(query *string)

SetQuery adds the query to the conduct search params

func (*ConductSearchParams) SetTimeout

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

SetTimeout adds the timeout to the conduct search params

func (*ConductSearchParams) WithContext

WithContext adds the context to the conduct search params

func (*ConductSearchParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the conduct search params

func (*ConductSearchParams) WithQuery

func (o *ConductSearchParams) WithQuery(query *string) *ConductSearchParams

WithQuery adds the query to the conduct search params

func (*ConductSearchParams) WithTimeout

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

WithTimeout adds the timeout to the conduct search params

func (*ConductSearchParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type ConductSearchReader

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

ConductSearchReader is a Reader for the ConductSearch structure.

func (*ConductSearchReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type ConductSearchUnauthorized

type ConductSearchUnauthorized struct {
	Payload *models.APIError
}

ConductSearchUnauthorized handles this case with default header values.

Session required

func NewConductSearchUnauthorized

func NewConductSearchUnauthorized() *ConductSearchUnauthorized

NewConductSearchUnauthorized creates a ConductSearchUnauthorized with default headers values

func (*ConductSearchUnauthorized) Error

func (o *ConductSearchUnauthorized) Error() string

func (*ConductSearchUnauthorized) GetPayload

func (o *ConductSearchUnauthorized) GetPayload() *models.APIError

type GetMatchingEntitiesBadRequest

type GetMatchingEntitiesBadRequest struct {
	Payload *models.APIError
}

GetMatchingEntitiesBadRequest handles this case with default header values.

Bad Request

func NewGetMatchingEntitiesBadRequest

func NewGetMatchingEntitiesBadRequest() *GetMatchingEntitiesBadRequest

NewGetMatchingEntitiesBadRequest creates a GetMatchingEntitiesBadRequest with default headers values

func (*GetMatchingEntitiesBadRequest) Error

func (*GetMatchingEntitiesBadRequest) GetPayload

type GetMatchingEntitiesForbidden

type GetMatchingEntitiesForbidden struct {
	Payload *models.APIError
}

GetMatchingEntitiesForbidden handles this case with default header values.

Unauthorized access

func NewGetMatchingEntitiesForbidden

func NewGetMatchingEntitiesForbidden() *GetMatchingEntitiesForbidden

NewGetMatchingEntitiesForbidden creates a GetMatchingEntitiesForbidden with default headers values

func (*GetMatchingEntitiesForbidden) Error

func (*GetMatchingEntitiesForbidden) GetPayload

func (o *GetMatchingEntitiesForbidden) GetPayload() *models.APIError

type GetMatchingEntitiesNotFound

type GetMatchingEntitiesNotFound struct {
	Payload *models.APIError
}

GetMatchingEntitiesNotFound handles this case with default header values.

Not found

func NewGetMatchingEntitiesNotFound

func NewGetMatchingEntitiesNotFound() *GetMatchingEntitiesNotFound

NewGetMatchingEntitiesNotFound creates a GetMatchingEntitiesNotFound with default headers values

func (*GetMatchingEntitiesNotFound) Error

func (*GetMatchingEntitiesNotFound) GetPayload

func (o *GetMatchingEntitiesNotFound) GetPayload() *models.APIError

type GetMatchingEntitiesOK

type GetMatchingEntitiesOK struct {
}

GetMatchingEntitiesOK handles this case with default header values.

Successful invocation

func NewGetMatchingEntitiesOK

func NewGetMatchingEntitiesOK() *GetMatchingEntitiesOK

NewGetMatchingEntitiesOK creates a GetMatchingEntitiesOK with default headers values

func (*GetMatchingEntitiesOK) Error

func (o *GetMatchingEntitiesOK) Error() string

type GetMatchingEntitiesParams

type GetMatchingEntitiesParams struct {

	/*IncludeOrgs
	  Whether to include orgs names.

	*/
	IncludeOrgs *bool
	/*IncludeTeams
	  Whether to include team names.

	*/
	IncludeTeams *bool
	/*Namespace
	  Namespace to use when querying for org entities.

	*/
	Namespace *string
	/*Prefix*/
	Prefix string

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

GetMatchingEntitiesParams contains all the parameters to send to the API endpoint for the get matching entities operation typically these are written to a http.Request

func NewGetMatchingEntitiesParams

func NewGetMatchingEntitiesParams() *GetMatchingEntitiesParams

NewGetMatchingEntitiesParams creates a new GetMatchingEntitiesParams object with the default values initialized.

func NewGetMatchingEntitiesParamsWithContext

func NewGetMatchingEntitiesParamsWithContext(ctx context.Context) *GetMatchingEntitiesParams

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

func NewGetMatchingEntitiesParamsWithHTTPClient

func NewGetMatchingEntitiesParamsWithHTTPClient(client *http.Client) *GetMatchingEntitiesParams

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

func NewGetMatchingEntitiesParamsWithTimeout

func NewGetMatchingEntitiesParamsWithTimeout(timeout time.Duration) *GetMatchingEntitiesParams

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

func (*GetMatchingEntitiesParams) SetContext

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

SetContext adds the context to the get matching entities params

func (*GetMatchingEntitiesParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get matching entities params

func (*GetMatchingEntitiesParams) SetIncludeOrgs

func (o *GetMatchingEntitiesParams) SetIncludeOrgs(includeOrgs *bool)

SetIncludeOrgs adds the includeOrgs to the get matching entities params

func (*GetMatchingEntitiesParams) SetIncludeTeams

func (o *GetMatchingEntitiesParams) SetIncludeTeams(includeTeams *bool)

SetIncludeTeams adds the includeTeams to the get matching entities params

func (*GetMatchingEntitiesParams) SetNamespace

func (o *GetMatchingEntitiesParams) SetNamespace(namespace *string)

SetNamespace adds the namespace to the get matching entities params

func (*GetMatchingEntitiesParams) SetPrefix

func (o *GetMatchingEntitiesParams) SetPrefix(prefix string)

SetPrefix adds the prefix to the get matching entities params

func (*GetMatchingEntitiesParams) SetTimeout

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

SetTimeout adds the timeout to the get matching entities params

func (*GetMatchingEntitiesParams) WithContext

WithContext adds the context to the get matching entities params

func (*GetMatchingEntitiesParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get matching entities params

func (*GetMatchingEntitiesParams) WithIncludeOrgs

func (o *GetMatchingEntitiesParams) WithIncludeOrgs(includeOrgs *bool) *GetMatchingEntitiesParams

WithIncludeOrgs adds the includeOrgs to the get matching entities params

func (*GetMatchingEntitiesParams) WithIncludeTeams

func (o *GetMatchingEntitiesParams) WithIncludeTeams(includeTeams *bool) *GetMatchingEntitiesParams

WithIncludeTeams adds the includeTeams to the get matching entities params

func (*GetMatchingEntitiesParams) WithNamespace

func (o *GetMatchingEntitiesParams) WithNamespace(namespace *string) *GetMatchingEntitiesParams

WithNamespace adds the namespace to the get matching entities params

func (*GetMatchingEntitiesParams) WithPrefix

WithPrefix adds the prefix to the get matching entities params

func (*GetMatchingEntitiesParams) WithTimeout

WithTimeout adds the timeout to the get matching entities params

func (*GetMatchingEntitiesParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type GetMatchingEntitiesReader

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

GetMatchingEntitiesReader is a Reader for the GetMatchingEntities structure.

func (*GetMatchingEntitiesReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetMatchingEntitiesUnauthorized

type GetMatchingEntitiesUnauthorized struct {
	Payload *models.APIError
}

GetMatchingEntitiesUnauthorized handles this case with default header values.

Session required

func NewGetMatchingEntitiesUnauthorized

func NewGetMatchingEntitiesUnauthorized() *GetMatchingEntitiesUnauthorized

NewGetMatchingEntitiesUnauthorized creates a GetMatchingEntitiesUnauthorized with default headers values

func (*GetMatchingEntitiesUnauthorized) Error

func (*GetMatchingEntitiesUnauthorized) GetPayload

Jump to

Keyboard shortcuts

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