Documentation
¶
Index ¶
- type ArtifactConfiguration
- type ArtifactView
- type AuthorizerConfiguration
- type BrowserTool
- type BrowserToolSession
- type Certificate
- type CertificateLocation
- type CfsAccessPointConfiguration
- type CfsAccessPointView
- type CodeConfiguration
- type CodeInterpreter
- type CodeInterpreterResult
- type CodeInterpreterSession
- type CodeView
- type ContentBlock
- type Env
- type EnvConfiguration
- type FileSystemConfiguration
- type FileSystemView
- type Filter
- type ImageConfiguration
- type ImageView
- type ImageVolume
- type InputContentBlock
- type InvokeRuntimeBody
- type LifecycleConfiguration
- type LifecycleView
- type LogConfiguration
- type LogConfigurationView
- type NetworkConfiguration
- type NetworkView
- type OssAccessPointConfiguration
- type OssAccessPointView
- type OssLocationConfiguration
- type OssLocationView
- type ResourceConfiguration
- type ResourceContent
- type ResourceSpecification
- type ResourceSpecificationView
- type ResourceView
- type RuntimeEndpointInfo
- type RuntimeSessionView
- type RuntimeVersionView
- type RuntimeView
- type SecretsManagerLocation
- type Tag
- type TagFilter
- type ToolArguments
- type ToolResultStructuredContent
- type VersionSessionView
- type VpcConfiguration
- type VpcSpec
- type VpcView
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ArtifactConfiguration ¶
type ArtifactConfiguration struct {
/* 通过镜像导入,需指定京东云容器镜像仓库地址。 (Optional) */
Image *ImageConfiguration `json:"image"`
}
type ArtifactView ¶
type ArtifactView struct {
/* 镜像信息 (Optional) */
Image ImageView `json:"image"`
}
type AuthorizerConfiguration ¶
type AuthorizerConfiguration struct {
/* 鉴权类型,当前支持 API_KEY。 */
Type string `json:"type"`
}
type BrowserTool ¶
type BrowserTool struct {
/* Browser Tool ID (Optional) */
BrowserToolId string `json:"browserToolId"`
/* Browser Tool 名称 (Optional) */
Name string `json:"name"`
/* Browser Tool 描述信息 (Optional) */
Description string `json:"description"`
/* Browser Tool API Key (Optional) */
ApiKey string `json:"apiKey"`
/* Browser Tool 状态。可选值:`pending`(已受理,等待资源准备)、`ready`(可创建 Session)、`failed`(处理失败)、`deleting`(删除中)、`deleted`(已删除) (Optional) */
State string `json:"state"`
/* 网络配置类型 (Optional) */
Network string `json:"network"`
/* Browser Tool 资源配置;未记录规格时不返回 (Optional) */
Resource ResourceView `json:"resource"`
/* Browser Tool 的云日志投递配置 (Optional) */
LogConfigurationView LogConfigurationView `json:"logConfigurationView"`
/* Browser Tool 绑定的用户标签 (Optional) */
Tags []Tag `json:"tags"`
/* Browser Tool 所属资源组 ID (Optional) */
ResourceGroupId string `json:"resourceGroupId"`
/* Browser Tool 创建时间 (Optional) */
CreateTime string `json:"createTime"`
}
type BrowserToolSession ¶
type BrowserToolSession struct {
/* Browser Tool ID (Optional) */
BrowserToolId string `json:"browserToolId"`
/* browser tool 名字 (Optional) */
Name string `json:"name"`
/* Session ID (Optional) */
SessionId string `json:"sessionId"`
/* Session 状态。可选值:`pending`(已受理,等待资源准备)、`creating`(初始化中)、`ready`(可连接使用)、`deleting`(删除中)、`deleted`(已删除)、`failed`(初始化失败) (Optional) */
State string `json:"state"`
/* 是否开启长程运行 (Optional) */
Persistent bool `json:"persistent"`
/* Session 最大生命周期,单位为秒;长程运行时不生效 (Optional) */
MaxLifeTime int `json:"maxLifeTime"`
/* Chrome DevTools Protocol WebSocket 地址;通常仅当 `state` 为 `ready` 时可用 (Optional) */
CdpEndpoint string `json:"cdpEndpoint"`
/* VNC 访问地址;通常仅当 `state` 为 `ready` 时可用 (Optional) */
VncEndpoint string `json:"vncEndpoint"`
/* 访问 VNC 的校验 Token;通常仅当 `state` 为 `ready` 时可用 (Optional) */
VncAccessToken string `json:"vncAccessToken"`
/* Session 失败原因;仅当 `state` 为 `failed` 时通常有值 (Optional) */
FailureReason string `json:"failureReason"`
/* Session 创建时间 (Optional) */
CreateTime string `json:"createTime"`
/* Session 过期时间 (Optional) */
ExpireTime string `json:"expireTime"`
}
type Certificate ¶
type Certificate struct {
/* 证书位置 */
Location CertificateLocation `json:"location"`
}
type CertificateLocation ¶
type CertificateLocation struct {
/* Secrets Manager 位置配置 (Optional) */
SecretsManager SecretsManagerLocation `json:"secretsManager"`
}
type CfsAccessPointConfiguration ¶
type CfsAccessPointConfiguration struct {
/* CFS 文件系统 ID。长度不能超过 64 个字符,必须以字母或数字开头,仅支持字母、数字、点号(.)、下划线(_)、冒号(:)和连字符(-)。同一个 Runtime 中不能重复配置相同的文件系统 ID。 */
FileSystemId string `json:"fileSystemId"`
/* 挂载在 Runtime 内的路径。必须位于 /mnt 的子目录下,不能直接使用 /mnt;所有 OSS、CFS 和镜像卷挂载点不能相同,也不能互为父子路径。 */
MountPath string `json:"mountPath"`
/* 文件系统是否只读。 (Optional) */
ReadOnly *bool `json:"readOnly"`
}
type CfsAccessPointView ¶
type CodeConfiguration ¶
type CodeConfiguration struct {
/* 代码位置,S3 链接 */
OssLocation OssLocationConfiguration `json:"ossLocation"`
/* 代码入口,运行时调用的函数或方法 */
EntryPoint string `json:"entryPoint"`
/* 运行环境,如 PYTHON_3_10 或 PYTHON_3_11等 */
RuntimeEnvironment string `json:"runtimeEnvironment"`
}
type CodeInterpreter ¶
type CodeInterpreter struct {
/* Code Interpreter ID (Optional) */
CodeInterpreterId string `json:"codeInterpreterId"`
/* Code Interpreter 名称 (Optional) */
Name string `json:"name"`
/* Code Interpreter 描述信息 (Optional) */
Description string `json:"description"`
/* 用于鉴权的 API Key 的值 (Optional) */
ApiKey string `json:"apiKey"`
/* 失败原因;仅当 `state` 为 `failed` 时通常有值 (Optional) */
FailureReason string `json:"failureReason"`
/* Code Interpreter 状态。可选值:`pending`(已受理,等待资源准备)、`ready`(可创建 Session)、`failed`(处理失败)、`deleting`(删除中)、`deleted`(已删除) (Optional) */
State string `json:"state"`
/* 网络配置类型 (Optional) */
Network string `json:"network"`
/* Code Interpreter 资源配置;未记录规格时不返回 (Optional) */
Resource ResourceView `json:"resource"`
/* Code Interpreter 的云日志投递配置 (Optional) */
LogConfigurationView LogConfigurationView `json:"logConfigurationView"`
/* Code Interpreter 绑定的用户标签 (Optional) */
Tags []Tag `json:"tags"`
/* Code Interpreter 所属资源组 ID (Optional) */
ResourceGroupId string `json:"resourceGroupId"`
/* Code Interpreter 创建时间 (Optional) */
CreateTime string `json:"createTime"`
}
type CodeInterpreterResult ¶
type CodeInterpreterResult struct {
/* 执行输出内容块列表 */
Content []ContentBlock `json:"content"`
/* 是否为错误结果 (Optional) */
IsError bool `json:"isError"`
/* 结构化执行结果 (Optional) */
StructuredContent ToolResultStructuredContent `json:"structuredContent"`
}
type CodeInterpreterSession ¶
type CodeInterpreterSession struct {
/* Code Interpreter ID (Optional) */
CodeInterpreterId string `json:"codeInterpreterId"`
/* Session ID (Optional) */
SessionId string `json:"sessionId"`
/* Session 名称 (Optional) */
Name string `json:"name"`
/* Session 状态。可选值:`pending`(已受理,等待资源准备)、`creating`(初始化中)、`ready`(可执行工具调用)、`deleting`(删除中)、`deleted`(已删除)、`failed`(初始化失败) (Optional) */
State string `json:"state"`
/* 是否开启长程运行 (Optional) */
Persistent bool `json:"persistent"`
/* Session 最大生命周期,单位为秒;长程运行时不生效 (Optional) */
MaxLifeTime int `json:"maxLifeTime"`
/* Session 创建时间 (Optional) */
CreateTime string `json:"createTime"`
}
type CodeView ¶
type CodeView struct {
/* 代码位置,S3 链接 (Optional) */
OssLocation OssLocationView `json:"ossLocation"`
/* 代码入口,运行时调用的函数或方法 (Optional) */
EntryPoint string `json:"entryPoint"`
/* 运行环境,如 PYTHON_3_10 或 PYTHON_3_11 (Optional) */
RuntimeEnvironment string `json:"runtimeEnvironment"`
}
type ContentBlock ¶
type ContentBlock struct {
/* 内容类型,支持 text、image、resource、resource_link */
Type string `json:"type"`
/* Base64 编码二进制内容 (Optional) */
Data string `json:"data"`
/* 内容描述 (Optional) */
Description string `json:"description"`
/* MIME 类型 (Optional) */
MimeType string `json:"mimeType"`
/* 名称 (Optional) */
Name string `json:"name"`
/* 资源内容 (Optional) */
Resource ResourceContent `json:"resource"`
/* 内容大小(字节) (Optional) */
Size int64 `json:"size"`
/* 文本内容 (Optional) */
Text string `json:"text"`
/* 内容 URI (Optional) */
Uri string `json:"uri"`
}
type EnvConfiguration ¶
type FileSystemConfiguration ¶
type FileSystemConfiguration struct {
/* OSS 访问点配置列表。配置 ossAccessPointConfiguration 时,必须指定 RoleName。OSS 和 CFS 访问点总数最多为 5。 (Optional) */
OssAccessPoints []OssAccessPointConfiguration `json:"ossAccessPoints"`
/* CFS 访问点配置列表。OSS 和 CFS 访问点总数最多为 5。 (Optional) */
CfsAccessPoints []CfsAccessPointConfiguration `json:"cfsAccessPoints"`
}
type FileSystemView ¶
type FileSystemView struct {
/* OSS 访问点配置列表 (Optional) */
OssAccessPoints []OssAccessPointView `json:"ossAccessPoints"`
/* CFS 访问点配置列表 (Optional) */
CfsAccessPoints []CfsAccessPointView `json:"cfsAccessPoints"`
}
type ImageConfiguration ¶
type ImageConfiguration struct {
/* 镜像地址。创建 Runtime 时必填;更新时不传则沿用当前版本的镜像。 (Optional) */
ImageUrl *string `json:"imageUrl"`
/* 覆盖镜像的启动入口(ENTRYPOINT),按数组顺序执行;不传沿用当前配置,更新时传空数组恢复镜像默认启动入口。 (Optional) */
Command []string `json:"command"`
/* 覆盖镜像的启动参数(CMD);不传沿用当前配置,更新时传空数组恢复镜像默认启动参数。 (Optional) */
Args []string `json:"args"`
/* 镜像内服务监听端口,取值范围 1~65535。创建时可选;更新时仅当 Runtime 当前生效版本已有自定义端口才可传入新端口,不传则沿用当前端口。不能在更新时新增或删除自定义端口。端口声明不会改变镜像内进程实际监听的端口。 (Optional) */
Port *int `json:"port"`
}
type ImageView ¶
type ImageView struct {
/* 镜像地址 (Optional) */
ImageUrl string `json:"imageUrl"`
/* 当前版本覆盖镜像 ENTRYPOINT 的启动入口;未设置时不返回。 (Optional) */
Command []string `json:"command"`
/* 当前版本覆盖镜像 CMD 的启动参数;未设置时不返回。 (Optional) */
Args []string `json:"args"`
/* 当前版本声明的服务端口;未设置时不返回,并使用协议默认端口。 (Optional) */
Port int `json:"port"`
}
type ImageVolume ¶
type InputContentBlock ¶
type InvokeRuntimeBody ¶
type InvokeRuntimeBody struct {
/* 任意 JSON 内容,作为业务载荷透传给 Runtime 实例
- 结构由 Runtime 实例自己定义
- Gateway 不做任何解析和验证 (Optional) */
AnyField interface{} `json:"anyField"`
}
type LifecycleConfiguration ¶
type LifecycleView ¶
type LogConfiguration ¶
type LogConfiguration struct {
/* 是否启用云日志投递。设置为 false 时关闭日志投递,其他字段不生效。 */
Enabled bool `json:"enabled"`
/* 日志集 ID。enabled 为 true 时必填,必须属于当前账号和资源所在地域。 (Optional) */
LogsetId *string `json:"logsetId"`
/* 日志主题 ID。enabled 为 true 时必填,必须属于指定日志集。 (Optional) */
LogtopicId *string `json:"logtopicId"`
/* 是否采集主容器的标准输出和标准错误。enabled 为 true 时,未指定该字段按 true 处理。 (Optional) */
CollectStandardOutput *bool `json:"collectStandardOutput"`
/* 主容器内需要采集的自定义日志文件路径,最多 10 个;路径必须以 / 开头,支持通配符。 (Optional) */
CustomFilePaths []string `json:"customFilePaths"`
}
type LogConfigurationView ¶
type LogConfigurationView struct {
/* 是否启用云日志投递 (Optional) */
Enabled bool `json:"enabled"`
/* 日志集 ID (Optional) */
LogsetId string `json:"logsetId"`
/* 日志主题 ID (Optional) */
LogtopicId string `json:"logtopicId"`
/* 是否采集主容器的标准输出和标准错误 (Optional) */
CollectStandardOutput bool `json:"collectStandardOutput"`
/* 主容器内需要采集的自定义日志文件路径 (Optional) */
CustomFilePaths []string `json:"customFilePaths"`
}
type NetworkConfiguration ¶
type NetworkView ¶
type OssAccessPointConfiguration ¶
type OssAccessPointConfiguration struct {
/* OSS Bucket 名称。长度必须在 3~63 个字符之间,仅能由小写字母、数字、连字符(-)组成,且必须以小写字母或数字开头和结尾。 */
BucketName string `json:"bucketName"`
/* OSS Bucket 内的文件夹路径。文件夹名称全路径长度不能超过 1022 个字节,不能包含反斜杠(\)或双斜杠(//),且文件夹不能以斜杠(/)开头。 (Optional) */
BucketPath *string `json:"bucketPath"`
/* 挂载在 Runtime 内的路径。必须位于 /mnt 的子目录下,不能直接使用 /mnt;所有 OSS、CFS 和镜像卷挂载点不能相同,也不能互为父子路径。 */
MountPath string `json:"mountPath"`
/* 是否以只读方式挂载 OSS,默认 false,表示可读写。 (Optional) */
ReadOnly *bool `json:"readOnly"`
}
type OssAccessPointView ¶
type OssAccessPointView struct {
/* OSS Bucket 名称 (Optional) */
BucketName string `json:"bucketName"`
/* OSS Bucket 内的文件夹路径 (Optional) */
BucketPath string `json:"bucketPath"`
/* 挂载在 Runtime 内的路径 (Optional) */
MountPath string `json:"mountPath"`
/* 是否以只读方式挂载 OSS,false 表示可读写。 (Optional) */
ReadOnly bool `json:"readOnly"`
}
type OssLocationView ¶
type ResourceConfiguration ¶
type ResourceConfiguration struct {
/* CPU 和内存规格 */
Specification *ResourceSpecification `json:"specification"`
}
type ResourceContent ¶
type ResourceContent struct {
/* 资源内容类型,支持 text、blob */
Type string `json:"type"`
/* Base64 编码的二进制资源内容 (Optional) */
Blob string `json:"blob"`
/* 资源 MIME 类型 (Optional) */
MimeType string `json:"mimeType"`
/* 文本资源内容 (Optional) */
Text string `json:"text"`
/* 资源 URI (Optional) */
Uri string `json:"uri"`
}
type ResourceSpecification ¶
type ResourceView ¶
type ResourceView struct {
/* CPU 和内存规格 (Optional) */
Specification ResourceSpecificationView `json:"specification"`
}
type RuntimeEndpointInfo ¶
type RuntimeSessionView ¶
type RuntimeVersionView ¶
type RuntimeVersionView struct {
/* Runtime 版本号 (Optional) */
Version string `json:"version"`
/* 当前版本镜像信息 (Optional) */
Artifact ArtifactView `json:"artifact"`
/* 当前版本网络配置信息 (Optional) */
Network NetworkView `json:"network"`
/* Runtime 版本状态。可选值:`pending`(已受理,等待资源准备)、`creating`(创建中)、`running`(可正常使用)、`failed`(处理失败)、`deleted`(已删除) (Optional) */
State string `json:"state"`
/* 当前版本的描述信息 (Optional) */
VersionDescription string `json:"versionDescription"`
/* 预热 Session 数 (Optional) */
WarmSession int `json:"warmSession"`
/* 最大 Session 数 (Optional) */
MaxSession int `json:"maxSession"`
/* 当前版本的资源配置;未记录规格时不返回 (Optional) */
Resource ResourceView `json:"resource"`
/* Runtime 协议 (Optional) */
Protocol string `json:"protocol"`
/* Runtime 存活周期配置 (Optional) */
Lifecycle LifecycleView `json:"lifecycle"`
/* 当前 Runtime 版本的云日志投递配置 (Optional) */
LogConfigurationView LogConfigurationView `json:"logConfigurationView"`
/* 环境变量信息 (Optional) */
Envs []Env `json:"envs"`
/* 当前版本文件系统配置 (Optional) */
FileSystem FileSystemView `json:"fileSystem"`
/* 当前版本的只读镜像卷配置,未配置时不返回。仅包含源镜像地址和挂载路径。 (Optional) */
ImageVolumes []ImageVolume `json:"imageVolumes"`
/* 当前版本创建时间 (Optional) */
CreateTime string `json:"createTime"`
}
type RuntimeView ¶
type RuntimeView struct {
/* Runtime ID (Optional) */
RuntimeId string `json:"runtimeId"`
/* Runtime 名称 (Optional) */
Name string `json:"name"`
/* Runtime 当前生效的默认版本号 (Optional) */
CurrentVersion string `json:"currentVersion"`
/* 本次查询返回的 Runtime 版本号;未指定查询版本时,通常与 `currentVersion` 一致 (Optional) */
QueriedVersion string `json:"queriedVersion"`
/* Runtime 状态。可选值:`pending`(已受理,等待资源准备)、`creating`(创建中)、`running`(可正常调用)、`updating`(版本或配置更新中)、`failed`(处理失败)、`deleted`(已删除,不可继续使用) (Optional) */
State string `json:"state"`
/* Runtime 描述信息 (Optional) */
Description string `json:"description"`
/* 本次查询返回的 Runtime 版本详情;其中 `state` 表示该版本自身状态 (Optional) */
VersionView RuntimeVersionView `json:"versionView"`
/* 访问 agent 的 APIKey (Optional) */
ApiKey string `json:"apiKey"`
/* 绑定 IAM 角色名 (Optional) */
RoleName string `json:"roleName"`
/* Runtime 绑定的用户标签 (Optional) */
Tags []Tag `json:"tags"`
/* Runtime 所属资源组 ID (Optional) */
ResourceGroupId string `json:"resourceGroupId"`
/* Runtime 创建时间 (Optional) */
CreateTime string `json:"createTime"`
/* Runtime 最近一次更新时间 (Optional) */
UpdateTime string `json:"updateTime"`
}
type SecretsManagerLocation ¶
type SecretsManagerLocation struct {
/* 存放证书的 Secrets Manager ARN */
SecretArn string `json:"secretArn"`
}
type ToolArguments ¶
type ToolArguments struct {
/* 是否清理上下文 (Optional) */
ClearContext bool `json:"clearContext"`
/* 代码执行内容,长度范围0~100000000 (Optional) */
Code string `json:"code"`
/* 命令执行内容,长度范围0~100000000 (Optional) */
Command string `json:"command"`
/* 输入内容块列表 (Optional) */
Content []InputContentBlock `json:"content"`
/* 目录路径 (Optional) */
DirectoryPath string `json:"directoryPath"`
/* 代码语言,支持 python、javascript、typescript (Optional) */
Language string `json:"language"`
/* 单文件路径,长度范围0~100000000 (Optional) */
Path string `json:"path"`
/* 多文件路径列表,长度范围0~100000000 (Optional) */
Paths []string `json:"paths"`
/* 运行时类型,支持 nodejs、deno、python (Optional) */
Runtime string `json:"runtime"`
/* 任务 ID (Optional) */
TaskId string `json:"taskId"`
}
type ToolResultStructuredContent ¶
type ToolResultStructuredContent struct {
/* 执行耗时(毫秒) (Optional) */
ExecutionTime float64 `json:"executionTime"`
/* 进程退出码 (Optional) */
ExitCode int `json:"exitCode"`
/* 标准错误输出 (Optional) */
Stderr string `json:"stderr"`
/* 标准输出 (Optional) */
Stdout string `json:"stdout"`
/* 异步任务 ID (Optional) */
TaskId string `json:"taskId"`
/* 异步任务状态 (Optional) */
TaskStatus string `json:"taskStatus"`
}
type VersionSessionView ¶
type VpcConfiguration ¶
Source Files
¶
- ArtifactConfiguration.go
- ArtifactView.go
- AuthorizerConfiguration.go
- BrowserTool.go
- BrowserToolSession.go
- Certificate.go
- CertificateLocation.go
- CfsAccessPointConfiguration.go
- CfsAccessPointView.go
- CodeConfiguration.go
- CodeInterpreter.go
- CodeInterpreterResult.go
- CodeInterpreterSession.go
- CodeView.go
- ContentBlock.go
- Env.go
- EnvConfiguration.go
- FileSystemConfiguration.go
- FileSystemView.go
- Filter.go
- ImageConfiguration.go
- ImageView.go
- ImageVolume.go
- InputContentBlock.go
- InvokeRuntimeBody.go
- LifecycleConfiguration.go
- LifecycleView.go
- LogConfiguration.go
- LogConfigurationView.go
- NetworkConfiguration.go
- NetworkView.go
- OssAccessPointConfiguration.go
- OssAccessPointView.go
- OssLocationConfiguration.go
- OssLocationView.go
- ResourceConfiguration.go
- ResourceContent.go
- ResourceSpecification.go
- ResourceSpecificationView.go
- ResourceView.go
- RuntimeEndpointInfo.go
- RuntimeSessionView.go
- RuntimeVersionView.go
- RuntimeView.go
- SecretsManagerLocation.go
- Tag.go
- TagFilter.go
- ToolArguments.go
- ToolResultStructuredContent.go
- VersionSessionView.go
- VpcConfiguration.go
- VpcSpec.go
- VpcView.go
Click to show internal directories.
Click to hide internal directories.