Documentation
¶
Overview ¶
Package agentgroup provides the AgentGroupManageService for managing agent groups.
Index ¶
- type ManageService
- func (s *ManageService) CreateAgentGroup(ctx context.Context, createCommand *port.CreateAgentGroupCommand) (*v1agentgroup.AgentGroup, error)
- func (s *ManageService) DeleteAgentGroup(ctx context.Context, name string) error
- func (s *ManageService) GetAgentGroup(ctx context.Context, name string) (*v1agentgroup.AgentGroup, error)
- func (s *ManageService) ListAgentGroups(ctx context.Context, options *model.ListOptions) (*v1agentgroup.ListResponse, error)
- func (s *ManageService) UpdateAgentGroup(ctx context.Context, name string, apiAgentGroup *v1agentgroup.AgentGroup) (*v1agentgroup.AgentGroup, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ManageService ¶
type ManageService struct {
// contains filtered or unexported fields
}
ManageService implements port.AgentGroupManageUsecase. You can inject repository or other dependencies as needed.
func NewManageService ¶
func NewManageService( agentgroupUsecase domainport.AgentGroupUsecase, logger *slog.Logger, ) *ManageService
NewManageService returns a new ManageService.
func (*ManageService) CreateAgentGroup ¶
func (s *ManageService) CreateAgentGroup( ctx context.Context, createCommand *port.CreateAgentGroupCommand, ) (*v1agentgroup.AgentGroup, error)
CreateAgentGroup creates a new agent group.
func (*ManageService) DeleteAgentGroup ¶
func (s *ManageService) DeleteAgentGroup( ctx context.Context, name string, ) error
DeleteAgentGroup marks an agent group as deleted.
func (*ManageService) GetAgentGroup ¶
func (s *ManageService) GetAgentGroup( ctx context.Context, name string, ) (*v1agentgroup.AgentGroup, error)
GetAgentGroup returns an agent group by its UUID.
func (*ManageService) ListAgentGroups ¶
func (s *ManageService) ListAgentGroups( ctx context.Context, options *model.ListOptions, ) (*v1agentgroup.ListResponse, error)
ListAgentGroups returns a paginated list of agent groups.
func (*ManageService) UpdateAgentGroup ¶
func (s *ManageService) UpdateAgentGroup( ctx context.Context, name string, apiAgentGroup *v1agentgroup.AgentGroup, ) (*v1agentgroup.AgentGroup, error)
UpdateAgentGroup updates an existing agent group.
Click to show internal directories.
Click to hide internal directories.