agentgroup

package
v0.1.21 Latest Latest
Warning

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

Go to latest
Published: Sep 29, 2025 License: MIT Imports: 14 Imported by: 0

Documentation

Overview

Package agentgroup provides the AgentGroupManageService for managing agent groups.

Index

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.

Jump to

Keyboard shortcuts

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