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: 3 Imported by: 0

Documentation

Overview

Package agentgroup provides the agentgroup API for the server

Index

Constants

View Source
const (
	// AgentGroupKind is the kind of the agent group resource.
	AgentGroupKind = "AgentGroup"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type AgentGroup

type AgentGroup struct {
	UID        uuid.UUID     `json:"uid"`
	Name       string        `json:"name"`
	Attributes Attributes    `json:"attributes"`
	Selector   AgentSelector `json:"selector"`
	CreatedAt  time.Time     `json:"createdAt"`
	CreatedBy  string        `json:"createdBy"`
	DeletedAt  *time.Time    `json:"deletedAt,omitempty"`
	DeletedBy  *string       `json:"deletedBy,omitempty"`

} // @name AgentGroup

AgentGroup represents a struct that represents an agent group.

type AgentSelector

type AgentSelector struct {
	IdentifyingAttributes    map[string]string `json:"identifyingAttributes"`
	NonIdentifyingAttributes map[string]string `json:"nonIdentifyingAttributes"`
}

AgentSelector defines the criteria for selecting agents to be included in the agent group. @name AgentGroupAgentSelector.

type Attributes

type Attributes map[string]string

Attributes represents a map of attributes for the agent group. @name AgentGroupAttributes.

type CreateRequest added in v0.1.20

type CreateRequest struct {
	Name       string        `binding:"required" json:"name"`
	Attributes Attributes    `json:"attributes"`
	Selector   AgentSelector `json:"selector"`

} // @name AgentGroupCreateRequest

CreateRequest represents a request to create an agent group.

type ListResponse added in v0.1.20

type ListResponse = v1.ListResponse[AgentGroup]

ListResponse represents a response for listing agent groups.

func NewListResponse added in v0.1.20

func NewListResponse(agentGroups []AgentGroup, metadata v1.ListMeta) *ListResponse

NewListResponse creates a new ListResponse with the given agent groups and metadata.

Jump to

Keyboard shortcuts

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