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 ¶
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.
Click to show internal directories.
Click to hide internal directories.