Documentation
¶
Index ¶
- type Client
- func (c *Client) CreateAgent(req models.CreateAgentRequest) (*models.Agent, error)
- func (c *Client) CreateEvent(agentID string, req models.CreateEventRequest) (*models.Event, error)
- func (c *Client) CreateTodo(agentID string, req models.CreateTodoRequest) (*models.TodoItem, error)
- func (c *Client) DeleteAgent(agentID string) error
- func (c *Client) DeleteTodo(agentID, todoID string) error
- func (c *Client) GetAgent(agentID string) (*models.Agent, error)
- func (c *Client) GetFleetStatus() (*models.FleetStatus, error)
- func (c *Client) GetTask(taskID string) (*models.Task, error)
- func (c *Client) ListCommands(agentID string, status string, limit int) ([]models.Command, error)
- func (c *Client) ListEvents(agentID string, eventType string, limit, offset int) ([]models.Event, error)
- func (c *Client) ListTasks(status, priority string, limit, offset int) ([]models.Task, error)
- func (c *Client) ListTodos(agentID string) ([]models.TodoItem, error)
- func (c *Client) UpdateAgent(agentID string, req models.UpdateAgentRequest) (*models.Agent, error)
- func (c *Client) UpdateCommand(agentID, commandID string, req models.UpdateCommandRequest) (*models.Command, error)
- func (c *Client) UpdateTask(taskID string, req models.UpdateTaskRequest) (*models.Task, error)
- func (c *Client) UpdateTodo(agentID, todoID string, req models.UpdateTodoRequest) (*models.TodoItem, error)
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 represents an HTTP client for the Agent Fleet API
func (*Client) CreateAgent ¶
func (*Client) CreateEvent ¶
func (*Client) CreateTodo ¶
func (*Client) DeleteAgent ¶
func (*Client) DeleteTodo ¶
func (*Client) GetFleetStatus ¶
func (c *Client) GetFleetStatus() (*models.FleetStatus, error)
func (*Client) ListCommands ¶
func (*Client) ListEvents ¶
func (*Client) UpdateAgent ¶
func (*Client) UpdateCommand ¶
func (*Client) UpdateTask ¶
func (*Client) UpdateTodo ¶
Click to show internal directories.
Click to hide internal directories.