plugin_info

package
v3.0.3-draft Latest Latest
Warning

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

Go to latest
Published: Jul 8, 2021 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 plugin info API

func (*Client) GetPluginsInfo

func (a *Client) GetPluginsInfo(params *GetPluginsInfoParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetPluginsInfoOK, error)

GetPluginsInfo retrieves the list of registered plugins

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 {
	GetPluginsInfo(params *GetPluginsInfoParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetPluginsInfoOK, 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 plugin info API client.

type GetPluginsInfoOK

type GetPluginsInfoOK struct {
	Payload []*kbmodel.PluginInfo
}
GetPluginsInfoOK describes a response with status code 200, with default header values.

successful operation

func NewGetPluginsInfoOK

func NewGetPluginsInfoOK() *GetPluginsInfoOK

NewGetPluginsInfoOK creates a GetPluginsInfoOK with default headers values

func (*GetPluginsInfoOK) Error

func (o *GetPluginsInfoOK) Error() string

func (*GetPluginsInfoOK) GetPayload

func (o *GetPluginsInfoOK) GetPayload() []*kbmodel.PluginInfo

type GetPluginsInfoParams

type GetPluginsInfoParams struct {
	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

GetPluginsInfoParams contains all the parameters to send to the API endpoint

for the get plugins info operation.

Typically these are written to a http.Request.

func NewGetPluginsInfoParams

func NewGetPluginsInfoParams() *GetPluginsInfoParams

NewGetPluginsInfoParams creates a new GetPluginsInfoParams 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 NewGetPluginsInfoParamsWithContext

func NewGetPluginsInfoParamsWithContext(ctx context.Context) *GetPluginsInfoParams

NewGetPluginsInfoParamsWithContext creates a new GetPluginsInfoParams object with the ability to set a context for a request.

func NewGetPluginsInfoParamsWithHTTPClient

func NewGetPluginsInfoParamsWithHTTPClient(client *http.Client) *GetPluginsInfoParams

NewGetPluginsInfoParamsWithHTTPClient creates a new GetPluginsInfoParams object with the ability to set a custom HTTPClient for a request.

func NewGetPluginsInfoParamsWithTimeout

func NewGetPluginsInfoParamsWithTimeout(timeout time.Duration) *GetPluginsInfoParams

NewGetPluginsInfoParamsWithTimeout creates a new GetPluginsInfoParams object with the ability to set a timeout on a request.

func (*GetPluginsInfoParams) SetContext

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

SetContext adds the context to the get plugins info params

func (*GetPluginsInfoParams) SetDefaults

func (o *GetPluginsInfoParams) SetDefaults()

SetDefaults hydrates default values in the get plugins info params (not the query body).

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

func (*GetPluginsInfoParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get plugins info params

func (*GetPluginsInfoParams) SetTimeout

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

SetTimeout adds the timeout to the get plugins info params

func (*GetPluginsInfoParams) WithContext

WithContext adds the context to the get plugins info params

func (*GetPluginsInfoParams) WithDefaults

func (o *GetPluginsInfoParams) WithDefaults() *GetPluginsInfoParams

WithDefaults hydrates default values in the get plugins info params (not the query body).

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

func (*GetPluginsInfoParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get plugins info params

func (*GetPluginsInfoParams) WithTimeout

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

WithTimeout adds the timeout to the get plugins info params

func (*GetPluginsInfoParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type GetPluginsInfoReader

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

GetPluginsInfoReader is a Reader for the GetPluginsInfo structure.

func (*GetPluginsInfoReader) ReadResponse

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