agentgroup

package
v0.1.22 Latest Latest
Warning

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

Go to latest
Published: Nov 11, 2025 License: MIT Imports: 2 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 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 AgentConfig added in v0.1.22

type AgentConfig struct {
	Value string `json:"value"`
}

AgentConfig represents the remote configuration for agents in the group. @name AgentGroupAgentConfig.

type AgentGroup

type AgentGroup struct {
	Name        string        `json:"name"`
	Attributes  Attributes    `json:"attributes"`
	Priority    int           `json:"priority"`
	Selector    AgentSelector `json:"selector"`
	AgentConfig *AgentConfig  `json:"agentConfig,omitempty"`
	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"`
	Priority    int           `json:"priority"`
	Attributes  Attributes    `json:"attributes"`
	Selector    AgentSelector `json:"selector"`
	AgentConfig *AgentConfig  `json:"agentConfig,omitempty"`

} // @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