agents

package
v0.0.0-...-3e1e694 Latest Latest
Warning

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

Go to latest
Published: Aug 24, 2022 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

Client for agents API

func (*Client) GetAgentConfig

func (a *Client) GetAgentConfig(params *GetAgentConfigParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetAgentConfigOK, error)

GetAgentConfig gets agent config

func (*Client) GetCommands

func (a *Client) GetCommands(params *GetCommandsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetCommandsOK, error)

GetCommands gets agent and sub devices active commands

func (*Client) PatchAgentCommandStatus

func (a *Client) PatchAgentCommandStatus(params *PatchAgentCommandStatusParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*PatchAgentCommandStatusOK, error)

PatchAgentCommandStatus patches agent command status

func (*Client) SetTransport

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

SetTransport changes the transport on the client

type ClientOption

type ClientOption func(*runtime.ClientOperation)

ClientOption is the option for Client methods

type ClientService

type ClientService interface {
	GetAgentConfig(params *GetAgentConfigParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetAgentConfigOK, error)

	GetCommands(params *GetCommandsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetCommandsOK, error)

	PatchAgentCommandStatus(params *PatchAgentCommandStatusParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*PatchAgentCommandStatusOK, error)

	SetTransport(transport runtime.ClientTransport)
}

ClientService is the interface for Client methods

func New

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

New creates a new agents API client.

type GetAgentConfigBadRequest

type GetAgentConfigBadRequest struct {
	Payload *models.ErrorResponse
}
GetAgentConfigBadRequest describes a response with status code 400, with default header values.

Bad params suplied

func NewGetAgentConfigBadRequest

func NewGetAgentConfigBadRequest() *GetAgentConfigBadRequest

NewGetAgentConfigBadRequest creates a GetAgentConfigBadRequest with default headers values

func (*GetAgentConfigBadRequest) Error

func (o *GetAgentConfigBadRequest) Error() string

func (*GetAgentConfigBadRequest) GetPayload

type GetAgentConfigInternalServerError

type GetAgentConfigInternalServerError struct {
	Payload *models.ErrorResponse
}
GetAgentConfigInternalServerError describes a response with status code 500, with default header values.

Internal server error

func NewGetAgentConfigInternalServerError

func NewGetAgentConfigInternalServerError() *GetAgentConfigInternalServerError

NewGetAgentConfigInternalServerError creates a GetAgentConfigInternalServerError with default headers values

func (*GetAgentConfigInternalServerError) Error

func (*GetAgentConfigInternalServerError) GetPayload

type GetAgentConfigNotFound

type GetAgentConfigNotFound struct {
	Payload *models.ErrorResponse
}
GetAgentConfigNotFound describes a response with status code 404, with default header values.

Tag not found

func NewGetAgentConfigNotFound

func NewGetAgentConfigNotFound() *GetAgentConfigNotFound

NewGetAgentConfigNotFound creates a GetAgentConfigNotFound with default headers values

func (*GetAgentConfigNotFound) Error

func (o *GetAgentConfigNotFound) Error() string

func (*GetAgentConfigNotFound) GetPayload

func (o *GetAgentConfigNotFound) GetPayload() *models.ErrorResponse

type GetAgentConfigOK

type GetAgentConfigOK struct {
	Payload *models.ConfigObject
}
GetAgentConfigOK describes a response with status code 200, with default header values.

OK

func NewGetAgentConfigOK

func NewGetAgentConfigOK() *GetAgentConfigOK

NewGetAgentConfigOK creates a GetAgentConfigOK with default headers values

func (*GetAgentConfigOK) Error

func (o *GetAgentConfigOK) Error() string

func (*GetAgentConfigOK) GetPayload

func (o *GetAgentConfigOK) GetPayload() *models.ConfigObject

type GetAgentConfigParams

type GetAgentConfigParams struct {

	// Version.
	Version *string

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

GetAgentConfigParams contains all the parameters to send to the API endpoint

for the get agent config operation.

Typically these are written to a http.Request.

func NewGetAgentConfigParams

func NewGetAgentConfigParams() *GetAgentConfigParams

NewGetAgentConfigParams creates a new GetAgentConfigParams object, with the default timeout for this client.

Default values are not hydrated, since defaults are normally applied by the API server side.

To enforce default values in parameter, use SetDefaults or WithDefaults.

func NewGetAgentConfigParamsWithContext

func NewGetAgentConfigParamsWithContext(ctx context.Context) *GetAgentConfigParams

NewGetAgentConfigParamsWithContext creates a new GetAgentConfigParams object with the ability to set a context for a request.

func NewGetAgentConfigParamsWithHTTPClient

func NewGetAgentConfigParamsWithHTTPClient(client *http.Client) *GetAgentConfigParams

NewGetAgentConfigParamsWithHTTPClient creates a new GetAgentConfigParams object with the ability to set a custom HTTPClient for a request.

func NewGetAgentConfigParamsWithTimeout

func NewGetAgentConfigParamsWithTimeout(timeout time.Duration) *GetAgentConfigParams

NewGetAgentConfigParamsWithTimeout creates a new GetAgentConfigParams object with the ability to set a timeout on a request.

func (*GetAgentConfigParams) SetContext

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

SetContext adds the context to the get agent config params

func (*GetAgentConfigParams) SetDefaults

func (o *GetAgentConfigParams) SetDefaults()

SetDefaults hydrates default values in the get agent config params (not the query body).

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

func (*GetAgentConfigParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get agent config params

func (*GetAgentConfigParams) SetTimeout

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

SetTimeout adds the timeout to the get agent config params

func (*GetAgentConfigParams) SetVersion

func (o *GetAgentConfigParams) SetVersion(version *string)

SetVersion adds the version to the get agent config params

func (*GetAgentConfigParams) WithContext

WithContext adds the context to the get agent config params

func (*GetAgentConfigParams) WithDefaults

func (o *GetAgentConfigParams) WithDefaults() *GetAgentConfigParams

WithDefaults hydrates default values in the get agent config params (not the query body).

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

func (*GetAgentConfigParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get agent config params

func (*GetAgentConfigParams) WithTimeout

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

WithTimeout adds the timeout to the get agent config params

func (*GetAgentConfigParams) WithVersion

func (o *GetAgentConfigParams) WithVersion(version *string) *GetAgentConfigParams

WithVersion adds the version to the get agent config params

func (*GetAgentConfigParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type GetAgentConfigReader

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

GetAgentConfigReader is a Reader for the GetAgentConfig structure.

func (*GetAgentConfigReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetAgentConfigTooManyRequests

type GetAgentConfigTooManyRequests struct {
	Payload *models.ErrorResponse
}
GetAgentConfigTooManyRequests describes a response with status code 429, with default header values.

Too Many Requests

func NewGetAgentConfigTooManyRequests

func NewGetAgentConfigTooManyRequests() *GetAgentConfigTooManyRequests

NewGetAgentConfigTooManyRequests creates a GetAgentConfigTooManyRequests with default headers values

func (*GetAgentConfigTooManyRequests) Error

func (*GetAgentConfigTooManyRequests) GetPayload

type GetAgentConfigUnauthorized

type GetAgentConfigUnauthorized struct {
	Payload *models.ErrorResponse
}
GetAgentConfigUnauthorized describes a response with status code 401, with default header values.

Unauthorized

func NewGetAgentConfigUnauthorized

func NewGetAgentConfigUnauthorized() *GetAgentConfigUnauthorized

NewGetAgentConfigUnauthorized creates a GetAgentConfigUnauthorized with default headers values

func (*GetAgentConfigUnauthorized) Error

func (*GetAgentConfigUnauthorized) GetPayload

type GetCommandsBadRequest

type GetCommandsBadRequest struct {
	Payload *models.ErrorResponse
}
GetCommandsBadRequest describes a response with status code 400, with default header values.

Bad params suplied

func NewGetCommandsBadRequest

func NewGetCommandsBadRequest() *GetCommandsBadRequest

NewGetCommandsBadRequest creates a GetCommandsBadRequest with default headers values

func (*GetCommandsBadRequest) Error

func (o *GetCommandsBadRequest) Error() string

func (*GetCommandsBadRequest) GetPayload

func (o *GetCommandsBadRequest) GetPayload() *models.ErrorResponse

type GetCommandsInternalServerError

type GetCommandsInternalServerError struct {
	Payload *models.ErrorResponse
}
GetCommandsInternalServerError describes a response with status code 500, with default header values.

Internal server error

func NewGetCommandsInternalServerError

func NewGetCommandsInternalServerError() *GetCommandsInternalServerError

NewGetCommandsInternalServerError creates a GetCommandsInternalServerError with default headers values

func (*GetCommandsInternalServerError) Error

func (*GetCommandsInternalServerError) GetPayload

type GetCommandsNotFound

type GetCommandsNotFound struct {
	Payload *models.ErrorResponse
}
GetCommandsNotFound describes a response with status code 404, with default header values.

Tag not found

func NewGetCommandsNotFound

func NewGetCommandsNotFound() *GetCommandsNotFound

NewGetCommandsNotFound creates a GetCommandsNotFound with default headers values

func (*GetCommandsNotFound) Error

func (o *GetCommandsNotFound) Error() string

func (*GetCommandsNotFound) GetPayload

func (o *GetCommandsNotFound) GetPayload() *models.ErrorResponse

type GetCommandsOK

type GetCommandsOK struct {
	Payload *models.AgentDevicesCommandsObject
}
GetCommandsOK describes a response with status code 200, with default header values.

OK

func NewGetCommandsOK

func NewGetCommandsOK() *GetCommandsOK

NewGetCommandsOK creates a GetCommandsOK with default headers values

func (*GetCommandsOK) Error

func (o *GetCommandsOK) Error() string

func (*GetCommandsOK) GetPayload

type GetCommandsParams

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

GetCommandsParams contains all the parameters to send to the API endpoint

for the get commands operation.

Typically these are written to a http.Request.

func NewGetCommandsParams

func NewGetCommandsParams() *GetCommandsParams

NewGetCommandsParams creates a new GetCommandsParams object, with the default timeout for this client.

Default values are not hydrated, since defaults are normally applied by the API server side.

To enforce default values in parameter, use SetDefaults or WithDefaults.

func NewGetCommandsParamsWithContext

func NewGetCommandsParamsWithContext(ctx context.Context) *GetCommandsParams

NewGetCommandsParamsWithContext creates a new GetCommandsParams object with the ability to set a context for a request.

func NewGetCommandsParamsWithHTTPClient

func NewGetCommandsParamsWithHTTPClient(client *http.Client) *GetCommandsParams

NewGetCommandsParamsWithHTTPClient creates a new GetCommandsParams object with the ability to set a custom HTTPClient for a request.

func NewGetCommandsParamsWithTimeout

func NewGetCommandsParamsWithTimeout(timeout time.Duration) *GetCommandsParams

NewGetCommandsParamsWithTimeout creates a new GetCommandsParams object with the ability to set a timeout on a request.

func (*GetCommandsParams) SetContext

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

SetContext adds the context to the get commands params

func (*GetCommandsParams) SetDefaults

func (o *GetCommandsParams) SetDefaults()

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

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

func (*GetCommandsParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get commands params

func (*GetCommandsParams) SetTimeout

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

SetTimeout adds the timeout to the get commands params

func (*GetCommandsParams) WithContext

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

WithContext adds the context to the get commands params

func (*GetCommandsParams) WithDefaults

func (o *GetCommandsParams) WithDefaults() *GetCommandsParams

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

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

func (*GetCommandsParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get commands params

func (*GetCommandsParams) WithTimeout

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

WithTimeout adds the timeout to the get commands params

func (*GetCommandsParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type GetCommandsReader

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

GetCommandsReader is a Reader for the GetCommands structure.

func (*GetCommandsReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetCommandsTooManyRequests

type GetCommandsTooManyRequests struct {
	Payload *models.ErrorResponse
}
GetCommandsTooManyRequests describes a response with status code 429, with default header values.

Too Many Requests

func NewGetCommandsTooManyRequests

func NewGetCommandsTooManyRequests() *GetCommandsTooManyRequests

NewGetCommandsTooManyRequests creates a GetCommandsTooManyRequests with default headers values

func (*GetCommandsTooManyRequests) Error

func (*GetCommandsTooManyRequests) GetPayload

type GetCommandsUnauthorized

type GetCommandsUnauthorized struct {
	Payload *models.ErrorResponse
}
GetCommandsUnauthorized describes a response with status code 401, with default header values.

Unauthorized

func NewGetCommandsUnauthorized

func NewGetCommandsUnauthorized() *GetCommandsUnauthorized

NewGetCommandsUnauthorized creates a GetCommandsUnauthorized with default headers values

func (*GetCommandsUnauthorized) Error

func (o *GetCommandsUnauthorized) Error() string

func (*GetCommandsUnauthorized) GetPayload

func (o *GetCommandsUnauthorized) GetPayload() *models.ErrorResponse

type PatchAgentCommandStatusBadRequest

type PatchAgentCommandStatusBadRequest struct {
	Payload *models.ErrorResponse
}
PatchAgentCommandStatusBadRequest describes a response with status code 400, with default header values.

Bad params suplied

func NewPatchAgentCommandStatusBadRequest

func NewPatchAgentCommandStatusBadRequest() *PatchAgentCommandStatusBadRequest

NewPatchAgentCommandStatusBadRequest creates a PatchAgentCommandStatusBadRequest with default headers values

func (*PatchAgentCommandStatusBadRequest) Error

func (*PatchAgentCommandStatusBadRequest) GetPayload

type PatchAgentCommandStatusInternalServerError

type PatchAgentCommandStatusInternalServerError struct {
	Payload *models.ErrorResponse
}
PatchAgentCommandStatusInternalServerError describes a response with status code 500, with default header values.

Internal server error

func NewPatchAgentCommandStatusInternalServerError

func NewPatchAgentCommandStatusInternalServerError() *PatchAgentCommandStatusInternalServerError

NewPatchAgentCommandStatusInternalServerError creates a PatchAgentCommandStatusInternalServerError with default headers values

func (*PatchAgentCommandStatusInternalServerError) Error

func (*PatchAgentCommandStatusInternalServerError) GetPayload

type PatchAgentCommandStatusNotFound

type PatchAgentCommandStatusNotFound struct {
	Payload *models.ErrorResponse
}
PatchAgentCommandStatusNotFound describes a response with status code 404, with default header values.

Tag not found

func NewPatchAgentCommandStatusNotFound

func NewPatchAgentCommandStatusNotFound() *PatchAgentCommandStatusNotFound

NewPatchAgentCommandStatusNotFound creates a PatchAgentCommandStatusNotFound with default headers values

func (*PatchAgentCommandStatusNotFound) Error

func (*PatchAgentCommandStatusNotFound) GetPayload

type PatchAgentCommandStatusOK

type PatchAgentCommandStatusOK struct {
}
PatchAgentCommandStatusOK describes a response with status code 200, with default header values.

OK

func NewPatchAgentCommandStatusOK

func NewPatchAgentCommandStatusOK() *PatchAgentCommandStatusOK

NewPatchAgentCommandStatusOK creates a PatchAgentCommandStatusOK with default headers values

func (*PatchAgentCommandStatusOK) Error

func (o *PatchAgentCommandStatusOK) Error() string

type PatchAgentCommandStatusParams

type PatchAgentCommandStatusParams struct {

	/* AgentID.

	   Agent ID
	*/
	AgentID int64

	// Body.
	Body *models.PatchCommandStatus

	/* CommandID.

	   Command ID
	*/
	CommandID string

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

PatchAgentCommandStatusParams contains all the parameters to send to the API endpoint

for the patch agent command status operation.

Typically these are written to a http.Request.

func NewPatchAgentCommandStatusParams

func NewPatchAgentCommandStatusParams() *PatchAgentCommandStatusParams

NewPatchAgentCommandStatusParams creates a new PatchAgentCommandStatusParams object, with the default timeout for this client.

Default values are not hydrated, since defaults are normally applied by the API server side.

To enforce default values in parameter, use SetDefaults or WithDefaults.

func NewPatchAgentCommandStatusParamsWithContext

func NewPatchAgentCommandStatusParamsWithContext(ctx context.Context) *PatchAgentCommandStatusParams

NewPatchAgentCommandStatusParamsWithContext creates a new PatchAgentCommandStatusParams object with the ability to set a context for a request.

func NewPatchAgentCommandStatusParamsWithHTTPClient

func NewPatchAgentCommandStatusParamsWithHTTPClient(client *http.Client) *PatchAgentCommandStatusParams

NewPatchAgentCommandStatusParamsWithHTTPClient creates a new PatchAgentCommandStatusParams object with the ability to set a custom HTTPClient for a request.

func NewPatchAgentCommandStatusParamsWithTimeout

func NewPatchAgentCommandStatusParamsWithTimeout(timeout time.Duration) *PatchAgentCommandStatusParams

NewPatchAgentCommandStatusParamsWithTimeout creates a new PatchAgentCommandStatusParams object with the ability to set a timeout on a request.

func (*PatchAgentCommandStatusParams) SetAgentID

func (o *PatchAgentCommandStatusParams) SetAgentID(agentID int64)

SetAgentID adds the agentId to the patch agent command status params

func (*PatchAgentCommandStatusParams) SetBody

SetBody adds the body to the patch agent command status params

func (*PatchAgentCommandStatusParams) SetCommandID

func (o *PatchAgentCommandStatusParams) SetCommandID(commandID string)

SetCommandID adds the commandId to the patch agent command status params

func (*PatchAgentCommandStatusParams) SetContext

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

SetContext adds the context to the patch agent command status params

func (*PatchAgentCommandStatusParams) SetDefaults

func (o *PatchAgentCommandStatusParams) SetDefaults()

SetDefaults hydrates default values in the patch agent command status params (not the query body).

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

func (*PatchAgentCommandStatusParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the patch agent command status params

func (*PatchAgentCommandStatusParams) SetTimeout

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

SetTimeout adds the timeout to the patch agent command status params

func (*PatchAgentCommandStatusParams) WithAgentID

WithAgentID adds the agentID to the patch agent command status params

func (*PatchAgentCommandStatusParams) WithBody

WithBody adds the body to the patch agent command status params

func (*PatchAgentCommandStatusParams) WithCommandID

WithCommandID adds the commandID to the patch agent command status params

func (*PatchAgentCommandStatusParams) WithContext

WithContext adds the context to the patch agent command status params

func (*PatchAgentCommandStatusParams) WithDefaults

WithDefaults hydrates default values in the patch agent command status params (not the query body).

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

func (*PatchAgentCommandStatusParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the patch agent command status params

func (*PatchAgentCommandStatusParams) WithTimeout

WithTimeout adds the timeout to the patch agent command status params

func (*PatchAgentCommandStatusParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type PatchAgentCommandStatusReader

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

PatchAgentCommandStatusReader is a Reader for the PatchAgentCommandStatus structure.

func (*PatchAgentCommandStatusReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type PatchAgentCommandStatusTooManyRequests

type PatchAgentCommandStatusTooManyRequests struct {
	Payload *models.ErrorResponse
}
PatchAgentCommandStatusTooManyRequests describes a response with status code 429, with default header values.

Too Many Requests

func NewPatchAgentCommandStatusTooManyRequests

func NewPatchAgentCommandStatusTooManyRequests() *PatchAgentCommandStatusTooManyRequests

NewPatchAgentCommandStatusTooManyRequests creates a PatchAgentCommandStatusTooManyRequests with default headers values

func (*PatchAgentCommandStatusTooManyRequests) Error

func (*PatchAgentCommandStatusTooManyRequests) GetPayload

type PatchAgentCommandStatusUnauthorized

type PatchAgentCommandStatusUnauthorized struct {
	Payload *models.ErrorResponse
}
PatchAgentCommandStatusUnauthorized describes a response with status code 401, with default header values.

Unauthorized

func NewPatchAgentCommandStatusUnauthorized

func NewPatchAgentCommandStatusUnauthorized() *PatchAgentCommandStatusUnauthorized

NewPatchAgentCommandStatusUnauthorized creates a PatchAgentCommandStatusUnauthorized with default headers values

func (*PatchAgentCommandStatusUnauthorized) Error

func (*PatchAgentCommandStatusUnauthorized) GetPayload

Jump to

Keyboard shortcuts

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