AdditionalPodMetadata
@JsonIgnoreProperties(ignoreUnknown = true) @JsonInclude(JsonInclude.Include.NON_NULL) public static class AdditionalPodMetadata
源码Source
io/agentscope/extensions/sandbox/kubernetes/client/crd/SandboxClaimSpec.java:121–152Additional Pod 元数据,在隔离环境中安全执行代码和工具。位于 io.agentscope.extensions.sandbox.kubernetes.client.crd 包。核心成员包括 getLabels、setLabels、getAnnotations、setAnnotations、AdditionalPodMetadata。
A class in io.agentscope.extensions.sandbox.kubernetes.client.crd that executes code and tools inside isolated environments. Declared in io.agentscope.extensions.sandbox.kubernetes.client.crd.
构造器摘要Constructor Summary
| 构造器Constructor | 说明Description |
|---|---|
public AdditionalPodMetadata() | 初始化 `AdditionalPodMetadata` 实例。 Creates a new instance. |
public AdditionalPodMetadata(Map<String, String> labels, Map<String, String> annotations) | 初始化 `AdditionalPodMetadata` 实例。 Creates a new instance. |
方法摘要Method Summary
| 方法Method | 说明Description |
|---|---|
public Map<String, String> getLabels() | 获取 `getLabels`。 Returns the labels. |
public void setLabels(Map<String, String> labels) | 设置 `setLabels`。 Sets the labels. |
public Map<String, String> getAnnotations() | 获取注解。 Returns the annotations. |
public void setAnnotations(Map<String, String> annotations) | 设置注解。 Sets the annotations. |
构造器详情Constructor Detail
AdditionalPodMetadata
public AdditionalPodMetadata()
初始化 AdditionalPodMetadata 实例。
Creates a new instance.
源码Source
io/agentscope/extensions/sandbox/kubernetes/client/crd/SandboxClaimSpec.java:130AdditionalPodMetadata
public AdditionalPodMetadata(Map<String, String> labels, Map<String, String> annotations)
初始化 AdditionalPodMetadata 实例。
Creates a new instance.
参数Parameters
| 名称Name | 类型Type | 说明Description |
|---|---|---|
labels | Map<String, String> | labels(类型 `Map`)。The labels. |
annotations | Map<String, String> | 注解(类型 `Map`)。The annotations. |
源码Source
io/agentscope/extensions/sandbox/kubernetes/client/crd/SandboxClaimSpec.java:132–135方法详情Method Detail
getLabels
public Map<String, String> getLabels()
获取 getLabels。
Returns the labels.
Map<String, String>返回映射。Returns map.
源码Source
io/agentscope/extensions/sandbox/kubernetes/client/crd/SandboxClaimSpec.java:137–139setLabels
public void setLabels(Map<String, String> labels)
设置 setLabels。
Sets the labels.
参数Parameters
| 名称Name | 类型Type | 说明Description |
|---|---|---|
labels | Map<String, String> | labels(类型 `Map`)。The labels. |
源码Source
io/agentscope/extensions/sandbox/kubernetes/client/crd/SandboxClaimSpec.java:141–143getAnnotations
public Map<String, String> getAnnotations()
获取注解。
Returns the annotations.
Map<String, String>返回映射。Returns map.
源码Source
io/agentscope/extensions/sandbox/kubernetes/client/crd/SandboxClaimSpec.java:145–147setAnnotations
public void setAnnotations(Map<String, String> annotations)
设置注解。
Sets the annotations.
参数Parameters
| 名称Name | 类型Type | 说明Description |
|---|---|---|
annotations | Map<String, String> | 注解(类型 `Map`)。The annotations. |
源码Source
io/agentscope/extensions/sandbox/kubernetes/client/crd/SandboxClaimSpec.java:149–151