Documentation
¶
Index ¶
- type Client
- func (a *Client) GetAgents(params *GetAgentsParams, authInfo runtime.ClientAuthInfoWriter, ...) (*GetAgentsOK, error)
- func (a *Client) GetAgentsAgentHost(params *GetAgentsAgentHostParams, authInfo runtime.ClientAuthInfoWriter, ...) (*GetAgentsAgentHostOK, error)
- func (a *Client) SetTransport(transport runtime.ClientTransport)
- type ClientOption
- type ClientService
- type GetAgentsAgentHostForbidden
- func (o *GetAgentsAgentHostForbidden) Code() int
- func (o *GetAgentsAgentHostForbidden) Error() string
- func (o *GetAgentsAgentHostForbidden) IsClientError() bool
- func (o *GetAgentsAgentHostForbidden) IsCode(code int) bool
- func (o *GetAgentsAgentHostForbidden) IsRedirect() bool
- func (o *GetAgentsAgentHostForbidden) IsServerError() bool
- func (o *GetAgentsAgentHostForbidden) IsSuccess() bool
- func (o *GetAgentsAgentHostForbidden) String() string
- type GetAgentsAgentHostNotFound
- func (o *GetAgentsAgentHostNotFound) Code() int
- func (o *GetAgentsAgentHostNotFound) Error() string
- func (o *GetAgentsAgentHostNotFound) GetPayload() *models.Error
- func (o *GetAgentsAgentHostNotFound) IsClientError() bool
- func (o *GetAgentsAgentHostNotFound) IsCode(code int) bool
- func (o *GetAgentsAgentHostNotFound) IsRedirect() bool
- func (o *GetAgentsAgentHostNotFound) IsServerError() bool
- func (o *GetAgentsAgentHostNotFound) IsSuccess() bool
- func (o *GetAgentsAgentHostNotFound) String() string
- type GetAgentsAgentHostOK
- func (o *GetAgentsAgentHostOK) Code() int
- func (o *GetAgentsAgentHostOK) Error() string
- func (o *GetAgentsAgentHostOK) GetPayload() *models.Agent
- func (o *GetAgentsAgentHostOK) IsClientError() bool
- func (o *GetAgentsAgentHostOK) IsCode(code int) bool
- func (o *GetAgentsAgentHostOK) IsRedirect() bool
- func (o *GetAgentsAgentHostOK) IsServerError() bool
- func (o *GetAgentsAgentHostOK) IsSuccess() bool
- func (o *GetAgentsAgentHostOK) String() string
- type GetAgentsAgentHostParams
- func NewGetAgentsAgentHostParams() *GetAgentsAgentHostParams
- func NewGetAgentsAgentHostParamsWithContext(ctx context.Context) *GetAgentsAgentHostParams
- func NewGetAgentsAgentHostParamsWithHTTPClient(client *http.Client) *GetAgentsAgentHostParams
- func NewGetAgentsAgentHostParamsWithTimeout(timeout time.Duration) *GetAgentsAgentHostParams
- func (o *GetAgentsAgentHostParams) SetAgentHost(agentHost string)
- func (o *GetAgentsAgentHostParams) SetContext(ctx context.Context)
- func (o *GetAgentsAgentHostParams) SetDefaults()
- func (o *GetAgentsAgentHostParams) SetHTTPClient(client *http.Client)
- func (o *GetAgentsAgentHostParams) SetTimeout(timeout time.Duration)
- func (o *GetAgentsAgentHostParams) WithAgentHost(agentHost string) *GetAgentsAgentHostParams
- func (o *GetAgentsAgentHostParams) WithContext(ctx context.Context) *GetAgentsAgentHostParams
- func (o *GetAgentsAgentHostParams) WithDefaults() *GetAgentsAgentHostParams
- func (o *GetAgentsAgentHostParams) WithHTTPClient(client *http.Client) *GetAgentsAgentHostParams
- func (o *GetAgentsAgentHostParams) WithTimeout(timeout time.Duration) *GetAgentsAgentHostParams
- func (o *GetAgentsAgentHostParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetAgentsAgentHostReader
- type GetAgentsAgentHostUnauthorized
- func (o *GetAgentsAgentHostUnauthorized) Code() int
- func (o *GetAgentsAgentHostUnauthorized) Error() string
- func (o *GetAgentsAgentHostUnauthorized) GetPayload() *models.Error
- func (o *GetAgentsAgentHostUnauthorized) IsClientError() bool
- func (o *GetAgentsAgentHostUnauthorized) IsCode(code int) bool
- func (o *GetAgentsAgentHostUnauthorized) IsRedirect() bool
- func (o *GetAgentsAgentHostUnauthorized) IsServerError() bool
- func (o *GetAgentsAgentHostUnauthorized) IsSuccess() bool
- func (o *GetAgentsAgentHostUnauthorized) String() string
- type GetAgentsAgentHostUnprocessableEntity
- func (o *GetAgentsAgentHostUnprocessableEntity) Code() int
- func (o *GetAgentsAgentHostUnprocessableEntity) Error() string
- func (o *GetAgentsAgentHostUnprocessableEntity) GetPayload() *models.Error
- func (o *GetAgentsAgentHostUnprocessableEntity) IsClientError() bool
- func (o *GetAgentsAgentHostUnprocessableEntity) IsCode(code int) bool
- func (o *GetAgentsAgentHostUnprocessableEntity) IsRedirect() bool
- func (o *GetAgentsAgentHostUnprocessableEntity) IsServerError() bool
- func (o *GetAgentsAgentHostUnprocessableEntity) IsSuccess() bool
- func (o *GetAgentsAgentHostUnprocessableEntity) String() string
- type GetAgentsBadRequest
- func (o *GetAgentsBadRequest) Code() int
- func (o *GetAgentsBadRequest) Error() string
- func (o *GetAgentsBadRequest) GetPayload() *models.Error
- func (o *GetAgentsBadRequest) IsClientError() bool
- func (o *GetAgentsBadRequest) IsCode(code int) bool
- func (o *GetAgentsBadRequest) IsRedirect() bool
- func (o *GetAgentsBadRequest) IsServerError() bool
- func (o *GetAgentsBadRequest) IsSuccess() bool
- func (o *GetAgentsBadRequest) String() string
- type GetAgentsForbidden
- func (o *GetAgentsForbidden) Code() int
- func (o *GetAgentsForbidden) Error() string
- func (o *GetAgentsForbidden) IsClientError() bool
- func (o *GetAgentsForbidden) IsCode(code int) bool
- func (o *GetAgentsForbidden) IsRedirect() bool
- func (o *GetAgentsForbidden) IsServerError() bool
- func (o *GetAgentsForbidden) IsSuccess() bool
- func (o *GetAgentsForbidden) String() string
- type GetAgentsOK
- func (o *GetAgentsOK) Code() int
- func (o *GetAgentsOK) Error() string
- func (o *GetAgentsOK) GetPayload() *GetAgentsOKBody
- func (o *GetAgentsOK) IsClientError() bool
- func (o *GetAgentsOK) IsCode(code int) bool
- func (o *GetAgentsOK) IsRedirect() bool
- func (o *GetAgentsOK) IsServerError() bool
- func (o *GetAgentsOK) IsSuccess() bool
- func (o *GetAgentsOK) String() string
- type GetAgentsOKBody
- type GetAgentsParams
- func (o *GetAgentsParams) SetContext(ctx context.Context)
- func (o *GetAgentsParams) SetDefaults()
- func (o *GetAgentsParams) SetHTTPClient(client *http.Client)
- func (o *GetAgentsParams) SetTimeout(timeout time.Duration)
- func (o *GetAgentsParams) WithContext(ctx context.Context) *GetAgentsParams
- func (o *GetAgentsParams) WithDefaults() *GetAgentsParams
- func (o *GetAgentsParams) WithHTTPClient(client *http.Client) *GetAgentsParams
- func (o *GetAgentsParams) WithTimeout(timeout time.Duration) *GetAgentsParams
- func (o *GetAgentsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetAgentsReader
- type GetAgentsUnauthorized
- func (o *GetAgentsUnauthorized) Code() int
- func (o *GetAgentsUnauthorized) Error() string
- func (o *GetAgentsUnauthorized) GetPayload() *models.Error
- func (o *GetAgentsUnauthorized) IsClientError() bool
- func (o *GetAgentsUnauthorized) IsCode(code int) bool
- func (o *GetAgentsUnauthorized) IsRedirect() bool
- func (o *GetAgentsUnauthorized) IsServerError() bool
- func (o *GetAgentsUnauthorized) IsSuccess() bool
- func (o *GetAgentsUnauthorized) String() string
- type GetAgentsUnprocessableEntity
- func (o *GetAgentsUnprocessableEntity) Code() int
- func (o *GetAgentsUnprocessableEntity) Error() string
- func (o *GetAgentsUnprocessableEntity) GetPayload() *models.Error
- func (o *GetAgentsUnprocessableEntity) IsClientError() bool
- func (o *GetAgentsUnprocessableEntity) IsCode(code int) bool
- func (o *GetAgentsUnprocessableEntity) IsRedirect() bool
- func (o *GetAgentsUnprocessableEntity) IsServerError() bool
- func (o *GetAgentsUnprocessableEntity) IsSuccess() bool
- func (o *GetAgentsUnprocessableEntity) String() string
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 agent API
func (*Client) GetAgents ¶
func (a *Client) GetAgents(params *GetAgentsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetAgentsOK, error)
GetAgents lists agents
Lists all registered Archer agents. This is an administrative endpoint.
func (*Client) GetAgentsAgentHost ¶
func (a *Client) GetAgentsAgentHost(params *GetAgentsAgentHostParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetAgentsAgentHostOK, error)
GetAgentsAgentHost shows agent details
Shows details for a specific agent.
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 may be used to customize the behavior of Client methods.
type ClientService ¶
type ClientService interface {
GetAgents(params *GetAgentsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetAgentsOK, error)
GetAgentsAgentHost(params *GetAgentsAgentHostParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetAgentsAgentHostOK, 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 agent API client.
func NewClientWithBasicAuth ¶
func NewClientWithBasicAuth(host, basePath, scheme, user, password string) ClientService
New creates a new agent API client with basic auth credentials. It takes the following parameters: - host: http host (github.com). - basePath: any base path for the API client ("/v1", "/v3"). - scheme: http scheme ("http", "https"). - user: user for basic authentication header. - password: password for basic authentication header.
func NewClientWithBearerToken ¶
func NewClientWithBearerToken(host, basePath, scheme, bearerToken string) ClientService
New creates a new agent API client with a bearer token for authentication. It takes the following parameters: - host: http host (github.com). - basePath: any base path for the API client ("/v1", "/v3"). - scheme: http scheme ("http", "https"). - bearerToken: bearer token for Bearer authentication header.
type GetAgentsAgentHostForbidden ¶
type GetAgentsAgentHostForbidden struct {
}
GetAgentsAgentHostForbidden describes a response with status code 403, with default header values.
Forbidden
func NewGetAgentsAgentHostForbidden ¶
func NewGetAgentsAgentHostForbidden() *GetAgentsAgentHostForbidden
NewGetAgentsAgentHostForbidden creates a GetAgentsAgentHostForbidden with default headers values
func (*GetAgentsAgentHostForbidden) Code ¶
func (o *GetAgentsAgentHostForbidden) Code() int
Code gets the status code for the get agents agent host forbidden response
func (*GetAgentsAgentHostForbidden) Error ¶
func (o *GetAgentsAgentHostForbidden) Error() string
func (*GetAgentsAgentHostForbidden) IsClientError ¶
func (o *GetAgentsAgentHostForbidden) IsClientError() bool
IsClientError returns true when this get agents agent host forbidden response has a 4xx status code
func (*GetAgentsAgentHostForbidden) IsCode ¶
func (o *GetAgentsAgentHostForbidden) IsCode(code int) bool
IsCode returns true when this get agents agent host forbidden response a status code equal to that given
func (*GetAgentsAgentHostForbidden) IsRedirect ¶
func (o *GetAgentsAgentHostForbidden) IsRedirect() bool
IsRedirect returns true when this get agents agent host forbidden response has a 3xx status code
func (*GetAgentsAgentHostForbidden) IsServerError ¶
func (o *GetAgentsAgentHostForbidden) IsServerError() bool
IsServerError returns true when this get agents agent host forbidden response has a 5xx status code
func (*GetAgentsAgentHostForbidden) IsSuccess ¶
func (o *GetAgentsAgentHostForbidden) IsSuccess() bool
IsSuccess returns true when this get agents agent host forbidden response has a 2xx status code
func (*GetAgentsAgentHostForbidden) String ¶
func (o *GetAgentsAgentHostForbidden) String() string
type GetAgentsAgentHostNotFound ¶
GetAgentsAgentHostNotFound describes a response with status code 404, with default header values.
Not Found
func NewGetAgentsAgentHostNotFound ¶
func NewGetAgentsAgentHostNotFound() *GetAgentsAgentHostNotFound
NewGetAgentsAgentHostNotFound creates a GetAgentsAgentHostNotFound with default headers values
func (*GetAgentsAgentHostNotFound) Code ¶
func (o *GetAgentsAgentHostNotFound) Code() int
Code gets the status code for the get agents agent host not found response
func (*GetAgentsAgentHostNotFound) Error ¶
func (o *GetAgentsAgentHostNotFound) Error() string
func (*GetAgentsAgentHostNotFound) GetPayload ¶
func (o *GetAgentsAgentHostNotFound) GetPayload() *models.Error
func (*GetAgentsAgentHostNotFound) IsClientError ¶
func (o *GetAgentsAgentHostNotFound) IsClientError() bool
IsClientError returns true when this get agents agent host not found response has a 4xx status code
func (*GetAgentsAgentHostNotFound) IsCode ¶
func (o *GetAgentsAgentHostNotFound) IsCode(code int) bool
IsCode returns true when this get agents agent host not found response a status code equal to that given
func (*GetAgentsAgentHostNotFound) IsRedirect ¶
func (o *GetAgentsAgentHostNotFound) IsRedirect() bool
IsRedirect returns true when this get agents agent host not found response has a 3xx status code
func (*GetAgentsAgentHostNotFound) IsServerError ¶
func (o *GetAgentsAgentHostNotFound) IsServerError() bool
IsServerError returns true when this get agents agent host not found response has a 5xx status code
func (*GetAgentsAgentHostNotFound) IsSuccess ¶
func (o *GetAgentsAgentHostNotFound) IsSuccess() bool
IsSuccess returns true when this get agents agent host not found response has a 2xx status code
func (*GetAgentsAgentHostNotFound) String ¶
func (o *GetAgentsAgentHostNotFound) String() string
type GetAgentsAgentHostOK ¶
GetAgentsAgentHostOK describes a response with status code 200, with default header values.
Agent details.
func NewGetAgentsAgentHostOK ¶
func NewGetAgentsAgentHostOK() *GetAgentsAgentHostOK
NewGetAgentsAgentHostOK creates a GetAgentsAgentHostOK with default headers values
func (*GetAgentsAgentHostOK) Code ¶
func (o *GetAgentsAgentHostOK) Code() int
Code gets the status code for the get agents agent host o k response
func (*GetAgentsAgentHostOK) Error ¶
func (o *GetAgentsAgentHostOK) Error() string
func (*GetAgentsAgentHostOK) GetPayload ¶
func (o *GetAgentsAgentHostOK) GetPayload() *models.Agent
func (*GetAgentsAgentHostOK) IsClientError ¶
func (o *GetAgentsAgentHostOK) IsClientError() bool
IsClientError returns true when this get agents agent host o k response has a 4xx status code
func (*GetAgentsAgentHostOK) IsCode ¶
func (o *GetAgentsAgentHostOK) IsCode(code int) bool
IsCode returns true when this get agents agent host o k response a status code equal to that given
func (*GetAgentsAgentHostOK) IsRedirect ¶
func (o *GetAgentsAgentHostOK) IsRedirect() bool
IsRedirect returns true when this get agents agent host o k response has a 3xx status code
func (*GetAgentsAgentHostOK) IsServerError ¶
func (o *GetAgentsAgentHostOK) IsServerError() bool
IsServerError returns true when this get agents agent host o k response has a 5xx status code
func (*GetAgentsAgentHostOK) IsSuccess ¶
func (o *GetAgentsAgentHostOK) IsSuccess() bool
IsSuccess returns true when this get agents agent host o k response has a 2xx status code
func (*GetAgentsAgentHostOK) String ¶
func (o *GetAgentsAgentHostOK) String() string
type GetAgentsAgentHostParams ¶
type GetAgentsAgentHostParams struct {
/* AgentHost.
The hostname of the agent
*/
AgentHost string
Context context.Context
HTTPClient *http.Client
// contains filtered or unexported fields
}
GetAgentsAgentHostParams contains all the parameters to send to the API endpoint
for the get agents agent host operation. Typically these are written to a http.Request.
func NewGetAgentsAgentHostParams ¶
func NewGetAgentsAgentHostParams() *GetAgentsAgentHostParams
NewGetAgentsAgentHostParams creates a new GetAgentsAgentHostParams 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 NewGetAgentsAgentHostParamsWithContext ¶
func NewGetAgentsAgentHostParamsWithContext(ctx context.Context) *GetAgentsAgentHostParams
NewGetAgentsAgentHostParamsWithContext creates a new GetAgentsAgentHostParams object with the ability to set a context for a request.
func NewGetAgentsAgentHostParamsWithHTTPClient ¶
func NewGetAgentsAgentHostParamsWithHTTPClient(client *http.Client) *GetAgentsAgentHostParams
NewGetAgentsAgentHostParamsWithHTTPClient creates a new GetAgentsAgentHostParams object with the ability to set a custom HTTPClient for a request.
func NewGetAgentsAgentHostParamsWithTimeout ¶
func NewGetAgentsAgentHostParamsWithTimeout(timeout time.Duration) *GetAgentsAgentHostParams
NewGetAgentsAgentHostParamsWithTimeout creates a new GetAgentsAgentHostParams object with the ability to set a timeout on a request.
func (*GetAgentsAgentHostParams) SetAgentHost ¶
func (o *GetAgentsAgentHostParams) SetAgentHost(agentHost string)
SetAgentHost adds the agentHost to the get agents agent host params
func (*GetAgentsAgentHostParams) SetContext ¶
func (o *GetAgentsAgentHostParams) SetContext(ctx context.Context)
SetContext adds the context to the get agents agent host params
func (*GetAgentsAgentHostParams) SetDefaults ¶
func (o *GetAgentsAgentHostParams) SetDefaults()
SetDefaults hydrates default values in the get agents agent host params (not the query body).
All values with no default are reset to their zero value.
func (*GetAgentsAgentHostParams) SetHTTPClient ¶
func (o *GetAgentsAgentHostParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the get agents agent host params
func (*GetAgentsAgentHostParams) SetTimeout ¶
func (o *GetAgentsAgentHostParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the get agents agent host params
func (*GetAgentsAgentHostParams) WithAgentHost ¶
func (o *GetAgentsAgentHostParams) WithAgentHost(agentHost string) *GetAgentsAgentHostParams
WithAgentHost adds the agentHost to the get agents agent host params
func (*GetAgentsAgentHostParams) WithContext ¶
func (o *GetAgentsAgentHostParams) WithContext(ctx context.Context) *GetAgentsAgentHostParams
WithContext adds the context to the get agents agent host params
func (*GetAgentsAgentHostParams) WithDefaults ¶
func (o *GetAgentsAgentHostParams) WithDefaults() *GetAgentsAgentHostParams
WithDefaults hydrates default values in the get agents agent host params (not the query body).
All values with no default are reset to their zero value.
func (*GetAgentsAgentHostParams) WithHTTPClient ¶
func (o *GetAgentsAgentHostParams) WithHTTPClient(client *http.Client) *GetAgentsAgentHostParams
WithHTTPClient adds the HTTPClient to the get agents agent host params
func (*GetAgentsAgentHostParams) WithTimeout ¶
func (o *GetAgentsAgentHostParams) WithTimeout(timeout time.Duration) *GetAgentsAgentHostParams
WithTimeout adds the timeout to the get agents agent host params
func (*GetAgentsAgentHostParams) WriteToRequest ¶
func (o *GetAgentsAgentHostParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type GetAgentsAgentHostReader ¶
type GetAgentsAgentHostReader struct {
// contains filtered or unexported fields
}
GetAgentsAgentHostReader is a Reader for the GetAgentsAgentHost structure.
func (*GetAgentsAgentHostReader) ReadResponse ¶
func (o *GetAgentsAgentHostReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (any, error)
ReadResponse reads a server response into the received o.
type GetAgentsAgentHostUnauthorized ¶
type GetAgentsAgentHostUnauthorized struct {
}
GetAgentsAgentHostUnauthorized describes a response with status code 401, with default header values.
Unauthorized
func NewGetAgentsAgentHostUnauthorized ¶
func NewGetAgentsAgentHostUnauthorized() *GetAgentsAgentHostUnauthorized
NewGetAgentsAgentHostUnauthorized creates a GetAgentsAgentHostUnauthorized with default headers values
func (*GetAgentsAgentHostUnauthorized) Code ¶
func (o *GetAgentsAgentHostUnauthorized) Code() int
Code gets the status code for the get agents agent host unauthorized response
func (*GetAgentsAgentHostUnauthorized) Error ¶
func (o *GetAgentsAgentHostUnauthorized) Error() string
func (*GetAgentsAgentHostUnauthorized) GetPayload ¶
func (o *GetAgentsAgentHostUnauthorized) GetPayload() *models.Error
func (*GetAgentsAgentHostUnauthorized) IsClientError ¶
func (o *GetAgentsAgentHostUnauthorized) IsClientError() bool
IsClientError returns true when this get agents agent host unauthorized response has a 4xx status code
func (*GetAgentsAgentHostUnauthorized) IsCode ¶
func (o *GetAgentsAgentHostUnauthorized) IsCode(code int) bool
IsCode returns true when this get agents agent host unauthorized response a status code equal to that given
func (*GetAgentsAgentHostUnauthorized) IsRedirect ¶
func (o *GetAgentsAgentHostUnauthorized) IsRedirect() bool
IsRedirect returns true when this get agents agent host unauthorized response has a 3xx status code
func (*GetAgentsAgentHostUnauthorized) IsServerError ¶
func (o *GetAgentsAgentHostUnauthorized) IsServerError() bool
IsServerError returns true when this get agents agent host unauthorized response has a 5xx status code
func (*GetAgentsAgentHostUnauthorized) IsSuccess ¶
func (o *GetAgentsAgentHostUnauthorized) IsSuccess() bool
IsSuccess returns true when this get agents agent host unauthorized response has a 2xx status code
func (*GetAgentsAgentHostUnauthorized) String ¶
func (o *GetAgentsAgentHostUnauthorized) String() string
type GetAgentsAgentHostUnprocessableEntity ¶
GetAgentsAgentHostUnprocessableEntity describes a response with status code 422, with default header values.
Unprocessable Content
func NewGetAgentsAgentHostUnprocessableEntity ¶
func NewGetAgentsAgentHostUnprocessableEntity() *GetAgentsAgentHostUnprocessableEntity
NewGetAgentsAgentHostUnprocessableEntity creates a GetAgentsAgentHostUnprocessableEntity with default headers values
func (*GetAgentsAgentHostUnprocessableEntity) Code ¶
func (o *GetAgentsAgentHostUnprocessableEntity) Code() int
Code gets the status code for the get agents agent host unprocessable entity response
func (*GetAgentsAgentHostUnprocessableEntity) Error ¶
func (o *GetAgentsAgentHostUnprocessableEntity) Error() string
func (*GetAgentsAgentHostUnprocessableEntity) GetPayload ¶
func (o *GetAgentsAgentHostUnprocessableEntity) GetPayload() *models.Error
func (*GetAgentsAgentHostUnprocessableEntity) IsClientError ¶
func (o *GetAgentsAgentHostUnprocessableEntity) IsClientError() bool
IsClientError returns true when this get agents agent host unprocessable entity response has a 4xx status code
func (*GetAgentsAgentHostUnprocessableEntity) IsCode ¶
func (o *GetAgentsAgentHostUnprocessableEntity) IsCode(code int) bool
IsCode returns true when this get agents agent host unprocessable entity response a status code equal to that given
func (*GetAgentsAgentHostUnprocessableEntity) IsRedirect ¶
func (o *GetAgentsAgentHostUnprocessableEntity) IsRedirect() bool
IsRedirect returns true when this get agents agent host unprocessable entity response has a 3xx status code
func (*GetAgentsAgentHostUnprocessableEntity) IsServerError ¶
func (o *GetAgentsAgentHostUnprocessableEntity) IsServerError() bool
IsServerError returns true when this get agents agent host unprocessable entity response has a 5xx status code
func (*GetAgentsAgentHostUnprocessableEntity) IsSuccess ¶
func (o *GetAgentsAgentHostUnprocessableEntity) IsSuccess() bool
IsSuccess returns true when this get agents agent host unprocessable entity response has a 2xx status code
func (*GetAgentsAgentHostUnprocessableEntity) String ¶
func (o *GetAgentsAgentHostUnprocessableEntity) String() string
type GetAgentsBadRequest ¶
GetAgentsBadRequest describes a response with status code 400, with default header values.
Bad request
func NewGetAgentsBadRequest ¶
func NewGetAgentsBadRequest() *GetAgentsBadRequest
NewGetAgentsBadRequest creates a GetAgentsBadRequest with default headers values
func (*GetAgentsBadRequest) Code ¶
func (o *GetAgentsBadRequest) Code() int
Code gets the status code for the get agents bad request response
func (*GetAgentsBadRequest) Error ¶
func (o *GetAgentsBadRequest) Error() string
func (*GetAgentsBadRequest) GetPayload ¶
func (o *GetAgentsBadRequest) GetPayload() *models.Error
func (*GetAgentsBadRequest) IsClientError ¶
func (o *GetAgentsBadRequest) IsClientError() bool
IsClientError returns true when this get agents bad request response has a 4xx status code
func (*GetAgentsBadRequest) IsCode ¶
func (o *GetAgentsBadRequest) IsCode(code int) bool
IsCode returns true when this get agents bad request response a status code equal to that given
func (*GetAgentsBadRequest) IsRedirect ¶
func (o *GetAgentsBadRequest) IsRedirect() bool
IsRedirect returns true when this get agents bad request response has a 3xx status code
func (*GetAgentsBadRequest) IsServerError ¶
func (o *GetAgentsBadRequest) IsServerError() bool
IsServerError returns true when this get agents bad request response has a 5xx status code
func (*GetAgentsBadRequest) IsSuccess ¶
func (o *GetAgentsBadRequest) IsSuccess() bool
IsSuccess returns true when this get agents bad request response has a 2xx status code
func (*GetAgentsBadRequest) String ¶
func (o *GetAgentsBadRequest) String() string
type GetAgentsForbidden ¶
type GetAgentsForbidden struct {
}
GetAgentsForbidden describes a response with status code 403, with default header values.
Forbidden
func NewGetAgentsForbidden ¶
func NewGetAgentsForbidden() *GetAgentsForbidden
NewGetAgentsForbidden creates a GetAgentsForbidden with default headers values
func (*GetAgentsForbidden) Code ¶
func (o *GetAgentsForbidden) Code() int
Code gets the status code for the get agents forbidden response
func (*GetAgentsForbidden) Error ¶
func (o *GetAgentsForbidden) Error() string
func (*GetAgentsForbidden) IsClientError ¶
func (o *GetAgentsForbidden) IsClientError() bool
IsClientError returns true when this get agents forbidden response has a 4xx status code
func (*GetAgentsForbidden) IsCode ¶
func (o *GetAgentsForbidden) IsCode(code int) bool
IsCode returns true when this get agents forbidden response a status code equal to that given
func (*GetAgentsForbidden) IsRedirect ¶
func (o *GetAgentsForbidden) IsRedirect() bool
IsRedirect returns true when this get agents forbidden response has a 3xx status code
func (*GetAgentsForbidden) IsServerError ¶
func (o *GetAgentsForbidden) IsServerError() bool
IsServerError returns true when this get agents forbidden response has a 5xx status code
func (*GetAgentsForbidden) IsSuccess ¶
func (o *GetAgentsForbidden) IsSuccess() bool
IsSuccess returns true when this get agents forbidden response has a 2xx status code
func (*GetAgentsForbidden) String ¶
func (o *GetAgentsForbidden) String() string
type GetAgentsOK ¶
type GetAgentsOK struct {
Payload *GetAgentsOKBody
}
GetAgentsOK describes a response with status code 200, with default header values.
An array of agents.
func NewGetAgentsOK ¶
func NewGetAgentsOK() *GetAgentsOK
NewGetAgentsOK creates a GetAgentsOK with default headers values
func (*GetAgentsOK) Code ¶
func (o *GetAgentsOK) Code() int
Code gets the status code for the get agents o k response
func (*GetAgentsOK) Error ¶
func (o *GetAgentsOK) Error() string
func (*GetAgentsOK) GetPayload ¶
func (o *GetAgentsOK) GetPayload() *GetAgentsOKBody
func (*GetAgentsOK) IsClientError ¶
func (o *GetAgentsOK) IsClientError() bool
IsClientError returns true when this get agents o k response has a 4xx status code
func (*GetAgentsOK) IsCode ¶
func (o *GetAgentsOK) IsCode(code int) bool
IsCode returns true when this get agents o k response a status code equal to that given
func (*GetAgentsOK) IsRedirect ¶
func (o *GetAgentsOK) IsRedirect() bool
IsRedirect returns true when this get agents o k response has a 3xx status code
func (*GetAgentsOK) IsServerError ¶
func (o *GetAgentsOK) IsServerError() bool
IsServerError returns true when this get agents o k response has a 5xx status code
func (*GetAgentsOK) IsSuccess ¶
func (o *GetAgentsOK) IsSuccess() bool
IsSuccess returns true when this get agents o k response has a 2xx status code
func (*GetAgentsOK) String ¶
func (o *GetAgentsOK) String() string
type GetAgentsOKBody ¶
type GetAgentsOKBody struct {
// items
Items []*models.Agent `json:"items"`
// links
Links []*models.Link `json:"links,omitempty"`
}
GetAgentsOKBody get agents o k body swagger:model GetAgentsOKBody
func (*GetAgentsOKBody) ContextValidate ¶
ContextValidate validate this get agents o k body based on the context it is used
func (*GetAgentsOKBody) MarshalBinary ¶
func (o *GetAgentsOKBody) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*GetAgentsOKBody) UnmarshalBinary ¶
func (o *GetAgentsOKBody) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type GetAgentsParams ¶
type GetAgentsParams struct {
Context context.Context
HTTPClient *http.Client
// contains filtered or unexported fields
}
GetAgentsParams contains all the parameters to send to the API endpoint
for the get agents operation. Typically these are written to a http.Request.
func NewGetAgentsParams ¶
func NewGetAgentsParams() *GetAgentsParams
NewGetAgentsParams creates a new GetAgentsParams 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 NewGetAgentsParamsWithContext ¶
func NewGetAgentsParamsWithContext(ctx context.Context) *GetAgentsParams
NewGetAgentsParamsWithContext creates a new GetAgentsParams object with the ability to set a context for a request.
func NewGetAgentsParamsWithHTTPClient ¶
func NewGetAgentsParamsWithHTTPClient(client *http.Client) *GetAgentsParams
NewGetAgentsParamsWithHTTPClient creates a new GetAgentsParams object with the ability to set a custom HTTPClient for a request.
func NewGetAgentsParamsWithTimeout ¶
func NewGetAgentsParamsWithTimeout(timeout time.Duration) *GetAgentsParams
NewGetAgentsParamsWithTimeout creates a new GetAgentsParams object with the ability to set a timeout on a request.
func (*GetAgentsParams) SetContext ¶
func (o *GetAgentsParams) SetContext(ctx context.Context)
SetContext adds the context to the get agents params
func (*GetAgentsParams) SetDefaults ¶
func (o *GetAgentsParams) SetDefaults()
SetDefaults hydrates default values in the get agents params (not the query body).
All values with no default are reset to their zero value.
func (*GetAgentsParams) SetHTTPClient ¶
func (o *GetAgentsParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the get agents params
func (*GetAgentsParams) SetTimeout ¶
func (o *GetAgentsParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the get agents params
func (*GetAgentsParams) WithContext ¶
func (o *GetAgentsParams) WithContext(ctx context.Context) *GetAgentsParams
WithContext adds the context to the get agents params
func (*GetAgentsParams) WithDefaults ¶
func (o *GetAgentsParams) WithDefaults() *GetAgentsParams
WithDefaults hydrates default values in the get agents params (not the query body).
All values with no default are reset to their zero value.
func (*GetAgentsParams) WithHTTPClient ¶
func (o *GetAgentsParams) WithHTTPClient(client *http.Client) *GetAgentsParams
WithHTTPClient adds the HTTPClient to the get agents params
func (*GetAgentsParams) WithTimeout ¶
func (o *GetAgentsParams) WithTimeout(timeout time.Duration) *GetAgentsParams
WithTimeout adds the timeout to the get agents params
func (*GetAgentsParams) WriteToRequest ¶
func (o *GetAgentsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type GetAgentsReader ¶
type GetAgentsReader struct {
// contains filtered or unexported fields
}
GetAgentsReader is a Reader for the GetAgents structure.
func (*GetAgentsReader) ReadResponse ¶
func (o *GetAgentsReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (any, error)
ReadResponse reads a server response into the received o.
type GetAgentsUnauthorized ¶
type GetAgentsUnauthorized struct {
}
GetAgentsUnauthorized describes a response with status code 401, with default header values.
Unauthorized
func NewGetAgentsUnauthorized ¶
func NewGetAgentsUnauthorized() *GetAgentsUnauthorized
NewGetAgentsUnauthorized creates a GetAgentsUnauthorized with default headers values
func (*GetAgentsUnauthorized) Code ¶
func (o *GetAgentsUnauthorized) Code() int
Code gets the status code for the get agents unauthorized response
func (*GetAgentsUnauthorized) Error ¶
func (o *GetAgentsUnauthorized) Error() string
func (*GetAgentsUnauthorized) GetPayload ¶
func (o *GetAgentsUnauthorized) GetPayload() *models.Error
func (*GetAgentsUnauthorized) IsClientError ¶
func (o *GetAgentsUnauthorized) IsClientError() bool
IsClientError returns true when this get agents unauthorized response has a 4xx status code
func (*GetAgentsUnauthorized) IsCode ¶
func (o *GetAgentsUnauthorized) IsCode(code int) bool
IsCode returns true when this get agents unauthorized response a status code equal to that given
func (*GetAgentsUnauthorized) IsRedirect ¶
func (o *GetAgentsUnauthorized) IsRedirect() bool
IsRedirect returns true when this get agents unauthorized response has a 3xx status code
func (*GetAgentsUnauthorized) IsServerError ¶
func (o *GetAgentsUnauthorized) IsServerError() bool
IsServerError returns true when this get agents unauthorized response has a 5xx status code
func (*GetAgentsUnauthorized) IsSuccess ¶
func (o *GetAgentsUnauthorized) IsSuccess() bool
IsSuccess returns true when this get agents unauthorized response has a 2xx status code
func (*GetAgentsUnauthorized) String ¶
func (o *GetAgentsUnauthorized) String() string
type GetAgentsUnprocessableEntity ¶
GetAgentsUnprocessableEntity describes a response with status code 422, with default header values.
Unprocessable Content
func NewGetAgentsUnprocessableEntity ¶
func NewGetAgentsUnprocessableEntity() *GetAgentsUnprocessableEntity
NewGetAgentsUnprocessableEntity creates a GetAgentsUnprocessableEntity with default headers values
func (*GetAgentsUnprocessableEntity) Code ¶
func (o *GetAgentsUnprocessableEntity) Code() int
Code gets the status code for the get agents unprocessable entity response
func (*GetAgentsUnprocessableEntity) Error ¶
func (o *GetAgentsUnprocessableEntity) Error() string
func (*GetAgentsUnprocessableEntity) GetPayload ¶
func (o *GetAgentsUnprocessableEntity) GetPayload() *models.Error
func (*GetAgentsUnprocessableEntity) IsClientError ¶
func (o *GetAgentsUnprocessableEntity) IsClientError() bool
IsClientError returns true when this get agents unprocessable entity response has a 4xx status code
func (*GetAgentsUnprocessableEntity) IsCode ¶
func (o *GetAgentsUnprocessableEntity) IsCode(code int) bool
IsCode returns true when this get agents unprocessable entity response a status code equal to that given
func (*GetAgentsUnprocessableEntity) IsRedirect ¶
func (o *GetAgentsUnprocessableEntity) IsRedirect() bool
IsRedirect returns true when this get agents unprocessable entity response has a 3xx status code
func (*GetAgentsUnprocessableEntity) IsServerError ¶
func (o *GetAgentsUnprocessableEntity) IsServerError() bool
IsServerError returns true when this get agents unprocessable entity response has a 5xx status code
func (*GetAgentsUnprocessableEntity) IsSuccess ¶
func (o *GetAgentsUnprocessableEntity) IsSuccess() bool
IsSuccess returns true when this get agents unprocessable entity response has a 2xx status code
func (*GetAgentsUnprocessableEntity) String ¶
func (o *GetAgentsUnprocessableEntity) String() string