agentgroup

package
v0.1.35 Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2026 License: MIT Imports: 14 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 agentgroup provides the AgentGroupManageService for managing agent groups.

Index

Constants

This section is empty.

Variables

View Source
var ErrAgentGroupAlreadyExists = errors.New("agent group already exists")

ErrAgentGroupAlreadyExists is returned when an agent group with the same name already exists.

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 agentport.AgentGroupUsecase,
	agentUsecase agentport.AgentUsecase,
	logger *slog.Logger,
) *ManageService

NewManageService returns a new ManageService.

func (*ManageService) CreateAgentGroup

func (s *ManageService) CreateAgentGroup(
	ctx context.Context,
	agentGroup *v1.AgentGroup,
) (*v1.AgentGroup, error)

CreateAgentGroup creates a new agent group.

func (*ManageService) DeleteAgentGroup

func (s *ManageService) DeleteAgentGroup(
	ctx context.Context,
	namespace string,
	name string,
) error

DeleteAgentGroup marks an agent group as deleted.

func (*ManageService) GetAgentGroup

func (s *ManageService) GetAgentGroup(
	ctx context.Context,
	namespace string,
	name string,
	options *model.GetOptions,
) (*v1.AgentGroup, error)

GetAgentGroup returns an agent group by its namespace and name.

func (*ManageService) ListAgentGroups

func (s *ManageService) ListAgentGroups(
	ctx context.Context,
	options *model.ListOptions,
) (*v1.ListResponse[v1.AgentGroup], error)

ListAgentGroups returns a paginated list of agent groups.

func (*ManageService) ListAgentsByAgentGroup added in v0.1.22

func (s *ManageService) ListAgentsByAgentGroup(
	ctx context.Context,
	namespace string,
	agentGroupName string,
	options *model.ListOptions,
) (*v1.ListResponse[v1.Agent], error)

ListAgentsByAgentGroup implements port.AgentGroupManageUsecase.

func (*ManageService) UpdateAgentGroup

func (s *ManageService) UpdateAgentGroup(
	ctx context.Context,
	namespace string,
	name string,
	apiAgentGroup *v1.AgentGroup,
) (*v1.AgentGroup, error)

UpdateAgentGroup updates an existing agent group.

Directories

Path Synopsis
Package filter provides filters for agentgroup domain model.
Package filter provides filters for agentgroup domain model.

Jump to

Keyboard shortcuts

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