agent

package
v0.1.28 Latest Latest
Warning

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

Go to latest
Published: Feb 25, 2026 License: MIT Imports: 12 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package agent provides application services for the agent

Index

Constants

This section is empty.

Variables

View Source
var (
	// ErrRestartCapabilityNotSupported is returned when agent doesn't support restart capability.
	ErrRestartCapabilityNotSupported = errors.New("agent does not support restart capability")
)

Functions

This section is empty.

Types

type Service

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

Service is a struct that implements the AgentManageUsecase interface.

func New

func New(
	agentUsecase domainport.AgentUsecase,
	agentNotificationUsecase domainport.AgentNotificationUsecase,
	logger *slog.Logger,
) *Service

New creates a new instance of the Service struct.

func (*Service) GetAgent

func (s *Service) GetAgent(ctx context.Context, instanceUID uuid.UUID) (*v1.Agent, error)

GetAgent implements port.AgentManageUsecase.

func (*Service) ListAgents

func (s *Service) ListAgents(
	ctx context.Context,
	options *model.ListOptions,
) (*v1.ListResponse[v1.Agent], error)

ListAgents implements port.AgentManageUsecase.

func (*Service) SearchAgents added in v0.1.25

func (s *Service) SearchAgents(
	ctx context.Context,
	query string,
	options *model.ListOptions,
) (*v1.ListResponse[v1.Agent], error)

SearchAgents implements port.AgentManageUsecase.

func (*Service) UpdateAgent added in v0.1.27

func (s *Service) UpdateAgent(ctx context.Context, instanceUID uuid.UUID, api *v1.Agent) (*v1.Agent, error)

UpdateAgent implements [port.AgentManageUsecase].

Jump to

Keyboard shortcuts

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