Interface AgentCapabilityService
-
- All Known Implementing Classes:
AgentCapabilityServiceImpl
@Internal public interface AgentCapabilityService
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ErrorCollectionaddCapability(@NotNull PipelineDefinition agent, @NotNull String key, @NotNull String value)Add new capability for agent.@NotNull ReadOnlyCapabilitySetgetAgentCapabilities(@NotNull PipelineDefinition agent, boolean includeShared)voidremoveCapabilities(@NotNull PipelineDefinition agent)Remove all capabilities for agent.voidremoveCapability(@NotNull PipelineDefinition agent, @NotNull String capabilityKey)Remove agent's capability.ErrorCollectionupdateCapability(@NotNull PipelineDefinition agent, @NotNull String key, @Nullable String value, @NotNull CapabilitySource capabilitySource)Update value of existing capability.
-
-
-
Method Detail
-
removeCapability
void removeCapability(@NotNull @NotNull PipelineDefinition agent, @NotNull @NotNull String capabilityKey)Remove agent's capability.
-
removeCapabilities
void removeCapabilities(@NotNull @NotNull PipelineDefinition agent)Remove all capabilities for agent.- Parameters:
agent-
-
getAgentCapabilities
@NotNull @NotNull ReadOnlyCapabilitySet getAgentCapabilities(@NotNull @NotNull PipelineDefinition agent, boolean includeShared)
- Parameters:
includeShared- if shared credentials should be returned- Returns:
- agent's capability set. Should be not null.
-
addCapability
ErrorCollection addCapability(@NotNull @NotNull PipelineDefinition agent, @NotNull @NotNull String key, @NotNull @NotNull String value)
Add new capability for agent.- Returns:
- error collection. It's empty if capability successfully added.
-
updateCapability
ErrorCollection updateCapability(@NotNull @NotNull PipelineDefinition agent, @NotNull @NotNull String key, @Nullable @Nullable String value, @NotNull @NotNull CapabilitySource capabilitySource)
Update value of existing capability.- Returns:
- error collection. It's empty if capability successfully updated.
-
-