plugins

package
v0.0.0-...-4e509d8 Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2022 License: Apache-2.0 Imports: 14 Imported by: 1

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

func New

func New(transport runtime.ClientTransport, formats strfmt.Registry) *Client

New creates a new plugins API client.

func (*Client) DeletePluginConfigItem

func (a *Client) DeletePluginConfigItem(params *DeletePluginConfigItemParams, authInfo runtime.ClientAuthInfoWriter) (*DeletePluginConfigItemOK, error)

DeletePluginConfigItem deletes config

A minimum of one config key is required for this operation.

func (*Client) GetMetrics

func (a *Client) GetMetrics(params *GetMetricsParams, authInfo runtime.ClientAuthInfoWriter) (*GetMetricsOK, error)

GetMetrics gets metrics

An empty list returns if there is no loaded metrics.

func (*Client) GetPlugin

func (a *Client) GetPlugin(params *GetPluginParams, authInfo runtime.ClientAuthInfoWriter) (*GetPluginOK, error)

GetPlugin gets

An error will be returned if the plugin does not exist.

func (*Client) GetPluginConfigItem

func (a *Client) GetPluginConfigItem(params *GetPluginConfigItemParams, authInfo runtime.ClientAuthInfoWriter) (*GetPluginConfigItemOK, error)

GetPluginConfigItem gets config

An empty config is returned if there are no configs for the plugin.

func (*Client) GetPlugins

func (a *Client) GetPlugins(params *GetPluginsParams, authInfo runtime.ClientAuthInfoWriter) (*GetPluginsOK, error)

GetPlugins gets all

An empty list is returned if there are no loaded plugins.

func (*Client) LoadPlugin

func (a *Client) LoadPlugin(params *LoadPluginParams, authInfo runtime.ClientAuthInfoWriter) (*LoadPluginCreated, error)

LoadPlugin loads

A plugin binary is required.

func (*Client) SetPluginConfigItem

func (a *Client) SetPluginConfigItem(params *SetPluginConfigItemParams, authInfo runtime.ClientAuthInfoWriter) (*SetPluginConfigItemOK, error)

SetPluginConfigItem sets config

A config is JSON. For example: {"user":"snap", "host":"ocean_eleven"}.

func (*Client) SetTransport

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

SetTransport changes the transport on the client

func (*Client) UnloadPlugin

func (a *Client) UnloadPlugin(params *UnloadPluginParams, authInfo runtime.ClientAuthInfoWriter) (*UnloadPluginNoContent, error)

UnloadPlugin unloads

Required fields are plugin type, name and version.

type DeletePluginConfigItemBadRequest

type DeletePluginConfigItemBadRequest struct {
	Payload *models.Error
}

DeletePluginConfigItemBadRequest handles this case with default header values.

ErrorResponse represents the Snap error response type.

It includes an error message and a map of fields.

func NewDeletePluginConfigItemBadRequest

func NewDeletePluginConfigItemBadRequest() *DeletePluginConfigItemBadRequest

NewDeletePluginConfigItemBadRequest creates a DeletePluginConfigItemBadRequest with default headers values

func (*DeletePluginConfigItemBadRequest) Error

type DeletePluginConfigItemOK

type DeletePluginConfigItemOK struct {
	Payload models.ConfigDataNode
}

DeletePluginConfigItemOK handles this case with default header values.

PluginConfigResponse represents the response of a plugin config items.

func NewDeletePluginConfigItemOK

func NewDeletePluginConfigItemOK() *DeletePluginConfigItemOK

NewDeletePluginConfigItemOK creates a DeletePluginConfigItemOK with default headers values

func (*DeletePluginConfigItemOK) Error

func (o *DeletePluginConfigItemOK) Error() string

type DeletePluginConfigItemParams

type DeletePluginConfigItemParams struct {

	/*Config*/
	Config []string
	/*Pname*/
	Pname string
	/*Ptype*/
	Ptype string
	/*Pversion*/
	Pversion int64

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

DeletePluginConfigItemParams contains all the parameters to send to the API endpoint for the delete plugin config item operation typically these are written to a http.Request

func NewDeletePluginConfigItemParams

func NewDeletePluginConfigItemParams() *DeletePluginConfigItemParams

NewDeletePluginConfigItemParams creates a new DeletePluginConfigItemParams object with the default values initialized.

func NewDeletePluginConfigItemParamsWithContext

func NewDeletePluginConfigItemParamsWithContext(ctx context.Context) *DeletePluginConfigItemParams

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

func NewDeletePluginConfigItemParamsWithHTTPClient

func NewDeletePluginConfigItemParamsWithHTTPClient(client *http.Client) *DeletePluginConfigItemParams

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

func NewDeletePluginConfigItemParamsWithTimeout

func NewDeletePluginConfigItemParamsWithTimeout(timeout time.Duration) *DeletePluginConfigItemParams

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

func (*DeletePluginConfigItemParams) SetConfig

func (o *DeletePluginConfigItemParams) SetConfig(config []string)

SetConfig adds the config to the delete plugin config item params

func (*DeletePluginConfigItemParams) SetContext

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

SetContext adds the context to the delete plugin config item params

func (*DeletePluginConfigItemParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the delete plugin config item params

func (*DeletePluginConfigItemParams) SetPname

func (o *DeletePluginConfigItemParams) SetPname(pname string)

SetPname adds the pname to the delete plugin config item params

func (*DeletePluginConfigItemParams) SetPtype

func (o *DeletePluginConfigItemParams) SetPtype(ptype string)

SetPtype adds the ptype to the delete plugin config item params

func (*DeletePluginConfigItemParams) SetPversion

func (o *DeletePluginConfigItemParams) SetPversion(pversion int64)

SetPversion adds the pversion to the delete plugin config item params

func (*DeletePluginConfigItemParams) SetTimeout

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

SetTimeout adds the timeout to the delete plugin config item params

func (*DeletePluginConfigItemParams) WithConfig

WithConfig adds the config to the delete plugin config item params

func (*DeletePluginConfigItemParams) WithContext

WithContext adds the context to the delete plugin config item params

func (*DeletePluginConfigItemParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the delete plugin config item params

func (*DeletePluginConfigItemParams) WithPname

WithPname adds the pname to the delete plugin config item params

func (*DeletePluginConfigItemParams) WithPtype

WithPtype adds the ptype to the delete plugin config item params

func (*DeletePluginConfigItemParams) WithPversion

WithPversion adds the pversion to the delete plugin config item params

func (*DeletePluginConfigItemParams) WithTimeout

WithTimeout adds the timeout to the delete plugin config item params

func (*DeletePluginConfigItemParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type DeletePluginConfigItemReader

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

DeletePluginConfigItemReader is a Reader for the DeletePluginConfigItem structure.

func (*DeletePluginConfigItemReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type DeletePluginConfigItemUnauthorized

type DeletePluginConfigItemUnauthorized struct {
	Payload *models.UnauthError
}

DeletePluginConfigItemUnauthorized handles this case with default header values.

UnauthResponse returns Unauthorized error struct message.

func NewDeletePluginConfigItemUnauthorized

func NewDeletePluginConfigItemUnauthorized() *DeletePluginConfigItemUnauthorized

NewDeletePluginConfigItemUnauthorized creates a DeletePluginConfigItemUnauthorized with default headers values

func (*DeletePluginConfigItemUnauthorized) Error

type GetMetricsInternalServerError

type GetMetricsInternalServerError struct {
	Payload *models.Error
}

GetMetricsInternalServerError handles this case with default header values.

ErrorResponse represents the Snap error response type.

It includes an error message and a map of fields.

func NewGetMetricsInternalServerError

func NewGetMetricsInternalServerError() *GetMetricsInternalServerError

NewGetMetricsInternalServerError creates a GetMetricsInternalServerError with default headers values

func (*GetMetricsInternalServerError) Error

type GetMetricsNotFound

type GetMetricsNotFound struct {
	Payload *models.Error
}

GetMetricsNotFound handles this case with default header values.

ErrorResponse represents the Snap error response type.

It includes an error message and a map of fields.

func NewGetMetricsNotFound

func NewGetMetricsNotFound() *GetMetricsNotFound

NewGetMetricsNotFound creates a GetMetricsNotFound with default headers values

func (*GetMetricsNotFound) Error

func (o *GetMetricsNotFound) Error() string

type GetMetricsOK

type GetMetricsOK struct {
	Payload GetMetricsOKBody
}

GetMetricsOK handles this case with default header values.

MetricsResponse is the representation of metric operation response.

func NewGetMetricsOK

func NewGetMetricsOK() *GetMetricsOK

NewGetMetricsOK creates a GetMetricsOK with default headers values

func (*GetMetricsOK) Error

func (o *GetMetricsOK) Error() string

type GetMetricsOKBody

type GetMetricsOKBody struct {

	// metrics
	// Required: true
	Metrics []*models.Metric `json:"metrics"`
}

GetMetricsOKBody get metrics o k body swagger:model GetMetricsOKBody

func (*GetMetricsOKBody) MarshalBinary

func (o *GetMetricsOKBody) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*GetMetricsOKBody) UnmarshalBinary

func (o *GetMetricsOKBody) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*GetMetricsOKBody) Validate

func (o *GetMetricsOKBody) Validate(formats strfmt.Registry) error

Validate validates this get metrics o k body

type GetMetricsParams

type GetMetricsParams struct {

	/*Ns*/
	Ns *string
	/*Ver*/
	Ver *int64

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

GetMetricsParams contains all the parameters to send to the API endpoint for the get metrics operation typically these are written to a http.Request

func NewGetMetricsParams

func NewGetMetricsParams() *GetMetricsParams

NewGetMetricsParams creates a new GetMetricsParams object with the default values initialized.

func NewGetMetricsParamsWithContext

func NewGetMetricsParamsWithContext(ctx context.Context) *GetMetricsParams

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

func NewGetMetricsParamsWithHTTPClient

func NewGetMetricsParamsWithHTTPClient(client *http.Client) *GetMetricsParams

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

func NewGetMetricsParamsWithTimeout

func NewGetMetricsParamsWithTimeout(timeout time.Duration) *GetMetricsParams

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

func (*GetMetricsParams) SetContext

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

SetContext adds the context to the get metrics params

func (*GetMetricsParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get metrics params

func (*GetMetricsParams) SetNs

func (o *GetMetricsParams) SetNs(ns *string)

SetNs adds the ns to the get metrics params

func (*GetMetricsParams) SetTimeout

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

SetTimeout adds the timeout to the get metrics params

func (*GetMetricsParams) SetVer

func (o *GetMetricsParams) SetVer(ver *int64)

SetVer adds the ver to the get metrics params

func (*GetMetricsParams) WithContext

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

WithContext adds the context to the get metrics params

func (*GetMetricsParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get metrics params

func (*GetMetricsParams) WithNs

func (o *GetMetricsParams) WithNs(ns *string) *GetMetricsParams

WithNs adds the ns to the get metrics params

func (*GetMetricsParams) WithTimeout

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

WithTimeout adds the timeout to the get metrics params

func (*GetMetricsParams) WithVer

func (o *GetMetricsParams) WithVer(ver *int64) *GetMetricsParams

WithVer adds the ver to the get metrics params

func (*GetMetricsParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type GetMetricsReader

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

GetMetricsReader is a Reader for the GetMetrics structure.

func (*GetMetricsReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetMetricsUnauthorized

type GetMetricsUnauthorized struct {
	Payload *models.UnauthError
}

GetMetricsUnauthorized handles this case with default header values.

UnauthResponse returns Unauthorized error struct message.

func NewGetMetricsUnauthorized

func NewGetMetricsUnauthorized() *GetMetricsUnauthorized

NewGetMetricsUnauthorized creates a GetMetricsUnauthorized with default headers values

func (*GetMetricsUnauthorized) Error

func (o *GetMetricsUnauthorized) Error() string

type GetPluginBadRequest

type GetPluginBadRequest struct {
	Payload *models.Error
}

GetPluginBadRequest handles this case with default header values.

ErrorResponse represents the Snap error response type.

It includes an error message and a map of fields.

func NewGetPluginBadRequest

func NewGetPluginBadRequest() *GetPluginBadRequest

NewGetPluginBadRequest creates a GetPluginBadRequest with default headers values

func (*GetPluginBadRequest) Error

func (o *GetPluginBadRequest) Error() string

type GetPluginConfigItemBadRequest

type GetPluginConfigItemBadRequest struct {
	Payload *models.Error
}

GetPluginConfigItemBadRequest handles this case with default header values.

ErrorResponse represents the Snap error response type.

It includes an error message and a map of fields.

func NewGetPluginConfigItemBadRequest

func NewGetPluginConfigItemBadRequest() *GetPluginConfigItemBadRequest

NewGetPluginConfigItemBadRequest creates a GetPluginConfigItemBadRequest with default headers values

func (*GetPluginConfigItemBadRequest) Error

type GetPluginConfigItemOK

type GetPluginConfigItemOK struct {
	Payload models.ConfigDataNode
}

GetPluginConfigItemOK handles this case with default header values.

PluginConfigResponse represents the response of a plugin config items.

func NewGetPluginConfigItemOK

func NewGetPluginConfigItemOK() *GetPluginConfigItemOK

NewGetPluginConfigItemOK creates a GetPluginConfigItemOK with default headers values

func (*GetPluginConfigItemOK) Error

func (o *GetPluginConfigItemOK) Error() string

type GetPluginConfigItemParams

type GetPluginConfigItemParams struct {

	/*Pname*/
	Pname string
	/*Ptype*/
	Ptype string
	/*Pversion*/
	Pversion int64

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

GetPluginConfigItemParams contains all the parameters to send to the API endpoint for the get plugin config item operation typically these are written to a http.Request

func NewGetPluginConfigItemParams

func NewGetPluginConfigItemParams() *GetPluginConfigItemParams

NewGetPluginConfigItemParams creates a new GetPluginConfigItemParams object with the default values initialized.

func NewGetPluginConfigItemParamsWithContext

func NewGetPluginConfigItemParamsWithContext(ctx context.Context) *GetPluginConfigItemParams

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

func NewGetPluginConfigItemParamsWithHTTPClient

func NewGetPluginConfigItemParamsWithHTTPClient(client *http.Client) *GetPluginConfigItemParams

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

func NewGetPluginConfigItemParamsWithTimeout

func NewGetPluginConfigItemParamsWithTimeout(timeout time.Duration) *GetPluginConfigItemParams

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

func (*GetPluginConfigItemParams) SetContext

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

SetContext adds the context to the get plugin config item params

func (*GetPluginConfigItemParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get plugin config item params

func (*GetPluginConfigItemParams) SetPname

func (o *GetPluginConfigItemParams) SetPname(pname string)

SetPname adds the pname to the get plugin config item params

func (*GetPluginConfigItemParams) SetPtype

func (o *GetPluginConfigItemParams) SetPtype(ptype string)

SetPtype adds the ptype to the get plugin config item params

func (*GetPluginConfigItemParams) SetPversion

func (o *GetPluginConfigItemParams) SetPversion(pversion int64)

SetPversion adds the pversion to the get plugin config item params

func (*GetPluginConfigItemParams) SetTimeout

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

SetTimeout adds the timeout to the get plugin config item params

func (*GetPluginConfigItemParams) WithContext

WithContext adds the context to the get plugin config item params

func (*GetPluginConfigItemParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get plugin config item params

func (*GetPluginConfigItemParams) WithPname

WithPname adds the pname to the get plugin config item params

func (*GetPluginConfigItemParams) WithPtype

WithPtype adds the ptype to the get plugin config item params

func (*GetPluginConfigItemParams) WithPversion

func (o *GetPluginConfigItemParams) WithPversion(pversion int64) *GetPluginConfigItemParams

WithPversion adds the pversion to the get plugin config item params

func (*GetPluginConfigItemParams) WithTimeout

WithTimeout adds the timeout to the get plugin config item params

func (*GetPluginConfigItemParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type GetPluginConfigItemReader

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

GetPluginConfigItemReader is a Reader for the GetPluginConfigItem structure.

func (*GetPluginConfigItemReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetPluginConfigItemUnauthorized

type GetPluginConfigItemUnauthorized struct {
	Payload *models.UnauthError
}

GetPluginConfigItemUnauthorized handles this case with default header values.

UnauthResponse returns Unauthorized error struct message.

func NewGetPluginConfigItemUnauthorized

func NewGetPluginConfigItemUnauthorized() *GetPluginConfigItemUnauthorized

NewGetPluginConfigItemUnauthorized creates a GetPluginConfigItemUnauthorized with default headers values

func (*GetPluginConfigItemUnauthorized) Error

type GetPluginInternalServerError

type GetPluginInternalServerError struct {
	Payload *models.Error
}

GetPluginInternalServerError handles this case with default header values.

ErrorResponse represents the Snap error response type.

It includes an error message and a map of fields.

func NewGetPluginInternalServerError

func NewGetPluginInternalServerError() *GetPluginInternalServerError

NewGetPluginInternalServerError creates a GetPluginInternalServerError with default headers values

func (*GetPluginInternalServerError) Error

type GetPluginNotFound

type GetPluginNotFound struct {
	Payload *models.Error
}

GetPluginNotFound handles this case with default header values.

ErrorResponse represents the Snap error response type.

It includes an error message and a map of fields.

func NewGetPluginNotFound

func NewGetPluginNotFound() *GetPluginNotFound

NewGetPluginNotFound creates a GetPluginNotFound with default headers values

func (*GetPluginNotFound) Error

func (o *GetPluginNotFound) Error() string

type GetPluginOK

type GetPluginOK struct {
	Payload *models.Plugin
}

GetPluginOK handles this case with default header values.

PluginResponse represents the response from plugin operations.

func NewGetPluginOK

func NewGetPluginOK() *GetPluginOK

NewGetPluginOK creates a GetPluginOK with default headers values

func (*GetPluginOK) Error

func (o *GetPluginOK) Error() string

type GetPluginParams

type GetPluginParams struct {

	/*Pname*/
	Pname string
	/*Ptype*/
	Ptype string
	/*Pversion*/
	Pversion int64

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

GetPluginParams contains all the parameters to send to the API endpoint for the get plugin operation typically these are written to a http.Request

func NewGetPluginParams

func NewGetPluginParams() *GetPluginParams

NewGetPluginParams creates a new GetPluginParams object with the default values initialized.

func NewGetPluginParamsWithContext

func NewGetPluginParamsWithContext(ctx context.Context) *GetPluginParams

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

func NewGetPluginParamsWithHTTPClient

func NewGetPluginParamsWithHTTPClient(client *http.Client) *GetPluginParams

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

func NewGetPluginParamsWithTimeout

func NewGetPluginParamsWithTimeout(timeout time.Duration) *GetPluginParams

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

func (*GetPluginParams) SetContext

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

SetContext adds the context to the get plugin params

func (*GetPluginParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get plugin params

func (*GetPluginParams) SetPname

func (o *GetPluginParams) SetPname(pname string)

SetPname adds the pname to the get plugin params

func (*GetPluginParams) SetPtype

func (o *GetPluginParams) SetPtype(ptype string)

SetPtype adds the ptype to the get plugin params

func (*GetPluginParams) SetPversion

func (o *GetPluginParams) SetPversion(pversion int64)

SetPversion adds the pversion to the get plugin params

func (*GetPluginParams) SetTimeout

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

SetTimeout adds the timeout to the get plugin params

func (*GetPluginParams) WithContext

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

WithContext adds the context to the get plugin params

func (*GetPluginParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get plugin params

func (*GetPluginParams) WithPname

func (o *GetPluginParams) WithPname(pname string) *GetPluginParams

WithPname adds the pname to the get plugin params

func (*GetPluginParams) WithPtype

func (o *GetPluginParams) WithPtype(ptype string) *GetPluginParams

WithPtype adds the ptype to the get plugin params

func (*GetPluginParams) WithPversion

func (o *GetPluginParams) WithPversion(pversion int64) *GetPluginParams

WithPversion adds the pversion to the get plugin params

func (*GetPluginParams) WithTimeout

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

WithTimeout adds the timeout to the get plugin params

func (*GetPluginParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type GetPluginReader

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

GetPluginReader is a Reader for the GetPlugin structure.

func (*GetPluginReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetPluginUnauthorized

type GetPluginUnauthorized struct {
	Payload *models.UnauthError
}

GetPluginUnauthorized handles this case with default header values.

UnauthResponse returns Unauthorized error struct message.

func NewGetPluginUnauthorized

func NewGetPluginUnauthorized() *GetPluginUnauthorized

NewGetPluginUnauthorized creates a GetPluginUnauthorized with default headers values

func (*GetPluginUnauthorized) Error

func (o *GetPluginUnauthorized) Error() string

type GetPluginsOK

type GetPluginsOK struct {
	Payload GetPluginsOKBody
}

GetPluginsOK handles this case with default header values.

PluginsResp represents the response from plugins operations.

func NewGetPluginsOK

func NewGetPluginsOK() *GetPluginsOK

NewGetPluginsOK creates a GetPluginsOK with default headers values

func (*GetPluginsOK) Error

func (o *GetPluginsOK) Error() string

type GetPluginsOKBody

type GetPluginsOKBody struct {

	// plugins
	// Required: true
	Plugins []*models.Plugin `json:"plugins"`
}

GetPluginsOKBody get plugins o k body swagger:model GetPluginsOKBody

func (*GetPluginsOKBody) MarshalBinary

func (o *GetPluginsOKBody) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*GetPluginsOKBody) UnmarshalBinary

func (o *GetPluginsOKBody) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*GetPluginsOKBody) Validate

func (o *GetPluginsOKBody) Validate(formats strfmt.Registry) error

Validate validates this get plugins o k body

type GetPluginsParams

type GetPluginsParams struct {

	/*Name*/
	Name *string
	/*Running*/
	Running *bool
	/*Type*/
	Type *string

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

GetPluginsParams contains all the parameters to send to the API endpoint for the get plugins operation typically these are written to a http.Request

func NewGetPluginsParams

func NewGetPluginsParams() *GetPluginsParams

NewGetPluginsParams creates a new GetPluginsParams object with the default values initialized.

func NewGetPluginsParamsWithContext

func NewGetPluginsParamsWithContext(ctx context.Context) *GetPluginsParams

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

func NewGetPluginsParamsWithHTTPClient

func NewGetPluginsParamsWithHTTPClient(client *http.Client) *GetPluginsParams

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

func NewGetPluginsParamsWithTimeout

func NewGetPluginsParamsWithTimeout(timeout time.Duration) *GetPluginsParams

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

func (*GetPluginsParams) SetContext

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

SetContext adds the context to the get plugins params

func (*GetPluginsParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get plugins params

func (*GetPluginsParams) SetName

func (o *GetPluginsParams) SetName(name *string)

SetName adds the name to the get plugins params

func (*GetPluginsParams) SetRunning

func (o *GetPluginsParams) SetRunning(running *bool)

SetRunning adds the running to the get plugins params

func (*GetPluginsParams) SetTimeout

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

SetTimeout adds the timeout to the get plugins params

func (*GetPluginsParams) SetType

func (o *GetPluginsParams) SetType(typeVar *string)

SetType adds the type to the get plugins params

func (*GetPluginsParams) WithContext

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

WithContext adds the context to the get plugins params

func (*GetPluginsParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get plugins params

func (*GetPluginsParams) WithName

func (o *GetPluginsParams) WithName(name *string) *GetPluginsParams

WithName adds the name to the get plugins params

func (*GetPluginsParams) WithRunning

func (o *GetPluginsParams) WithRunning(running *bool) *GetPluginsParams

WithRunning adds the running to the get plugins params

func (*GetPluginsParams) WithTimeout

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

WithTimeout adds the timeout to the get plugins params

func (*GetPluginsParams) WithType

func (o *GetPluginsParams) WithType(typeVar *string) *GetPluginsParams

WithType adds the typeVar to the get plugins params

func (*GetPluginsParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type GetPluginsReader

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

GetPluginsReader is a Reader for the GetPlugins structure.

func (*GetPluginsReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetPluginsUnauthorized

type GetPluginsUnauthorized struct {
	Payload *models.UnauthError
}

GetPluginsUnauthorized handles this case with default header values.

UnauthResponse returns Unauthorized error struct message.

func NewGetPluginsUnauthorized

func NewGetPluginsUnauthorized() *GetPluginsUnauthorized

NewGetPluginsUnauthorized creates a GetPluginsUnauthorized with default headers values

func (*GetPluginsUnauthorized) Error

func (o *GetPluginsUnauthorized) Error() string

type LoadPluginBadRequest

type LoadPluginBadRequest struct {
	Payload *models.Error
}

LoadPluginBadRequest handles this case with default header values.

ErrorResponse represents the Snap error response type.

It includes an error message and a map of fields.

func NewLoadPluginBadRequest

func NewLoadPluginBadRequest() *LoadPluginBadRequest

NewLoadPluginBadRequest creates a LoadPluginBadRequest with default headers values

func (*LoadPluginBadRequest) Error

func (o *LoadPluginBadRequest) Error() string

type LoadPluginConflict

type LoadPluginConflict struct {
	Payload *models.Error
}

LoadPluginConflict handles this case with default header values.

ErrorResponse represents the Snap error response type.

It includes an error message and a map of fields.

func NewLoadPluginConflict

func NewLoadPluginConflict() *LoadPluginConflict

NewLoadPluginConflict creates a LoadPluginConflict with default headers values

func (*LoadPluginConflict) Error

func (o *LoadPluginConflict) Error() string

type LoadPluginCreated

type LoadPluginCreated struct {
	Payload *models.Plugin
}

LoadPluginCreated handles this case with default header values.

PluginResponse represents the response from plugin operations.

func NewLoadPluginCreated

func NewLoadPluginCreated() *LoadPluginCreated

NewLoadPluginCreated creates a LoadPluginCreated with default headers values

func (*LoadPluginCreated) Error

func (o *LoadPluginCreated) Error() string

type LoadPluginInternalServerError

type LoadPluginInternalServerError struct {
	Payload *models.Error
}

LoadPluginInternalServerError handles this case with default header values.

ErrorResponse represents the Snap error response type.

It includes an error message and a map of fields.

func NewLoadPluginInternalServerError

func NewLoadPluginInternalServerError() *LoadPluginInternalServerError

NewLoadPluginInternalServerError creates a LoadPluginInternalServerError with default headers values

func (*LoadPluginInternalServerError) Error

type LoadPluginParams

type LoadPluginParams struct {

	/*CaCerts
	  CA root certification

	*/
	CaCerts *string
	/*PluginCert
	  Plugin GRPC TLS server certification

	*/
	PluginCert *string
	/*PluginData
	  loads a plugin.

	*/
	PluginData *os.File
	/*PluginKey
	  Plugin GRPC TLS server key

	*/
	PluginKey *string
	/*PluginURI
	  Stand-alone plugin URI

	*/
	PluginURI *string

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

LoadPluginParams contains all the parameters to send to the API endpoint for the load plugin operation typically these are written to a http.Request

func NewLoadPluginParams

func NewLoadPluginParams() *LoadPluginParams

NewLoadPluginParams creates a new LoadPluginParams object with the default values initialized.

func NewLoadPluginParamsWithContext

func NewLoadPluginParamsWithContext(ctx context.Context) *LoadPluginParams

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

func NewLoadPluginParamsWithHTTPClient

func NewLoadPluginParamsWithHTTPClient(client *http.Client) *LoadPluginParams

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

func NewLoadPluginParamsWithTimeout

func NewLoadPluginParamsWithTimeout(timeout time.Duration) *LoadPluginParams

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

func (*LoadPluginParams) SetCaCerts

func (o *LoadPluginParams) SetCaCerts(caCerts *string)

SetCaCerts adds the caCerts to the load plugin params

func (*LoadPluginParams) SetContext

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

SetContext adds the context to the load plugin params

func (*LoadPluginParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the load plugin params

func (*LoadPluginParams) SetPluginCert

func (o *LoadPluginParams) SetPluginCert(pluginCert *string)

SetPluginCert adds the pluginCert to the load plugin params

func (*LoadPluginParams) SetPluginData

func (o *LoadPluginParams) SetPluginData(pluginData *os.File)

SetPluginData adds the pluginData to the load plugin params

func (*LoadPluginParams) SetPluginKey

func (o *LoadPluginParams) SetPluginKey(pluginKey *string)

SetPluginKey adds the pluginKey to the load plugin params

func (*LoadPluginParams) SetPluginURI

func (o *LoadPluginParams) SetPluginURI(pluginURI *string)

SetPluginURI adds the pluginUri to the load plugin params

func (*LoadPluginParams) SetTimeout

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

SetTimeout adds the timeout to the load plugin params

func (*LoadPluginParams) WithCaCerts

func (o *LoadPluginParams) WithCaCerts(caCerts *string) *LoadPluginParams

WithCaCerts adds the caCerts to the load plugin params

func (*LoadPluginParams) WithContext

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

WithContext adds the context to the load plugin params

func (*LoadPluginParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the load plugin params

func (*LoadPluginParams) WithPluginCert

func (o *LoadPluginParams) WithPluginCert(pluginCert *string) *LoadPluginParams

WithPluginCert adds the pluginCert to the load plugin params

func (*LoadPluginParams) WithPluginData

func (o *LoadPluginParams) WithPluginData(pluginData *os.File) *LoadPluginParams

WithPluginData adds the pluginData to the load plugin params

func (*LoadPluginParams) WithPluginKey

func (o *LoadPluginParams) WithPluginKey(pluginKey *string) *LoadPluginParams

WithPluginKey adds the pluginKey to the load plugin params

func (*LoadPluginParams) WithPluginURI

func (o *LoadPluginParams) WithPluginURI(pluginURI *string) *LoadPluginParams

WithPluginURI adds the pluginURI to the load plugin params

func (*LoadPluginParams) WithTimeout

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

WithTimeout adds the timeout to the load plugin params

func (*LoadPluginParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type LoadPluginReader

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

LoadPluginReader is a Reader for the LoadPlugin structure.

func (*LoadPluginReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type LoadPluginUnauthorized

type LoadPluginUnauthorized struct {
	Payload *models.UnauthError
}

LoadPluginUnauthorized handles this case with default header values.

UnauthResponse returns Unauthorized error struct message.

func NewLoadPluginUnauthorized

func NewLoadPluginUnauthorized() *LoadPluginUnauthorized

NewLoadPluginUnauthorized creates a LoadPluginUnauthorized with default headers values

func (*LoadPluginUnauthorized) Error

func (o *LoadPluginUnauthorized) Error() string

type LoadPluginUnsupportedMediaType

type LoadPluginUnsupportedMediaType struct {
	Payload *models.Error
}

LoadPluginUnsupportedMediaType handles this case with default header values.

ErrorResponse represents the Snap error response type.

It includes an error message and a map of fields.

func NewLoadPluginUnsupportedMediaType

func NewLoadPluginUnsupportedMediaType() *LoadPluginUnsupportedMediaType

NewLoadPluginUnsupportedMediaType creates a LoadPluginUnsupportedMediaType with default headers values

func (*LoadPluginUnsupportedMediaType) Error

type SetPluginConfigItemBadRequest

type SetPluginConfigItemBadRequest struct {
	Payload *models.Error
}

SetPluginConfigItemBadRequest handles this case with default header values.

ErrorResponse represents the Snap error response type.

It includes an error message and a map of fields.

func NewSetPluginConfigItemBadRequest

func NewSetPluginConfigItemBadRequest() *SetPluginConfigItemBadRequest

NewSetPluginConfigItemBadRequest creates a SetPluginConfigItemBadRequest with default headers values

func (*SetPluginConfigItemBadRequest) Error

type SetPluginConfigItemOK

type SetPluginConfigItemOK struct {
	Payload models.ConfigDataNode
}

SetPluginConfigItemOK handles this case with default header values.

PluginConfigResponse represents the response of a plugin config items.

func NewSetPluginConfigItemOK

func NewSetPluginConfigItemOK() *SetPluginConfigItemOK

NewSetPluginConfigItemOK creates a SetPluginConfigItemOK with default headers values

func (*SetPluginConfigItemOK) Error

func (o *SetPluginConfigItemOK) Error() string

type SetPluginConfigItemParams

type SetPluginConfigItemParams struct {

	/*Config*/
	Config interface{}
	/*Pname*/
	Pname string
	/*Ptype*/
	Ptype string
	/*Pversion*/
	Pversion int64

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

SetPluginConfigItemParams contains all the parameters to send to the API endpoint for the set plugin config item operation typically these are written to a http.Request

func NewSetPluginConfigItemParams

func NewSetPluginConfigItemParams() *SetPluginConfigItemParams

NewSetPluginConfigItemParams creates a new SetPluginConfigItemParams object with the default values initialized.

func NewSetPluginConfigItemParamsWithContext

func NewSetPluginConfigItemParamsWithContext(ctx context.Context) *SetPluginConfigItemParams

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

func NewSetPluginConfigItemParamsWithHTTPClient

func NewSetPluginConfigItemParamsWithHTTPClient(client *http.Client) *SetPluginConfigItemParams

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

func NewSetPluginConfigItemParamsWithTimeout

func NewSetPluginConfigItemParamsWithTimeout(timeout time.Duration) *SetPluginConfigItemParams

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

func (*SetPluginConfigItemParams) SetConfig

func (o *SetPluginConfigItemParams) SetConfig(config interface{})

SetConfig adds the config to the set plugin config item params

func (*SetPluginConfigItemParams) SetContext

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

SetContext adds the context to the set plugin config item params

func (*SetPluginConfigItemParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the set plugin config item params

func (*SetPluginConfigItemParams) SetPname

func (o *SetPluginConfigItemParams) SetPname(pname string)

SetPname adds the pname to the set plugin config item params

func (*SetPluginConfigItemParams) SetPtype

func (o *SetPluginConfigItemParams) SetPtype(ptype string)

SetPtype adds the ptype to the set plugin config item params

func (*SetPluginConfigItemParams) SetPversion

func (o *SetPluginConfigItemParams) SetPversion(pversion int64)

SetPversion adds the pversion to the set plugin config item params

func (*SetPluginConfigItemParams) SetTimeout

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

SetTimeout adds the timeout to the set plugin config item params

func (*SetPluginConfigItemParams) WithConfig

func (o *SetPluginConfigItemParams) WithConfig(config interface{}) *SetPluginConfigItemParams

WithConfig adds the config to the set plugin config item params

func (*SetPluginConfigItemParams) WithContext

WithContext adds the context to the set plugin config item params

func (*SetPluginConfigItemParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the set plugin config item params

func (*SetPluginConfigItemParams) WithPname

WithPname adds the pname to the set plugin config item params

func (*SetPluginConfigItemParams) WithPtype

WithPtype adds the ptype to the set plugin config item params

func (*SetPluginConfigItemParams) WithPversion

func (o *SetPluginConfigItemParams) WithPversion(pversion int64) *SetPluginConfigItemParams

WithPversion adds the pversion to the set plugin config item params

func (*SetPluginConfigItemParams) WithTimeout

WithTimeout adds the timeout to the set plugin config item params

func (*SetPluginConfigItemParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type SetPluginConfigItemReader

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

SetPluginConfigItemReader is a Reader for the SetPluginConfigItem structure.

func (*SetPluginConfigItemReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type SetPluginConfigItemUnauthorized

type SetPluginConfigItemUnauthorized struct {
	Payload *models.UnauthError
}

SetPluginConfigItemUnauthorized handles this case with default header values.

UnauthResponse returns Unauthorized error struct message.

func NewSetPluginConfigItemUnauthorized

func NewSetPluginConfigItemUnauthorized() *SetPluginConfigItemUnauthorized

NewSetPluginConfigItemUnauthorized creates a SetPluginConfigItemUnauthorized with default headers values

func (*SetPluginConfigItemUnauthorized) Error

type UnloadPluginBadRequest

type UnloadPluginBadRequest struct {
	Payload *models.Error
}

UnloadPluginBadRequest handles this case with default header values.

ErrorResponse represents the Snap error response type.

It includes an error message and a map of fields.

func NewUnloadPluginBadRequest

func NewUnloadPluginBadRequest() *UnloadPluginBadRequest

NewUnloadPluginBadRequest creates a UnloadPluginBadRequest with default headers values

func (*UnloadPluginBadRequest) Error

func (o *UnloadPluginBadRequest) Error() string

type UnloadPluginConflict

type UnloadPluginConflict struct {
	Payload *models.Error
}

UnloadPluginConflict handles this case with default header values.

ErrorResponse represents the Snap error response type.

It includes an error message and a map of fields.

func NewUnloadPluginConflict

func NewUnloadPluginConflict() *UnloadPluginConflict

NewUnloadPluginConflict creates a UnloadPluginConflict with default headers values

func (*UnloadPluginConflict) Error

func (o *UnloadPluginConflict) Error() string

type UnloadPluginInternalServerError

type UnloadPluginInternalServerError struct {
	Payload *models.Error
}

UnloadPluginInternalServerError handles this case with default header values.

ErrorResponse represents the Snap error response type.

It includes an error message and a map of fields.

func NewUnloadPluginInternalServerError

func NewUnloadPluginInternalServerError() *UnloadPluginInternalServerError

NewUnloadPluginInternalServerError creates a UnloadPluginInternalServerError with default headers values

func (*UnloadPluginInternalServerError) Error

type UnloadPluginNoContent

type UnloadPluginNoContent struct {
	Payload *models.Plugin
}

UnloadPluginNoContent handles this case with default header values.

PluginResponse represents the response from plugin operations.

func NewUnloadPluginNoContent

func NewUnloadPluginNoContent() *UnloadPluginNoContent

NewUnloadPluginNoContent creates a UnloadPluginNoContent with default headers values

func (*UnloadPluginNoContent) Error

func (o *UnloadPluginNoContent) Error() string

type UnloadPluginNotFound

type UnloadPluginNotFound struct {
	Payload *models.Error
}

UnloadPluginNotFound handles this case with default header values.

ErrorResponse represents the Snap error response type.

It includes an error message and a map of fields.

func NewUnloadPluginNotFound

func NewUnloadPluginNotFound() *UnloadPluginNotFound

NewUnloadPluginNotFound creates a UnloadPluginNotFound with default headers values

func (*UnloadPluginNotFound) Error

func (o *UnloadPluginNotFound) Error() string

type UnloadPluginParams

type UnloadPluginParams struct {

	/*Pname*/
	Pname string
	/*Ptype*/
	Ptype string
	/*Pversion*/
	Pversion int64

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

UnloadPluginParams contains all the parameters to send to the API endpoint for the unload plugin operation typically these are written to a http.Request

func NewUnloadPluginParams

func NewUnloadPluginParams() *UnloadPluginParams

NewUnloadPluginParams creates a new UnloadPluginParams object with the default values initialized.

func NewUnloadPluginParamsWithContext

func NewUnloadPluginParamsWithContext(ctx context.Context) *UnloadPluginParams

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

func NewUnloadPluginParamsWithHTTPClient

func NewUnloadPluginParamsWithHTTPClient(client *http.Client) *UnloadPluginParams

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

func NewUnloadPluginParamsWithTimeout

func NewUnloadPluginParamsWithTimeout(timeout time.Duration) *UnloadPluginParams

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

func (*UnloadPluginParams) SetContext

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

SetContext adds the context to the unload plugin params

func (*UnloadPluginParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the unload plugin params

func (*UnloadPluginParams) SetPname

func (o *UnloadPluginParams) SetPname(pname string)

SetPname adds the pname to the unload plugin params

func (*UnloadPluginParams) SetPtype

func (o *UnloadPluginParams) SetPtype(ptype string)

SetPtype adds the ptype to the unload plugin params

func (*UnloadPluginParams) SetPversion

func (o *UnloadPluginParams) SetPversion(pversion int64)

SetPversion adds the pversion to the unload plugin params

func (*UnloadPluginParams) SetTimeout

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

SetTimeout adds the timeout to the unload plugin params

func (*UnloadPluginParams) WithContext

WithContext adds the context to the unload plugin params

func (*UnloadPluginParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the unload plugin params

func (*UnloadPluginParams) WithPname

func (o *UnloadPluginParams) WithPname(pname string) *UnloadPluginParams

WithPname adds the pname to the unload plugin params

func (*UnloadPluginParams) WithPtype

func (o *UnloadPluginParams) WithPtype(ptype string) *UnloadPluginParams

WithPtype adds the ptype to the unload plugin params

func (*UnloadPluginParams) WithPversion

func (o *UnloadPluginParams) WithPversion(pversion int64) *UnloadPluginParams

WithPversion adds the pversion to the unload plugin params

func (*UnloadPluginParams) WithTimeout

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

WithTimeout adds the timeout to the unload plugin params

func (*UnloadPluginParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type UnloadPluginReader

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

UnloadPluginReader is a Reader for the UnloadPlugin structure.

func (*UnloadPluginReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type UnloadPluginUnauthorized

type UnloadPluginUnauthorized struct {
	Payload *models.UnauthError
}

UnloadPluginUnauthorized handles this case with default header values.

UnauthResponse returns Unauthorized error struct message.

func NewUnloadPluginUnauthorized

func NewUnloadPluginUnauthorized() *UnloadPluginUnauthorized

NewUnloadPluginUnauthorized creates a UnloadPluginUnauthorized with default headers values

func (*UnloadPluginUnauthorized) Error

func (o *UnloadPluginUnauthorized) Error() string

Jump to

Keyboard shortcuts

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