Documentation
¶
Index ¶
- type Client
- func (a *Client) DeletePluginConfigItem(params *DeletePluginConfigItemParams, authInfo runtime.ClientAuthInfoWriter) (*DeletePluginConfigItemOK, error)
- func (a *Client) GetMetrics(params *GetMetricsParams, authInfo runtime.ClientAuthInfoWriter) (*GetMetricsOK, error)
- func (a *Client) GetPlugin(params *GetPluginParams, authInfo runtime.ClientAuthInfoWriter) (*GetPluginOK, error)
- func (a *Client) GetPluginConfigItem(params *GetPluginConfigItemParams, authInfo runtime.ClientAuthInfoWriter) (*GetPluginConfigItemOK, error)
- func (a *Client) GetPlugins(params *GetPluginsParams, authInfo runtime.ClientAuthInfoWriter) (*GetPluginsOK, error)
- func (a *Client) LoadPlugin(params *LoadPluginParams, authInfo runtime.ClientAuthInfoWriter) (*LoadPluginCreated, error)
- func (a *Client) SetPluginConfigItem(params *SetPluginConfigItemParams, authInfo runtime.ClientAuthInfoWriter) (*SetPluginConfigItemOK, error)
- func (a *Client) SetTransport(transport runtime.ClientTransport)
- func (a *Client) UnloadPlugin(params *UnloadPluginParams, authInfo runtime.ClientAuthInfoWriter) (*UnloadPluginNoContent, error)
- type DeletePluginConfigItemBadRequest
- type DeletePluginConfigItemOK
- type DeletePluginConfigItemParams
- func NewDeletePluginConfigItemParams() *DeletePluginConfigItemParams
- func NewDeletePluginConfigItemParamsWithContext(ctx context.Context) *DeletePluginConfigItemParams
- func NewDeletePluginConfigItemParamsWithHTTPClient(client *http.Client) *DeletePluginConfigItemParams
- func NewDeletePluginConfigItemParamsWithTimeout(timeout time.Duration) *DeletePluginConfigItemParams
- func (o *DeletePluginConfigItemParams) SetConfig(config []string)
- func (o *DeletePluginConfigItemParams) SetContext(ctx context.Context)
- func (o *DeletePluginConfigItemParams) SetHTTPClient(client *http.Client)
- func (o *DeletePluginConfigItemParams) SetPname(pname string)
- func (o *DeletePluginConfigItemParams) SetPtype(ptype string)
- func (o *DeletePluginConfigItemParams) SetPversion(pversion int64)
- func (o *DeletePluginConfigItemParams) SetTimeout(timeout time.Duration)
- func (o *DeletePluginConfigItemParams) WithConfig(config []string) *DeletePluginConfigItemParams
- func (o *DeletePluginConfigItemParams) WithContext(ctx context.Context) *DeletePluginConfigItemParams
- func (o *DeletePluginConfigItemParams) WithHTTPClient(client *http.Client) *DeletePluginConfigItemParams
- func (o *DeletePluginConfigItemParams) WithPname(pname string) *DeletePluginConfigItemParams
- func (o *DeletePluginConfigItemParams) WithPtype(ptype string) *DeletePluginConfigItemParams
- func (o *DeletePluginConfigItemParams) WithPversion(pversion int64) *DeletePluginConfigItemParams
- func (o *DeletePluginConfigItemParams) WithTimeout(timeout time.Duration) *DeletePluginConfigItemParams
- func (o *DeletePluginConfigItemParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type DeletePluginConfigItemReader
- type DeletePluginConfigItemUnauthorized
- type GetMetricsInternalServerError
- type GetMetricsNotFound
- type GetMetricsOK
- type GetMetricsOKBody
- type GetMetricsParams
- func (o *GetMetricsParams) SetContext(ctx context.Context)
- func (o *GetMetricsParams) SetHTTPClient(client *http.Client)
- func (o *GetMetricsParams) SetNs(ns *string)
- func (o *GetMetricsParams) SetTimeout(timeout time.Duration)
- func (o *GetMetricsParams) SetVer(ver *int64)
- func (o *GetMetricsParams) WithContext(ctx context.Context) *GetMetricsParams
- func (o *GetMetricsParams) WithHTTPClient(client *http.Client) *GetMetricsParams
- func (o *GetMetricsParams) WithNs(ns *string) *GetMetricsParams
- func (o *GetMetricsParams) WithTimeout(timeout time.Duration) *GetMetricsParams
- func (o *GetMetricsParams) WithVer(ver *int64) *GetMetricsParams
- func (o *GetMetricsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetMetricsReader
- type GetMetricsUnauthorized
- type GetPluginBadRequest
- type GetPluginConfigItemBadRequest
- type GetPluginConfigItemOK
- type GetPluginConfigItemParams
- func NewGetPluginConfigItemParams() *GetPluginConfigItemParams
- func NewGetPluginConfigItemParamsWithContext(ctx context.Context) *GetPluginConfigItemParams
- func NewGetPluginConfigItemParamsWithHTTPClient(client *http.Client) *GetPluginConfigItemParams
- func NewGetPluginConfigItemParamsWithTimeout(timeout time.Duration) *GetPluginConfigItemParams
- func (o *GetPluginConfigItemParams) SetContext(ctx context.Context)
- func (o *GetPluginConfigItemParams) SetHTTPClient(client *http.Client)
- func (o *GetPluginConfigItemParams) SetPname(pname string)
- func (o *GetPluginConfigItemParams) SetPtype(ptype string)
- func (o *GetPluginConfigItemParams) SetPversion(pversion int64)
- func (o *GetPluginConfigItemParams) SetTimeout(timeout time.Duration)
- func (o *GetPluginConfigItemParams) WithContext(ctx context.Context) *GetPluginConfigItemParams
- func (o *GetPluginConfigItemParams) WithHTTPClient(client *http.Client) *GetPluginConfigItemParams
- func (o *GetPluginConfigItemParams) WithPname(pname string) *GetPluginConfigItemParams
- func (o *GetPluginConfigItemParams) WithPtype(ptype string) *GetPluginConfigItemParams
- func (o *GetPluginConfigItemParams) WithPversion(pversion int64) *GetPluginConfigItemParams
- func (o *GetPluginConfigItemParams) WithTimeout(timeout time.Duration) *GetPluginConfigItemParams
- func (o *GetPluginConfigItemParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetPluginConfigItemReader
- type GetPluginConfigItemUnauthorized
- type GetPluginInternalServerError
- type GetPluginNotFound
- type GetPluginOK
- type GetPluginParams
- func (o *GetPluginParams) SetContext(ctx context.Context)
- func (o *GetPluginParams) SetHTTPClient(client *http.Client)
- func (o *GetPluginParams) SetPname(pname string)
- func (o *GetPluginParams) SetPtype(ptype string)
- func (o *GetPluginParams) SetPversion(pversion int64)
- func (o *GetPluginParams) SetTimeout(timeout time.Duration)
- func (o *GetPluginParams) WithContext(ctx context.Context) *GetPluginParams
- func (o *GetPluginParams) WithHTTPClient(client *http.Client) *GetPluginParams
- func (o *GetPluginParams) WithPname(pname string) *GetPluginParams
- func (o *GetPluginParams) WithPtype(ptype string) *GetPluginParams
- func (o *GetPluginParams) WithPversion(pversion int64) *GetPluginParams
- func (o *GetPluginParams) WithTimeout(timeout time.Duration) *GetPluginParams
- func (o *GetPluginParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetPluginReader
- type GetPluginUnauthorized
- type GetPluginsOK
- type GetPluginsOKBody
- type GetPluginsParams
- func (o *GetPluginsParams) SetContext(ctx context.Context)
- func (o *GetPluginsParams) SetHTTPClient(client *http.Client)
- func (o *GetPluginsParams) SetName(name *string)
- func (o *GetPluginsParams) SetRunning(running *bool)
- func (o *GetPluginsParams) SetTimeout(timeout time.Duration)
- func (o *GetPluginsParams) SetType(typeVar *string)
- func (o *GetPluginsParams) WithContext(ctx context.Context) *GetPluginsParams
- func (o *GetPluginsParams) WithHTTPClient(client *http.Client) *GetPluginsParams
- func (o *GetPluginsParams) WithName(name *string) *GetPluginsParams
- func (o *GetPluginsParams) WithRunning(running *bool) *GetPluginsParams
- func (o *GetPluginsParams) WithTimeout(timeout time.Duration) *GetPluginsParams
- func (o *GetPluginsParams) WithType(typeVar *string) *GetPluginsParams
- func (o *GetPluginsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetPluginsReader
- type GetPluginsUnauthorized
- type LoadPluginBadRequest
- type LoadPluginConflict
- type LoadPluginCreated
- type LoadPluginInternalServerError
- type LoadPluginParams
- func (o *LoadPluginParams) SetCaCerts(caCerts *string)
- func (o *LoadPluginParams) SetContext(ctx context.Context)
- func (o *LoadPluginParams) SetHTTPClient(client *http.Client)
- func (o *LoadPluginParams) SetPluginCert(pluginCert *string)
- func (o *LoadPluginParams) SetPluginData(pluginData *os.File)
- func (o *LoadPluginParams) SetPluginKey(pluginKey *string)
- func (o *LoadPluginParams) SetPluginURI(pluginURI *string)
- func (o *LoadPluginParams) SetTimeout(timeout time.Duration)
- func (o *LoadPluginParams) WithCaCerts(caCerts *string) *LoadPluginParams
- func (o *LoadPluginParams) WithContext(ctx context.Context) *LoadPluginParams
- func (o *LoadPluginParams) WithHTTPClient(client *http.Client) *LoadPluginParams
- func (o *LoadPluginParams) WithPluginCert(pluginCert *string) *LoadPluginParams
- func (o *LoadPluginParams) WithPluginData(pluginData *os.File) *LoadPluginParams
- func (o *LoadPluginParams) WithPluginKey(pluginKey *string) *LoadPluginParams
- func (o *LoadPluginParams) WithPluginURI(pluginURI *string) *LoadPluginParams
- func (o *LoadPluginParams) WithTimeout(timeout time.Duration) *LoadPluginParams
- func (o *LoadPluginParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type LoadPluginReader
- type LoadPluginUnauthorized
- type LoadPluginUnsupportedMediaType
- type SetPluginConfigItemBadRequest
- type SetPluginConfigItemOK
- type SetPluginConfigItemParams
- func NewSetPluginConfigItemParams() *SetPluginConfigItemParams
- func NewSetPluginConfigItemParamsWithContext(ctx context.Context) *SetPluginConfigItemParams
- func NewSetPluginConfigItemParamsWithHTTPClient(client *http.Client) *SetPluginConfigItemParams
- func NewSetPluginConfigItemParamsWithTimeout(timeout time.Duration) *SetPluginConfigItemParams
- func (o *SetPluginConfigItemParams) SetConfig(config interface{})
- func (o *SetPluginConfigItemParams) SetContext(ctx context.Context)
- func (o *SetPluginConfigItemParams) SetHTTPClient(client *http.Client)
- func (o *SetPluginConfigItemParams) SetPname(pname string)
- func (o *SetPluginConfigItemParams) SetPtype(ptype string)
- func (o *SetPluginConfigItemParams) SetPversion(pversion int64)
- func (o *SetPluginConfigItemParams) SetTimeout(timeout time.Duration)
- func (o *SetPluginConfigItemParams) WithConfig(config interface{}) *SetPluginConfigItemParams
- func (o *SetPluginConfigItemParams) WithContext(ctx context.Context) *SetPluginConfigItemParams
- func (o *SetPluginConfigItemParams) WithHTTPClient(client *http.Client) *SetPluginConfigItemParams
- func (o *SetPluginConfigItemParams) WithPname(pname string) *SetPluginConfigItemParams
- func (o *SetPluginConfigItemParams) WithPtype(ptype string) *SetPluginConfigItemParams
- func (o *SetPluginConfigItemParams) WithPversion(pversion int64) *SetPluginConfigItemParams
- func (o *SetPluginConfigItemParams) WithTimeout(timeout time.Duration) *SetPluginConfigItemParams
- func (o *SetPluginConfigItemParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type SetPluginConfigItemReader
- type SetPluginConfigItemUnauthorized
- type UnloadPluginBadRequest
- type UnloadPluginConflict
- type UnloadPluginInternalServerError
- type UnloadPluginNoContent
- type UnloadPluginNotFound
- type UnloadPluginParams
- func (o *UnloadPluginParams) SetContext(ctx context.Context)
- func (o *UnloadPluginParams) SetHTTPClient(client *http.Client)
- func (o *UnloadPluginParams) SetPname(pname string)
- func (o *UnloadPluginParams) SetPtype(ptype string)
- func (o *UnloadPluginParams) SetPversion(pversion int64)
- func (o *UnloadPluginParams) SetTimeout(timeout time.Duration)
- func (o *UnloadPluginParams) WithContext(ctx context.Context) *UnloadPluginParams
- func (o *UnloadPluginParams) WithHTTPClient(client *http.Client) *UnloadPluginParams
- func (o *UnloadPluginParams) WithPname(pname string) *UnloadPluginParams
- func (o *UnloadPluginParams) WithPtype(ptype string) *UnloadPluginParams
- func (o *UnloadPluginParams) WithPversion(pversion int64) *UnloadPluginParams
- func (o *UnloadPluginParams) WithTimeout(timeout time.Duration) *UnloadPluginParams
- func (o *UnloadPluginParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type UnloadPluginReader
- type UnloadPluginUnauthorized
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 ¶
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 ¶
func (o *DeletePluginConfigItemBadRequest) Error() string
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 ¶
func (o *DeletePluginConfigItemParams) WithConfig(config []string) *DeletePluginConfigItemParams
WithConfig adds the config to the delete plugin config item params
func (*DeletePluginConfigItemParams) WithContext ¶
func (o *DeletePluginConfigItemParams) WithContext(ctx context.Context) *DeletePluginConfigItemParams
WithContext adds the context to the delete plugin config item params
func (*DeletePluginConfigItemParams) WithHTTPClient ¶
func (o *DeletePluginConfigItemParams) WithHTTPClient(client *http.Client) *DeletePluginConfigItemParams
WithHTTPClient adds the HTTPClient to the delete plugin config item params
func (*DeletePluginConfigItemParams) WithPname ¶
func (o *DeletePluginConfigItemParams) WithPname(pname string) *DeletePluginConfigItemParams
WithPname adds the pname to the delete plugin config item params
func (*DeletePluginConfigItemParams) WithPtype ¶
func (o *DeletePluginConfigItemParams) WithPtype(ptype string) *DeletePluginConfigItemParams
WithPtype adds the ptype to the delete plugin config item params
func (*DeletePluginConfigItemParams) WithPversion ¶
func (o *DeletePluginConfigItemParams) WithPversion(pversion int64) *DeletePluginConfigItemParams
WithPversion adds the pversion to the delete plugin config item params
func (*DeletePluginConfigItemParams) WithTimeout ¶
func (o *DeletePluginConfigItemParams) WithTimeout(timeout time.Duration) *DeletePluginConfigItemParams
WithTimeout adds the timeout to the delete plugin config item params
func (*DeletePluginConfigItemParams) WriteToRequest ¶
func (o *DeletePluginConfigItemParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
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 {
}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 ¶
func (o *DeletePluginConfigItemUnauthorized) Error() string
type GetMetricsInternalServerError ¶
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 ¶
func (o *GetMetricsInternalServerError) Error() string
type GetMetricsNotFound ¶
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
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 {
}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 ¶
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 ¶
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 ¶
func (o *GetPluginConfigItemBadRequest) Error() string
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 ¶
func (o *GetPluginConfigItemParams) WithContext(ctx context.Context) *GetPluginConfigItemParams
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 ¶
func (o *GetPluginConfigItemParams) WithPname(pname string) *GetPluginConfigItemParams
WithPname adds the pname to the get plugin config item params
func (*GetPluginConfigItemParams) WithPtype ¶
func (o *GetPluginConfigItemParams) WithPtype(ptype string) *GetPluginConfigItemParams
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 ¶
func (o *GetPluginConfigItemParams) WithTimeout(timeout time.Duration) *GetPluginConfigItemParams
WithTimeout adds the timeout to the get plugin config item params
func (*GetPluginConfigItemParams) WriteToRequest ¶
func (o *GetPluginConfigItemParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
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 {
}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 ¶
func (o *GetPluginConfigItemUnauthorized) Error() string
type GetPluginInternalServerError ¶
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 ¶
func (o *GetPluginInternalServerError) Error() string
type GetPluginNotFound ¶
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 ¶
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 {
}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
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 {
}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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
func (o *LoadPluginInternalServerError) Error() string
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 {
}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 ¶
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 ¶
func (o *LoadPluginUnsupportedMediaType) Error() string
type SetPluginConfigItemBadRequest ¶
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 ¶
func (o *SetPluginConfigItemBadRequest) Error() string
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 ¶
func (o *SetPluginConfigItemParams) WithContext(ctx context.Context) *SetPluginConfigItemParams
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 ¶
func (o *SetPluginConfigItemParams) WithPname(pname string) *SetPluginConfigItemParams
WithPname adds the pname to the set plugin config item params
func (*SetPluginConfigItemParams) WithPtype ¶
func (o *SetPluginConfigItemParams) WithPtype(ptype string) *SetPluginConfigItemParams
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 ¶
func (o *SetPluginConfigItemParams) WithTimeout(timeout time.Duration) *SetPluginConfigItemParams
WithTimeout adds the timeout to the set plugin config item params
func (*SetPluginConfigItemParams) WriteToRequest ¶
func (o *SetPluginConfigItemParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
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 {
}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 ¶
func (o *SetPluginConfigItemUnauthorized) Error() string
type UnloadPluginBadRequest ¶
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 ¶
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 ¶
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 ¶
func (o *UnloadPluginInternalServerError) Error() string
type UnloadPluginNoContent ¶
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 ¶
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 ¶
func (o *UnloadPluginParams) WithContext(ctx context.Context) *UnloadPluginParams
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 {
}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
Source Files
¶
- delete_plugin_config_item_parameters.go
- delete_plugin_config_item_responses.go
- get_metrics_parameters.go
- get_metrics_responses.go
- get_plugin_config_item_parameters.go
- get_plugin_config_item_responses.go
- get_plugin_parameters.go
- get_plugin_responses.go
- get_plugins_parameters.go
- get_plugins_responses.go
- load_plugin_parameters.go
- load_plugin_responses.go
- plugins_client.go
- set_plugin_config_item_parameters.go
- set_plugin_config_item_responses.go
- unload_plugin_parameters.go
- unload_plugin_responses.go