Documentation
¶
Index ¶
- Constants
- type AccessInfo
- type Client
- func (c *Client) CopyFunction(request *CopyFunctionRequest) (response *CopyFunctionResponse, err error)
- func (c *Client) CreateFunction(request *CreateFunctionRequest) (response *CreateFunctionResponse, err error)
- func (c *Client) CreateNamespace(request *CreateNamespaceRequest) (response *CreateNamespaceResponse, err error)
- func (c *Client) CreateTrigger(request *CreateTriggerRequest) (response *CreateTriggerResponse, err error)
- func (c *Client) DeleteFunction(request *DeleteFunctionRequest) (response *DeleteFunctionResponse, err error)
- func (c *Client) DeleteLayerVersion(request *DeleteLayerVersionRequest) (response *DeleteLayerVersionResponse, err error)
- func (c *Client) DeleteNamespace(request *DeleteNamespaceRequest) (response *DeleteNamespaceResponse, err error)
- func (c *Client) DeleteTrigger(request *DeleteTriggerRequest) (response *DeleteTriggerResponse, err error)
- func (c *Client) GetFunction(request *GetFunctionRequest) (response *GetFunctionResponse, err error)
- func (c *Client) GetFunctionAddress(request *GetFunctionAddressRequest) (response *GetFunctionAddressResponse, err error)
- func (c *Client) GetFunctionLogs(request *GetFunctionLogsRequest) (response *GetFunctionLogsResponse, err error)
- func (c *Client) GetLayerVersion(request *GetLayerVersionRequest) (response *GetLayerVersionResponse, err error)
- func (c *Client) Invoke(request *InvokeRequest) (response *InvokeResponse, err error)
- func (c *Client) ListFunctions(request *ListFunctionsRequest) (response *ListFunctionsResponse, err error)
- func (c *Client) ListLayerVersions(request *ListLayerVersionsRequest) (response *ListLayerVersionsResponse, err error)
- func (c *Client) ListLayers(request *ListLayersRequest) (response *ListLayersResponse, err error)
- func (c *Client) ListNamespaces(request *ListNamespacesRequest) (response *ListNamespacesResponse, err error)
- func (c *Client) ListVersionByFunction(request *ListVersionByFunctionRequest) (response *ListVersionByFunctionResponse, err error)
- func (c *Client) PublishLayerVersion(request *PublishLayerVersionRequest) (response *PublishLayerVersionResponse, err error)
- func (c *Client) PublishVersion(request *PublishVersionRequest) (response *PublishVersionResponse, err error)
- func (c *Client) UpdateFunctionCode(request *UpdateFunctionCodeRequest) (response *UpdateFunctionCodeResponse, err error)
- func (c *Client) UpdateFunctionConfiguration(request *UpdateFunctionConfigurationRequest) (response *UpdateFunctionConfigurationResponse, err error)
- func (c *Client) UpdateNamespace(request *UpdateNamespaceRequest) (response *UpdateNamespaceResponse, err error)
- type Code
- type CopyFunctionRequest
- type CopyFunctionResponse
- type CreateFunctionRequest
- type CreateFunctionResponse
- type CreateNamespaceRequest
- type CreateNamespaceResponse
- type CreateTriggerRequest
- type CreateTriggerResponse
- type DeadLetterConfig
- type DeleteFunctionRequest
- type DeleteFunctionResponse
- type DeleteLayerVersionRequest
- type DeleteLayerVersionResponse
- type DeleteNamespaceRequest
- type DeleteNamespaceResponse
- type DeleteTriggerRequest
- type DeleteTriggerResponse
- type EipConfigOut
- type EipOutConfig
- type Environment
- type Filter
- type Function
- type FunctionLog
- type FunctionVersion
- type GetFunctionAddressRequest
- type GetFunctionAddressResponse
- type GetFunctionLogsRequest
- type GetFunctionLogsResponse
- type GetFunctionRequest
- type GetFunctionResponse
- type GetLayerVersionRequest
- type GetLayerVersionResponse
- type InvokeRequest
- type InvokeResponse
- type LayerVersionInfo
- type LayerVersionSimple
- type ListFunctionsRequest
- type ListFunctionsResponse
- type ListLayerVersionsRequest
- type ListLayerVersionsResponse
- type ListLayersRequest
- type ListLayersResponse
- type ListNamespacesRequest
- type ListNamespacesResponse
- type ListVersionByFunctionRequest
- type ListVersionByFunctionResponse
- type LogFilter
- type LogSearchContext
- type Namespace
- type PublicNetConfigOut
- type PublishLayerVersionRequest
- type PublishLayerVersionResponse
- type PublishVersionRequest
- type PublishVersionResponse
- type Result
- type Tag
- type Trigger
- type UpdateFunctionCodeRequest
- type UpdateFunctionCodeResponse
- type UpdateFunctionConfigurationRequest
- type UpdateFunctionConfigurationResponse
- type UpdateNamespaceRequest
- type UpdateNamespaceResponse
- type Variable
- type VpcConfig
Constants ¶
View Source
const APIVersion = "2018-04-16"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AccessInfo ¶
type Client ¶
func NewClient ¶
func NewClient(credential *common.Credential, region string, clientProfile *profile.ClientProfile) (client *Client, err error)
func NewClientWithSecretId ¶
Deprecated
func (*Client) CopyFunction ¶
func (c *Client) CopyFunction(request *CopyFunctionRequest) (response *CopyFunctionResponse, err error)
复制一个函数,您可以选择将复制出的新函数放置在特定的Region和Namespace。 注:本接口**不会**复制函数的以下对象或属性: 1. 函数的触发器 2. 除了$LATEST以外的其它版本 3. 函数配置的日志投递到的CLS目标。
如有需要,您可以在复制后手动配置新函数。
func (*Client) CreateFunction ¶
func (c *Client) CreateFunction(request *CreateFunctionRequest) (response *CreateFunctionResponse, err error)
该接口根据传入参数创建新的函数。
func (*Client) CreateNamespace ¶
func (c *Client) CreateNamespace(request *CreateNamespaceRequest) (response *CreateNamespaceResponse, err error)
该接口根据传入的参数创建命名空间。
func (*Client) CreateTrigger ¶
func (c *Client) CreateTrigger(request *CreateTriggerRequest) (response *CreateTriggerResponse, err error)
该接口根据参数输入设置新的触发方式。
func (*Client) DeleteFunction ¶
func (c *Client) DeleteFunction(request *DeleteFunctionRequest) (response *DeleteFunctionResponse, err error)
该接口根据传入参数删除函数。
func (*Client) DeleteLayerVersion ¶
func (c *Client) DeleteLayerVersion(request *DeleteLayerVersionRequest) (response *DeleteLayerVersionResponse, err error)
删除指定层的指定版本,被删除的版本无法再关联到函数上,但不会影响正在引用这个层的函数。
func (*Client) DeleteNamespace ¶
func (c *Client) DeleteNamespace(request *DeleteNamespaceRequest) (response *DeleteNamespaceResponse, err error)
该接口根据传入的参数创建命名空间。
func (*Client) DeleteTrigger ¶
func (c *Client) DeleteTrigger(request *DeleteTriggerRequest) (response *DeleteTriggerResponse, err error)
该接口根据参数传入删除已有的触发方式。
func (*Client) GetFunction ¶
func (c *Client) GetFunction(request *GetFunctionRequest) (response *GetFunctionResponse, err error)
该接口获取某个函数的详细信息,包括名称、代码、处理方法、关联触发器和超时时间等字段。
func (*Client) GetFunctionAddress ¶
func (c *Client) GetFunctionAddress(request *GetFunctionAddressRequest) (response *GetFunctionAddressResponse, err error)
该接口用于获取函数代码包的下载地址。
func (*Client) GetFunctionLogs ¶
func (c *Client) GetFunctionLogs(request *GetFunctionLogsRequest) (response *GetFunctionLogsResponse, err error)
该接口根据指定的日志查询条件返回函数运行日志。
func (*Client) GetLayerVersion ¶
func (c *Client) GetLayerVersion(request *GetLayerVersionRequest) (response *GetLayerVersionResponse, err error)
获取层版本详细信息,包括用于下载层中文件的链接。
func (*Client) Invoke ¶
func (c *Client) Invoke(request *InvokeRequest) (response *InvokeResponse, err error)
该接口用于运行函数。
func (*Client) ListFunctions ¶
func (c *Client) ListFunctions(request *ListFunctionsRequest) (response *ListFunctionsResponse, err error)
该接口根据传入的查询参数返回相关函数信息。
func (*Client) ListLayerVersions ¶
func (c *Client) ListLayerVersions(request *ListLayerVersionsRequest) (response *ListLayerVersionsResponse, err error)
返回指定层的全部版本的信息
func (*Client) ListLayers ¶
func (c *Client) ListLayers(request *ListLayersRequest) (response *ListLayersResponse, err error)
返回全部层的列表,其中包含了每个层最新版本的信息,可以通过适配运行时进行过滤。
func (*Client) ListNamespaces ¶
func (c *Client) ListNamespaces(request *ListNamespacesRequest) (response *ListNamespacesResponse, err error)
列出命名空间列表
func (*Client) ListVersionByFunction ¶
func (c *Client) ListVersionByFunction(request *ListVersionByFunctionRequest) (response *ListVersionByFunctionResponse, err error)
该接口根据传入的参数查询函数的版本。
func (*Client) PublishLayerVersion ¶
func (c *Client) PublishLayerVersion(request *PublishLayerVersionRequest) (response *PublishLayerVersionResponse, err error)
使用给定的zip文件或cos对象创建一个层的新版本,每次使用相同的层的名称调用本接口,都会生成一个新版本。
func (*Client) PublishVersion ¶
func (c *Client) PublishVersion(request *PublishVersionRequest) (response *PublishVersionResponse, err error)
该接口用于用户发布新版本函数。
func (*Client) UpdateFunctionCode ¶
func (c *Client) UpdateFunctionCode(request *UpdateFunctionCodeRequest) (response *UpdateFunctionCodeResponse, err error)
该接口根据传入参数更新函数代码。
func (*Client) UpdateFunctionConfiguration ¶
func (c *Client) UpdateFunctionConfiguration(request *UpdateFunctionConfigurationRequest) (response *UpdateFunctionConfigurationResponse, err error)
该接口根据传入参数更新函数配置。
func (*Client) UpdateNamespace ¶
func (c *Client) UpdateNamespace(request *UpdateNamespaceRequest) (response *UpdateNamespaceResponse, err error)
更新命名空间
type Code ¶
type Code struct {
// 对象存储桶名称
CosBucketName *string `json:"CosBucketName,omitempty" name:"CosBucketName"`
// 对象存储对象路径
CosObjectName *string `json:"CosObjectName,omitempty" name:"CosObjectName"`
// 包含函数代码文件及其依赖项的 zip 格式文件,使用该接口时要求将 zip 文件的内容转成 base64 编码,最大支持20M
ZipFile *string `json:"ZipFile,omitempty" name:"ZipFile"`
// 对象存储的地域,地域为北京时需要传入ap-beijing,北京一区时需要传递ap-beijing-1,其他的地域不需要传递。
CosBucketRegion *string `json:"CosBucketRegion,omitempty" name:"CosBucketRegion"`
// 如果是通过Demo创建的话,需要传入DemoId
DemoId *string `json:"DemoId,omitempty" name:"DemoId"`
// 如果是从TempCos创建的话,需要传入TempCosObjectName
TempCosObjectName *string `json:"TempCosObjectName,omitempty" name:"TempCosObjectName"`
// Git地址
GitUrl *string `json:"GitUrl,omitempty" name:"GitUrl"`
// Git用户名
GitUserName *string `json:"GitUserName,omitempty" name:"GitUserName"`
// Git密码
GitPassword *string `json:"GitPassword,omitempty" name:"GitPassword"`
// 加密后的Git密码,一般无需指定
GitPasswordSecret *string `json:"GitPasswordSecret,omitempty" name:"GitPasswordSecret"`
// Git分支
GitBranch *string `json:"GitBranch,omitempty" name:"GitBranch"`
// 代码在Git仓库中的路径
GitDirectory *string `json:"GitDirectory,omitempty" name:"GitDirectory"`
// 指定要拉取的版本
GitCommitId *string `json:"GitCommitId,omitempty" name:"GitCommitId"`
// 加密后的Git用户名,一般无需指定
GitUserNameSecret *string `json:"GitUserNameSecret,omitempty" name:"GitUserNameSecret"`
}
type CopyFunctionRequest ¶
type CopyFunctionRequest struct {
*tchttp.BaseRequest
// 要复制的函数的名称
FunctionName *string `json:"FunctionName,omitempty" name:"FunctionName"`
// 新函数的名称
NewFunctionName *string `json:"NewFunctionName,omitempty" name:"NewFunctionName"`
// 要复制的函数所在的命名空间,默认为default
Namespace *string `json:"Namespace,omitempty" name:"Namespace"`
// 将函数复制到的命名空间,默认为default
TargetNamespace *string `json:"TargetNamespace,omitempty" name:"TargetNamespace"`
// 新函数的描述
Description *string `json:"Description,omitempty" name:"Description"`
// 要将函数复制到的地域,不填则默认为当前地域
TargetRegion *string `json:"TargetRegion,omitempty" name:"TargetRegion"`
// 如果目标Namespace下已有同名函数,是否覆盖,默认为否
// (注意:如果选择覆盖,会导致同名函数被删除,请慎重操作)
// TRUE:覆盖同名函数
// FALSE:不覆盖同名函数
Override *bool `json:"Override,omitempty" name:"Override"`
// 是否复制函数的属性,包括环境变量、内存、超时、函数描述、标签、VPC等,默认为是。
// TRUE:复制函数配置
// FALSE:不复制函数配置
CopyConfiguration *bool `json:"CopyConfiguration,omitempty" name:"CopyConfiguration"`
}
func NewCopyFunctionRequest ¶
func NewCopyFunctionRequest() (request *CopyFunctionRequest)
func (*CopyFunctionRequest) FromJsonString ¶
func (r *CopyFunctionRequest) FromJsonString(s string) error
func (*CopyFunctionRequest) ToJsonString ¶
func (r *CopyFunctionRequest) ToJsonString() string
type CopyFunctionResponse ¶
type CopyFunctionResponse struct {
*tchttp.BaseResponse
Response *struct {
// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
} `json:"Response"`
}
func NewCopyFunctionResponse ¶
func NewCopyFunctionResponse() (response *CopyFunctionResponse)
func (*CopyFunctionResponse) FromJsonString ¶
func (r *CopyFunctionResponse) FromJsonString(s string) error
func (*CopyFunctionResponse) ToJsonString ¶
func (r *CopyFunctionResponse) ToJsonString() string
type CreateFunctionRequest ¶
type CreateFunctionRequest struct {
*tchttp.BaseRequest
// 创建的函数名称,函数名称支持26个英文字母大小写、数字、连接符和下划线,第一个字符只能以字母开头,最后一个字符不能为连接符或者下划线,名称长度2-60
FunctionName *string `json:"FunctionName,omitempty" name:"FunctionName"`
// 函数的代码. 注意:不能同时指定Cos与ZipFile
Code *Code `json:"Code,omitempty" name:"Code"`
// 函数处理方法名称,名称格式支持 "文件名称.方法名称" 形式,文件名称和函数名称之间以"."隔开,文件名称和函数名称要求以字母开始和结尾,中间允许插入字母、数字、下划线和连接符,文件名称和函数名字的长度要求是 2-60 个字符
Handler *string `json:"Handler,omitempty" name:"Handler"`
// 函数描述,最大支持 1000 个英文字母、数字、空格、逗号、换行符和英文句号,支持中文
Description *string `json:"Description,omitempty" name:"Description"`
// 函数运行时内存大小,默认为 128M,可选范围 128MB-1536MB,并且以 128MB 为阶梯
MemorySize *int64 `json:"MemorySize,omitempty" name:"MemorySize"`
// 函数最长执行时间,单位为秒,可选值范围 1-300 秒,默认为 3 秒
Timeout *int64 `json:"Timeout,omitempty" name:"Timeout"`
// 函数的环境变量
Environment *Environment `json:"Environment,omitempty" name:"Environment"`
// 函数运行环境,目前仅支持 Python2.7,Python3.6,Nodejs6.10, PHP5, PHP7,Golang1 和 Java8,默认Python2.7
Runtime *string `json:"Runtime,omitempty" name:"Runtime"`
// 函数的私有网络配置
VpcConfig *VpcConfig `json:"VpcConfig,omitempty" name:"VpcConfig"`
// 函数所属命名空间
Namespace *string `json:"Namespace,omitempty" name:"Namespace"`
// 函数绑定的角色
Role *string `json:"Role,omitempty" name:"Role"`
// 函数日志投递到的CLS LogsetID
ClsLogsetId *string `json:"ClsLogsetId,omitempty" name:"ClsLogsetId"`
// 函数日志投递到的CLS TopicID
ClsTopicId *string `json:"ClsTopicId,omitempty" name:"ClsTopicId"`
// 函数类型,默认值为Event,创建触发器函数请填写Event,创建HTTP函数级服务请填写HTTP
Type *string `json:"Type,omitempty" name:"Type"`
// CodeSource 代码来源,支持以下'ZipFile', 'Cos', 'Demo', 'TempCos', 'Git'之一,使用Git来源必须指定此字段
CodeSource *string `json:"CodeSource,omitempty" name:"CodeSource"`
// 函数要关联的Layer版本列表,Layer会按照在列表中顺序依次覆盖。
Layers []*LayerVersionSimple `json:"Layers,omitempty" name:"Layers" list`
// 死信队列参数
DeadLetterConfig *DeadLetterConfig `json:"DeadLetterConfig,omitempty" name:"DeadLetterConfig"`
}
func NewCreateFunctionRequest ¶
func NewCreateFunctionRequest() (request *CreateFunctionRequest)
func (*CreateFunctionRequest) FromJsonString ¶
func (r *CreateFunctionRequest) FromJsonString(s string) error
func (*CreateFunctionRequest) ToJsonString ¶
func (r *CreateFunctionRequest) ToJsonString() string
type CreateFunctionResponse ¶
type CreateFunctionResponse struct {
*tchttp.BaseResponse
Response *struct {
// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
} `json:"Response"`
}
func NewCreateFunctionResponse ¶
func NewCreateFunctionResponse() (response *CreateFunctionResponse)
func (*CreateFunctionResponse) FromJsonString ¶
func (r *CreateFunctionResponse) FromJsonString(s string) error
func (*CreateFunctionResponse) ToJsonString ¶
func (r *CreateFunctionResponse) ToJsonString() string
type CreateNamespaceRequest ¶
type CreateNamespaceRequest struct {
*tchttp.BaseRequest
// 命名空间名称
Namespace *string `json:"Namespace,omitempty" name:"Namespace"`
// 命名空间描述
Description *string `json:"Description,omitempty" name:"Description"`
}
func NewCreateNamespaceRequest ¶
func NewCreateNamespaceRequest() (request *CreateNamespaceRequest)
func (*CreateNamespaceRequest) FromJsonString ¶
func (r *CreateNamespaceRequest) FromJsonString(s string) error
func (*CreateNamespaceRequest) ToJsonString ¶
func (r *CreateNamespaceRequest) ToJsonString() string
type CreateNamespaceResponse ¶
type CreateNamespaceResponse struct {
*tchttp.BaseResponse
Response *struct {
// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
} `json:"Response"`
}
func NewCreateNamespaceResponse ¶
func NewCreateNamespaceResponse() (response *CreateNamespaceResponse)
func (*CreateNamespaceResponse) FromJsonString ¶
func (r *CreateNamespaceResponse) FromJsonString(s string) error
func (*CreateNamespaceResponse) ToJsonString ¶
func (r *CreateNamespaceResponse) ToJsonString() string
type CreateTriggerRequest ¶
type CreateTriggerRequest struct {
*tchttp.BaseRequest
// 新建触发器绑定的函数名称
FunctionName *string `json:"FunctionName,omitempty" name:"FunctionName"`
// 新建触发器名称。如果是定时触发器,名称支持英文字母、数字、连接符和下划线,最长100个字符;如果是cos触发器,需要是对应cos存储桶适用于XML API的访问域名(例如:5401-5ff414-12345.cos.ap-shanghai.myqcloud.com);如果是其他触发器,见具体触发器绑定参数的说明
TriggerName *string `json:"TriggerName,omitempty" name:"TriggerName"`
// 触发器类型,目前支持 cos 、cmq、 timer、 ckafka类型
Type *string `json:"Type,omitempty" name:"Type"`
// 触发器对应的参数,可见具体[触发器描述说明](https://cloud.tencent.com/document/product/583/39901)
TriggerDesc *string `json:"TriggerDesc,omitempty" name:"TriggerDesc"`
// 函数的命名空间
Namespace *string `json:"Namespace,omitempty" name:"Namespace"`
// 函数的版本
Qualifier *string `json:"Qualifier,omitempty" name:"Qualifier"`
// 触发器的初始是能状态 OPEN表示开启 CLOSE表示关闭
Enable *string `json:"Enable,omitempty" name:"Enable"`
}
func NewCreateTriggerRequest ¶
func NewCreateTriggerRequest() (request *CreateTriggerRequest)
func (*CreateTriggerRequest) FromJsonString ¶
func (r *CreateTriggerRequest) FromJsonString(s string) error
func (*CreateTriggerRequest) ToJsonString ¶
func (r *CreateTriggerRequest) ToJsonString() string
type CreateTriggerResponse ¶
type CreateTriggerResponse struct {
*tchttp.BaseResponse
Response *struct {
// 触发器信息
TriggerInfo *Trigger `json:"TriggerInfo,omitempty" name:"TriggerInfo"`
// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
} `json:"Response"`
}
func NewCreateTriggerResponse ¶
func NewCreateTriggerResponse() (response *CreateTriggerResponse)
func (*CreateTriggerResponse) FromJsonString ¶
func (r *CreateTriggerResponse) FromJsonString(s string) error
func (*CreateTriggerResponse) ToJsonString ¶
func (r *CreateTriggerResponse) ToJsonString() string
type DeadLetterConfig ¶
type DeleteFunctionRequest ¶
type DeleteFunctionRequest struct {
*tchttp.BaseRequest
// 要删除的函数名称
FunctionName *string `json:"FunctionName,omitempty" name:"FunctionName"`
// 函数所属命名空间
Namespace *string `json:"Namespace,omitempty" name:"Namespace"`
}
func NewDeleteFunctionRequest ¶
func NewDeleteFunctionRequest() (request *DeleteFunctionRequest)
func (*DeleteFunctionRequest) FromJsonString ¶
func (r *DeleteFunctionRequest) FromJsonString(s string) error
func (*DeleteFunctionRequest) ToJsonString ¶
func (r *DeleteFunctionRequest) ToJsonString() string
type DeleteFunctionResponse ¶
type DeleteFunctionResponse struct {
*tchttp.BaseResponse
Response *struct {
// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
} `json:"Response"`
}
func NewDeleteFunctionResponse ¶
func NewDeleteFunctionResponse() (response *DeleteFunctionResponse)
func (*DeleteFunctionResponse) FromJsonString ¶
func (r *DeleteFunctionResponse) FromJsonString(s string) error
func (*DeleteFunctionResponse) ToJsonString ¶
func (r *DeleteFunctionResponse) ToJsonString() string
type DeleteLayerVersionRequest ¶
type DeleteLayerVersionRequest struct {
*tchttp.BaseRequest
// 层名称
LayerName *string `json:"LayerName,omitempty" name:"LayerName"`
// 版本号
LayerVersion *int64 `json:"LayerVersion,omitempty" name:"LayerVersion"`
}
func NewDeleteLayerVersionRequest ¶
func NewDeleteLayerVersionRequest() (request *DeleteLayerVersionRequest)
func (*DeleteLayerVersionRequest) FromJsonString ¶
func (r *DeleteLayerVersionRequest) FromJsonString(s string) error
func (*DeleteLayerVersionRequest) ToJsonString ¶
func (r *DeleteLayerVersionRequest) ToJsonString() string
type DeleteLayerVersionResponse ¶
type DeleteLayerVersionResponse struct {
*tchttp.BaseResponse
Response *struct {
// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
} `json:"Response"`
}
func NewDeleteLayerVersionResponse ¶
func NewDeleteLayerVersionResponse() (response *DeleteLayerVersionResponse)
func (*DeleteLayerVersionResponse) FromJsonString ¶
func (r *DeleteLayerVersionResponse) FromJsonString(s string) error
func (*DeleteLayerVersionResponse) ToJsonString ¶
func (r *DeleteLayerVersionResponse) ToJsonString() string
type DeleteNamespaceRequest ¶
type DeleteNamespaceRequest struct {
*tchttp.BaseRequest
// 命名空间名称
Namespace *string `json:"Namespace,omitempty" name:"Namespace"`
}
func NewDeleteNamespaceRequest ¶
func NewDeleteNamespaceRequest() (request *DeleteNamespaceRequest)
func (*DeleteNamespaceRequest) FromJsonString ¶
func (r *DeleteNamespaceRequest) FromJsonString(s string) error
func (*DeleteNamespaceRequest) ToJsonString ¶
func (r *DeleteNamespaceRequest) ToJsonString() string
type DeleteNamespaceResponse ¶
type DeleteNamespaceResponse struct {
*tchttp.BaseResponse
Response *struct {
// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
} `json:"Response"`
}
func NewDeleteNamespaceResponse ¶
func NewDeleteNamespaceResponse() (response *DeleteNamespaceResponse)
func (*DeleteNamespaceResponse) FromJsonString ¶
func (r *DeleteNamespaceResponse) FromJsonString(s string) error
func (*DeleteNamespaceResponse) ToJsonString ¶
func (r *DeleteNamespaceResponse) ToJsonString() string
type DeleteTriggerRequest ¶
type DeleteTriggerRequest struct {
*tchttp.BaseRequest
// 函数的名称
FunctionName *string `json:"FunctionName,omitempty" name:"FunctionName"`
// 要删除的触发器名称
TriggerName *string `json:"TriggerName,omitempty" name:"TriggerName"`
// 要删除的触发器类型,目前支持 cos 、cmq、 timer、ckafka 类型
Type *string `json:"Type,omitempty" name:"Type"`
// 函数所属命名空间
Namespace *string `json:"Namespace,omitempty" name:"Namespace"`
// 如果删除的触发器类型为 COS 触发器,该字段为必填值,存放 JSON 格式的数据 {"event":"cos:ObjectCreated:*"},数据内容和 SetTrigger 接口中该字段的格式相同;如果删除的触发器类型为定时触发器或 CMQ 触发器,可以不指定该字段
TriggerDesc *string `json:"TriggerDesc,omitempty" name:"TriggerDesc"`
// 函数的版本信息
Qualifier *string `json:"Qualifier,omitempty" name:"Qualifier"`
}
func NewDeleteTriggerRequest ¶
func NewDeleteTriggerRequest() (request *DeleteTriggerRequest)
func (*DeleteTriggerRequest) FromJsonString ¶
func (r *DeleteTriggerRequest) FromJsonString(s string) error
func (*DeleteTriggerRequest) ToJsonString ¶
func (r *DeleteTriggerRequest) ToJsonString() string
type DeleteTriggerResponse ¶
type DeleteTriggerResponse struct {
*tchttp.BaseResponse
Response *struct {
// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
} `json:"Response"`
}
func NewDeleteTriggerResponse ¶
func NewDeleteTriggerResponse() (response *DeleteTriggerResponse)
func (*DeleteTriggerResponse) FromJsonString ¶
func (r *DeleteTriggerResponse) FromJsonString(s string) error
func (*DeleteTriggerResponse) ToJsonString ¶
func (r *DeleteTriggerResponse) ToJsonString() string
type EipConfigOut ¶
type EipOutConfig ¶
type Environment ¶
type Environment struct {
// 环境变量数组
Variables []*Variable `json:"Variables,omitempty" name:"Variables" list`
}
type Function ¶
type Function struct {
// 修改时间
ModTime *string `json:"ModTime,omitempty" name:"ModTime"`
// 创建时间
AddTime *string `json:"AddTime,omitempty" name:"AddTime"`
// 运行时
Runtime *string `json:"Runtime,omitempty" name:"Runtime"`
// 函数名称
FunctionName *string `json:"FunctionName,omitempty" name:"FunctionName"`
// 函数ID
FunctionId *string `json:"FunctionId,omitempty" name:"FunctionId"`
// 命名空间
Namespace *string `json:"Namespace,omitempty" name:"Namespace"`
// 函数状态
Status *string `json:"Status,omitempty" name:"Status"`
// 函数状态详情
StatusDesc *string `json:"StatusDesc,omitempty" name:"StatusDesc"`
// 函数描述
Description *string `json:"Description,omitempty" name:"Description"`
// 函数标签
Tags []*Tag `json:"Tags,omitempty" name:"Tags" list`
// 函数类型,取值为 HTTP 或者 Event
Type *string `json:"Type,omitempty" name:"Type"`
}
type FunctionLog ¶
type FunctionLog struct {
// 函数的名称
FunctionName *string `json:"FunctionName,omitempty" name:"FunctionName"`
// 函数执行完成后的返回值
RetMsg *string `json:"RetMsg,omitempty" name:"RetMsg"`
// 执行该函数对应的requestId
RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
// 函数开始执行时的时间点
StartTime *string `json:"StartTime,omitempty" name:"StartTime"`
// 函数执行结果,如果是 0 表示执行成功,其他值表示失败
RetCode *int64 `json:"RetCode,omitempty" name:"RetCode"`
// 函数调用是否结束,如果是 1 表示执行结束,其他值表示调用异常
InvokeFinished *int64 `json:"InvokeFinished,omitempty" name:"InvokeFinished"`
// 函数执行耗时,单位为 ms
Duration *float64 `json:"Duration,omitempty" name:"Duration"`
// 函数计费时间,根据 duration 向上取最近的 100ms,单位为ms
BillDuration *int64 `json:"BillDuration,omitempty" name:"BillDuration"`
// 函数执行时消耗实际内存大小,单位为 Byte
MemUsage *int64 `json:"MemUsage,omitempty" name:"MemUsage"`
// 函数执行过程中的日志输出
Log *string `json:"Log,omitempty" name:"Log"`
// 日志等级
Level *string `json:"Level,omitempty" name:"Level"`
// 日志来源
Source *string `json:"Source,omitempty" name:"Source"`
}
type FunctionVersion ¶
type FunctionVersion struct {
// 函数版本名称
Version *string `json:"Version,omitempty" name:"Version"`
// 版本描述信息
// 注意:此字段可能返回 null,表示取不到有效值。
Description *string `json:"Description,omitempty" name:"Description"`
// 创建时间
// 注意:此字段可能返回 null,表示取不到有效值。
AddTime *string `json:"AddTime,omitempty" name:"AddTime"`
// 更新时间
// 注意:此字段可能返回 null,表示取不到有效值。
ModTime *string `json:"ModTime,omitempty" name:"ModTime"`
}
type GetFunctionAddressRequest ¶
type GetFunctionAddressRequest struct {
*tchttp.BaseRequest
// 函数的名称
FunctionName *string `json:"FunctionName,omitempty" name:"FunctionName"`
// 函数的版本
Qualifier *string `json:"Qualifier,omitempty" name:"Qualifier"`
// 函数的命名空间
Namespace *string `json:"Namespace,omitempty" name:"Namespace"`
}
func NewGetFunctionAddressRequest ¶
func NewGetFunctionAddressRequest() (request *GetFunctionAddressRequest)
func (*GetFunctionAddressRequest) FromJsonString ¶
func (r *GetFunctionAddressRequest) FromJsonString(s string) error
func (*GetFunctionAddressRequest) ToJsonString ¶
func (r *GetFunctionAddressRequest) ToJsonString() string
type GetFunctionAddressResponse ¶
type GetFunctionAddressResponse struct {
*tchttp.BaseResponse
Response *struct {
// 函数的Cos地址
Url *string `json:"Url,omitempty" name:"Url"`
// 函数的SHA256编码
CodeSha256 *string `json:"CodeSha256,omitempty" name:"CodeSha256"`
// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
} `json:"Response"`
}
func NewGetFunctionAddressResponse ¶
func NewGetFunctionAddressResponse() (response *GetFunctionAddressResponse)
func (*GetFunctionAddressResponse) FromJsonString ¶
func (r *GetFunctionAddressResponse) FromJsonString(s string) error
func (*GetFunctionAddressResponse) ToJsonString ¶
func (r *GetFunctionAddressResponse) ToJsonString() string
type GetFunctionLogsRequest ¶
type GetFunctionLogsRequest struct {
*tchttp.BaseRequest
// 函数的名称
FunctionName *string `json:"FunctionName,omitempty" name:"FunctionName"`
// 数据的偏移量,Offset+Limit不能大于10000
Offset *int64 `json:"Offset,omitempty" name:"Offset"`
// 返回数据的长度,Offset+Limit不能大于10000
Limit *int64 `json:"Limit,omitempty" name:"Limit"`
// 以升序还是降序的方式对日志进行排序,可选值 desc和 asc
Order *string `json:"Order,omitempty" name:"Order"`
// 根据某个字段排序日志,支持以下字段:function_name, duration, mem_usage, start_time
OrderBy *string `json:"OrderBy,omitempty" name:"OrderBy"`
// 日志过滤条件。可用来区分正确和错误日志,filter.RetCode=not0 表示只返回错误日志,filter.RetCode=is0 表示只返回正确日志,不传,则返回所有日志
Filter *LogFilter `json:"Filter,omitempty" name:"Filter"`
// 函数的命名空间
Namespace *string `json:"Namespace,omitempty" name:"Namespace"`
// 函数的版本
Qualifier *string `json:"Qualifier,omitempty" name:"Qualifier"`
// 执行该函数对应的requestId
FunctionRequestId *string `json:"FunctionRequestId,omitempty" name:"FunctionRequestId"`
// 查询的具体日期,例如:2017-05-16 20:00:00,只能与endtime相差一天之内
StartTime *string `json:"StartTime,omitempty" name:"StartTime"`
// 查询的具体日期,例如:2017-05-16 20:59:59,只能与startTime相差一天之内
EndTime *string `json:"EndTime,omitempty" name:"EndTime"`
// 服务日志相关参数,第一页日志 Offset 为空字符串,后续分页按响应字段里的SearchContext填写
SearchContext *LogSearchContext `json:"SearchContext,omitempty" name:"SearchContext"`
}
func NewGetFunctionLogsRequest ¶
func NewGetFunctionLogsRequest() (request *GetFunctionLogsRequest)
func (*GetFunctionLogsRequest) FromJsonString ¶
func (r *GetFunctionLogsRequest) FromJsonString(s string) error
func (*GetFunctionLogsRequest) ToJsonString ¶
func (r *GetFunctionLogsRequest) ToJsonString() string
type GetFunctionLogsResponse ¶
type GetFunctionLogsResponse struct {
*tchttp.BaseResponse
Response *struct {
// 函数日志的总数
TotalCount *int64 `json:"TotalCount,omitempty" name:"TotalCount"`
// 函数日志信息
Data []*FunctionLog `json:"Data,omitempty" name:"Data" list`
// 日志服务分页参数
SearchContext *LogSearchContext `json:"SearchContext,omitempty" name:"SearchContext"`
// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
} `json:"Response"`
}
func NewGetFunctionLogsResponse ¶
func NewGetFunctionLogsResponse() (response *GetFunctionLogsResponse)
func (*GetFunctionLogsResponse) FromJsonString ¶
func (r *GetFunctionLogsResponse) FromJsonString(s string) error
func (*GetFunctionLogsResponse) ToJsonString ¶
func (r *GetFunctionLogsResponse) ToJsonString() string
type GetFunctionRequest ¶
type GetFunctionRequest struct {
*tchttp.BaseRequest
// 需要获取详情的函数名称
FunctionName *string `json:"FunctionName,omitempty" name:"FunctionName"`
// 函数的版本号
Qualifier *string `json:"Qualifier,omitempty" name:"Qualifier"`
// 函数所属命名空间
Namespace *string `json:"Namespace,omitempty" name:"Namespace"`
// 是否显示代码, TRUE表示显示代码,FALSE表示不显示代码,大于1M的入口文件不会显示
ShowCode *string `json:"ShowCode,omitempty" name:"ShowCode"`
}
func NewGetFunctionRequest ¶
func NewGetFunctionRequest() (request *GetFunctionRequest)
func (*GetFunctionRequest) FromJsonString ¶
func (r *GetFunctionRequest) FromJsonString(s string) error
func (*GetFunctionRequest) ToJsonString ¶
func (r *GetFunctionRequest) ToJsonString() string
type GetFunctionResponse ¶
type GetFunctionResponse struct {
*tchttp.BaseResponse
Response *struct {
// 函数的最后修改时间
ModTime *string `json:"ModTime,omitempty" name:"ModTime"`
// 函数的代码
CodeInfo *string `json:"CodeInfo,omitempty" name:"CodeInfo"`
// 函数的描述信息
Description *string `json:"Description,omitempty" name:"Description"`
// 函数的触发器列表
Triggers []*Trigger `json:"Triggers,omitempty" name:"Triggers" list`
// 函数的入口
Handler *string `json:"Handler,omitempty" name:"Handler"`
// 函数代码大小
CodeSize *int64 `json:"CodeSize,omitempty" name:"CodeSize"`
// 函数的超时时间
Timeout *int64 `json:"Timeout,omitempty" name:"Timeout"`
// 函数的版本
FunctionVersion *string `json:"FunctionVersion,omitempty" name:"FunctionVersion"`
// 函数的最大可用内存
MemorySize *int64 `json:"MemorySize,omitempty" name:"MemorySize"`
// 函数的运行环境
Runtime *string `json:"Runtime,omitempty" name:"Runtime"`
// 函数的名称
FunctionName *string `json:"FunctionName,omitempty" name:"FunctionName"`
// 函数的私有网络
VpcConfig *VpcConfig `json:"VpcConfig,omitempty" name:"VpcConfig"`
// 是否使用GPU
UseGpu *string `json:"UseGpu,omitempty" name:"UseGpu"`
// 函数的环境变量
Environment *Environment `json:"Environment,omitempty" name:"Environment"`
// 代码是否正确
CodeResult *string `json:"CodeResult,omitempty" name:"CodeResult"`
// 代码错误信息
CodeError *string `json:"CodeError,omitempty" name:"CodeError"`
// 代码错误码
ErrNo *int64 `json:"ErrNo,omitempty" name:"ErrNo"`
// 函数的命名空间
Namespace *string `json:"Namespace,omitempty" name:"Namespace"`
// 函数绑定的角色
Role *string `json:"Role,omitempty" name:"Role"`
// 是否自动安装依赖
InstallDependency *string `json:"InstallDependency,omitempty" name:"InstallDependency"`
// 函数状态
Status *string `json:"Status,omitempty" name:"Status"`
// 状态描述
StatusDesc *string `json:"StatusDesc,omitempty" name:"StatusDesc"`
// 日志投递到的Cls日志集
ClsLogsetId *string `json:"ClsLogsetId,omitempty" name:"ClsLogsetId"`
// 日志投递到的Cls Topic
ClsTopicId *string `json:"ClsTopicId,omitempty" name:"ClsTopicId"`
// 函数ID
FunctionId *string `json:"FunctionId,omitempty" name:"FunctionId"`
// 函数的标签列表
Tags []*Tag `json:"Tags,omitempty" name:"Tags" list`
// EipConfig配置
EipConfig *EipOutConfig `json:"EipConfig,omitempty" name:"EipConfig"`
// 域名信息
AccessInfo *AccessInfo `json:"AccessInfo,omitempty" name:"AccessInfo"`
// 函数类型,取值为HTTP或者Event
Type *string `json:"Type,omitempty" name:"Type"`
// 是否启用L5
L5Enable *string `json:"L5Enable,omitempty" name:"L5Enable"`
// 函数关联的Layer版本信息
Layers []*LayerVersionInfo `json:"Layers,omitempty" name:"Layers" list`
// 函数关联的死信队列信息
DeadLetterConfig *DeadLetterConfig `json:"DeadLetterConfig,omitempty" name:"DeadLetterConfig"`
// 函数创建回见
AddTime *string `json:"AddTime,omitempty" name:"AddTime"`
// 公网访问配置
// 注意:此字段可能返回 null,表示取不到有效值。
PublicNetConfig *PublicNetConfigOut `json:"PublicNetConfig,omitempty" name:"PublicNetConfig"`
// 是否启用Ons
// 注意:此字段可能返回 null,表示取不到有效值。
OnsEnable *string `json:"OnsEnable,omitempty" name:"OnsEnable"`
// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
} `json:"Response"`
}
func NewGetFunctionResponse ¶
func NewGetFunctionResponse() (response *GetFunctionResponse)
func (*GetFunctionResponse) FromJsonString ¶
func (r *GetFunctionResponse) FromJsonString(s string) error
func (*GetFunctionResponse) ToJsonString ¶
func (r *GetFunctionResponse) ToJsonString() string
type GetLayerVersionRequest ¶
type GetLayerVersionRequest struct {
*tchttp.BaseRequest
// 层名称
LayerName *string `json:"LayerName,omitempty" name:"LayerName"`
// 版本号
LayerVersion *int64 `json:"LayerVersion,omitempty" name:"LayerVersion"`
}
func NewGetLayerVersionRequest ¶
func NewGetLayerVersionRequest() (request *GetLayerVersionRequest)
func (*GetLayerVersionRequest) FromJsonString ¶
func (r *GetLayerVersionRequest) FromJsonString(s string) error
func (*GetLayerVersionRequest) ToJsonString ¶
func (r *GetLayerVersionRequest) ToJsonString() string
type GetLayerVersionResponse ¶
type GetLayerVersionResponse struct {
*tchttp.BaseResponse
Response *struct {
// 适配的运行时
CompatibleRuntimes []*string `json:"CompatibleRuntimes,omitempty" name:"CompatibleRuntimes" list`
// 层中版本文件的SHA256编码
CodeSha256 *string `json:"CodeSha256,omitempty" name:"CodeSha256"`
// 层中版本文件的下载地址
Location *string `json:"Location,omitempty" name:"Location"`
// 版本的创建时间
AddTime *string `json:"AddTime,omitempty" name:"AddTime"`
// 版本的描述
Description *string `json:"Description,omitempty" name:"Description"`
// 许可证信息
LicenseInfo *string `json:"LicenseInfo,omitempty" name:"LicenseInfo"`
// 版本号
LayerVersion *int64 `json:"LayerVersion,omitempty" name:"LayerVersion"`
// 层名称
LayerName *string `json:"LayerName,omitempty" name:"LayerName"`
// 层的具体版本当前状态,可能取值:
// Active 正常
// Publishing 发布中
// PublishFailed 发布失败
// Deleted 已删除
Status *string `json:"Status,omitempty" name:"Status"`
// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
} `json:"Response"`
}
func NewGetLayerVersionResponse ¶
func NewGetLayerVersionResponse() (response *GetLayerVersionResponse)
func (*GetLayerVersionResponse) FromJsonString ¶
func (r *GetLayerVersionResponse) FromJsonString(s string) error
func (*GetLayerVersionResponse) ToJsonString ¶
func (r *GetLayerVersionResponse) ToJsonString() string
type InvokeRequest ¶
type InvokeRequest struct {
*tchttp.BaseRequest
// 函数名称
FunctionName *string `json:"FunctionName,omitempty" name:"FunctionName"`
// RequestResponse(同步) 和 Event(异步),默认为同步
InvocationType *string `json:"InvocationType,omitempty" name:"InvocationType"`
// 触发函数的版本号
Qualifier *string `json:"Qualifier,omitempty" name:"Qualifier"`
// 运行函数时的参数,以json格式传入,最大支持的参数长度是 1M
ClientContext *string `json:"ClientContext,omitempty" name:"ClientContext"`
// 同步调用时指定该字段,返回值会包含4K的日志,可选值为None和Tail,默认值为None。当该值为Tail时,返回参数中的logMsg字段会包含对应的函数执行日志
LogType *string `json:"LogType,omitempty" name:"LogType"`
// 命名空间
Namespace *string `json:"Namespace,omitempty" name:"Namespace"`
}
func NewInvokeRequest ¶
func NewInvokeRequest() (request *InvokeRequest)
func (*InvokeRequest) FromJsonString ¶
func (r *InvokeRequest) FromJsonString(s string) error
func (*InvokeRequest) ToJsonString ¶
func (r *InvokeRequest) ToJsonString() string
type InvokeResponse ¶
type InvokeResponse struct {
*tchttp.BaseResponse
Response *struct {
// 函数执行结果
Result *Result `json:"Result,omitempty" name:"Result"`
// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
} `json:"Response"`
}
func NewInvokeResponse ¶
func NewInvokeResponse() (response *InvokeResponse)
func (*InvokeResponse) FromJsonString ¶
func (r *InvokeResponse) FromJsonString(s string) error
func (*InvokeResponse) ToJsonString ¶
func (r *InvokeResponse) ToJsonString() string
type LayerVersionInfo ¶
type LayerVersionInfo struct {
// 版本适用的运行时
// 注意:此字段可能返回 null,表示取不到有效值。
CompatibleRuntimes []*string `json:"CompatibleRuntimes,omitempty" name:"CompatibleRuntimes" list`
// 创建时间
AddTime *string `json:"AddTime,omitempty" name:"AddTime"`
// 版本描述
// 注意:此字段可能返回 null,表示取不到有效值。
Description *string `json:"Description,omitempty" name:"Description"`
// 许可证信息
// 注意:此字段可能返回 null,表示取不到有效值。
LicenseInfo *string `json:"LicenseInfo,omitempty" name:"LicenseInfo"`
// 版本号
LayerVersion *int64 `json:"LayerVersion,omitempty" name:"LayerVersion"`
// 层名称
LayerName *string `json:"LayerName,omitempty" name:"LayerName"`
// 层的具体版本当前状态,可能取值:
// Active 正常
// Publishing 发布中
// PublishFailed 发布失败
// Deleted 已删除
Status *string `json:"Status,omitempty" name:"Status"`
}
type LayerVersionSimple ¶
type ListFunctionsRequest ¶
type ListFunctionsRequest struct {
*tchttp.BaseRequest
// 以升序还是降序的方式返回结果,可选值 ASC 和 DESC
Order *string `json:"Order,omitempty" name:"Order"`
// 根据哪个字段进行返回结果排序,支持以下字段:AddTime, ModTime, FunctionName
Orderby *string `json:"Orderby,omitempty" name:"Orderby"`
// 数据偏移量,默认值为 0
Offset *int64 `json:"Offset,omitempty" name:"Offset"`
// 返回数据长度,默认值为 20
Limit *int64 `json:"Limit,omitempty" name:"Limit"`
// 支持FunctionName模糊匹配
SearchKey *string `json:"SearchKey,omitempty" name:"SearchKey"`
// 命名空间
Namespace *string `json:"Namespace,omitempty" name:"Namespace"`
// 函数描述,支持模糊搜索
Description *string `json:"Description,omitempty" name:"Description"`
// 过滤条件。
// - tag:tag-key - String - 是否必填:否 - (过滤条件)按照标签键值对进行过滤。 tag-key使用具体的标签键进行替换。
//
// 每次请求的Filters的上限为10,Filter.Values的上限为5。
Filters []*Filter `json:"Filters,omitempty" name:"Filters" list`
}
func NewListFunctionsRequest ¶
func NewListFunctionsRequest() (request *ListFunctionsRequest)
func (*ListFunctionsRequest) FromJsonString ¶
func (r *ListFunctionsRequest) FromJsonString(s string) error
func (*ListFunctionsRequest) ToJsonString ¶
func (r *ListFunctionsRequest) ToJsonString() string
type ListFunctionsResponse ¶
type ListFunctionsResponse struct {
*tchttp.BaseResponse
Response *struct {
// 函数列表
Functions []*Function `json:"Functions,omitempty" name:"Functions" list`
// 总数
TotalCount *int64 `json:"TotalCount,omitempty" name:"TotalCount"`
// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
} `json:"Response"`
}
func NewListFunctionsResponse ¶
func NewListFunctionsResponse() (response *ListFunctionsResponse)
func (*ListFunctionsResponse) FromJsonString ¶
func (r *ListFunctionsResponse) FromJsonString(s string) error
func (*ListFunctionsResponse) ToJsonString ¶
func (r *ListFunctionsResponse) ToJsonString() string
type ListLayerVersionsRequest ¶
type ListLayerVersionsRequest struct {
*tchttp.BaseRequest
// 层名称
LayerName *string `json:"LayerName,omitempty" name:"LayerName"`
// 适配的运行时
CompatibleRuntime []*string `json:"CompatibleRuntime,omitempty" name:"CompatibleRuntime" list`
}
func NewListLayerVersionsRequest ¶
func NewListLayerVersionsRequest() (request *ListLayerVersionsRequest)
func (*ListLayerVersionsRequest) FromJsonString ¶
func (r *ListLayerVersionsRequest) FromJsonString(s string) error
func (*ListLayerVersionsRequest) ToJsonString ¶
func (r *ListLayerVersionsRequest) ToJsonString() string
type ListLayerVersionsResponse ¶
type ListLayerVersionsResponse struct {
*tchttp.BaseResponse
Response *struct {
// 层版本列表
LayerVersions []*LayerVersionInfo `json:"LayerVersions,omitempty" name:"LayerVersions" list`
// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
} `json:"Response"`
}
func NewListLayerVersionsResponse ¶
func NewListLayerVersionsResponse() (response *ListLayerVersionsResponse)
func (*ListLayerVersionsResponse) FromJsonString ¶
func (r *ListLayerVersionsResponse) FromJsonString(s string) error
func (*ListLayerVersionsResponse) ToJsonString ¶
func (r *ListLayerVersionsResponse) ToJsonString() string
type ListLayersRequest ¶
type ListLayersRequest struct {
*tchttp.BaseRequest
// 适配的运行时
CompatibleRuntime *string `json:"CompatibleRuntime,omitempty" name:"CompatibleRuntime"`
// Offset
Offset *int64 `json:"Offset,omitempty" name:"Offset"`
// Limit
Limit *int64 `json:"Limit,omitempty" name:"Limit"`
// 查询key,模糊匹配名称
SearchKey *string `json:"SearchKey,omitempty" name:"SearchKey"`
}
func NewListLayersRequest ¶
func NewListLayersRequest() (request *ListLayersRequest)
func (*ListLayersRequest) FromJsonString ¶
func (r *ListLayersRequest) FromJsonString(s string) error
func (*ListLayersRequest) ToJsonString ¶
func (r *ListLayersRequest) ToJsonString() string
type ListLayersResponse ¶
type ListLayersResponse struct {
*tchttp.BaseResponse
Response *struct {
// 层列表
Layers []*LayerVersionInfo `json:"Layers,omitempty" name:"Layers" list`
// 层总数
TotalCount *int64 `json:"TotalCount,omitempty" name:"TotalCount"`
// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
} `json:"Response"`
}
func NewListLayersResponse ¶
func NewListLayersResponse() (response *ListLayersResponse)
func (*ListLayersResponse) FromJsonString ¶
func (r *ListLayersResponse) FromJsonString(s string) error
func (*ListLayersResponse) ToJsonString ¶
func (r *ListLayersResponse) ToJsonString() string
type ListNamespacesRequest ¶
type ListNamespacesRequest struct {
*tchttp.BaseRequest
// 返回数据长度,默认值为 20
Limit *int64 `json:"Limit,omitempty" name:"Limit"`
// 数据的偏移量,默认值为 0
Offset *int64 `json:"Offset,omitempty" name:"Offset"`
// 根据哪个字段进行返回结果排序,支持以下字段:Name,Updatetime
Orderby *string `json:"Orderby,omitempty" name:"Orderby"`
// 以升序还是降序的方式返回结果,可选值 ASC 和 DESC
Order *string `json:"Order,omitempty" name:"Order"`
}
func NewListNamespacesRequest ¶
func NewListNamespacesRequest() (request *ListNamespacesRequest)
func (*ListNamespacesRequest) FromJsonString ¶
func (r *ListNamespacesRequest) FromJsonString(s string) error
func (*ListNamespacesRequest) ToJsonString ¶
func (r *ListNamespacesRequest) ToJsonString() string
type ListNamespacesResponse ¶
type ListNamespacesResponse struct {
*tchttp.BaseResponse
Response *struct {
// namespace详情
Namespaces []*Namespace `json:"Namespaces,omitempty" name:"Namespaces" list`
// 返回的namespace数量
TotalCount *int64 `json:"TotalCount,omitempty" name:"TotalCount"`
// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
} `json:"Response"`
}
func NewListNamespacesResponse ¶
func NewListNamespacesResponse() (response *ListNamespacesResponse)
func (*ListNamespacesResponse) FromJsonString ¶
func (r *ListNamespacesResponse) FromJsonString(s string) error
func (*ListNamespacesResponse) ToJsonString ¶
func (r *ListNamespacesResponse) ToJsonString() string
type ListVersionByFunctionRequest ¶
type ListVersionByFunctionRequest struct {
*tchttp.BaseRequest
// 函数名
FunctionName *string `json:"FunctionName,omitempty" name:"FunctionName"`
// 函数所在命名空间
Namespace *string `json:"Namespace,omitempty" name:"Namespace"`
// 数据偏移量,默认值为 0
Offset *uint64 `json:"Offset,omitempty" name:"Offset"`
// 返回数据长度,默认值为 20
Limit *uint64 `json:"Limit,omitempty" name:"Limit"`
// 以升序还是降序的方式返回结果,可选值 ASC 和 DESC
Order *string `json:"Order,omitempty" name:"Order"`
// 根据哪个字段进行返回结果排序,支持以下字段:AddTime, ModTime
OrderBy *string `json:"OrderBy,omitempty" name:"OrderBy"`
}
func NewListVersionByFunctionRequest ¶
func NewListVersionByFunctionRequest() (request *ListVersionByFunctionRequest)
func (*ListVersionByFunctionRequest) FromJsonString ¶
func (r *ListVersionByFunctionRequest) FromJsonString(s string) error
func (*ListVersionByFunctionRequest) ToJsonString ¶
func (r *ListVersionByFunctionRequest) ToJsonString() string
type ListVersionByFunctionResponse ¶
type ListVersionByFunctionResponse struct {
*tchttp.BaseResponse
Response *struct {
// 函数版本。
FunctionVersion []*string `json:"FunctionVersion,omitempty" name:"FunctionVersion" list`
// 函数版本列表。
// 注意:此字段可能返回 null,表示取不到有效值。
Versions []*FunctionVersion `json:"Versions,omitempty" name:"Versions" list`
// 函数版本总数。
// 注意:此字段可能返回 null,表示取不到有效值。
TotalCount *uint64 `json:"TotalCount,omitempty" name:"TotalCount"`
// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
} `json:"Response"`
}
func NewListVersionByFunctionResponse ¶
func NewListVersionByFunctionResponse() (response *ListVersionByFunctionResponse)
func (*ListVersionByFunctionResponse) FromJsonString ¶
func (r *ListVersionByFunctionResponse) FromJsonString(s string) error
func (*ListVersionByFunctionResponse) ToJsonString ¶
func (r *ListVersionByFunctionResponse) ToJsonString() string
type LogFilter ¶
type LogFilter struct {
// filter.RetCode的取值有:
// not0 表示只返回错误日志,
// is0 表示只返回正确日志,
// TimeLimitExceeded 返回函数调用发生超时的日志,
// ResourceLimitExceeded 返回函数调用发生资源超限的日志,
// UserCodeException 返回函数调用发生用户代码错误的日志,
// 无输入则返回所有日志。
RetCode *string `json:"RetCode,omitempty" name:"RetCode"`
}
type LogSearchContext ¶
type LogSearchContext struct {
// 偏移量
Offset *string `json:"Offset,omitempty" name:"Offset"`
// 日志条数
Limit *uint64 `json:"Limit,omitempty" name:"Limit"`
// 日志关键词
Keyword *string `json:"Keyword,omitempty" name:"Keyword"`
// 日志类型,支持Application和Platform,默认为Application
Type *string `json:"Type,omitempty" name:"Type"`
}
type Namespace ¶
type Namespace struct {
// 命名空间创建时间
ModTime *string `json:"ModTime,omitempty" name:"ModTime"`
// 命名空间修改时间
AddTime *string `json:"AddTime,omitempty" name:"AddTime"`
// 命名空间描述
Description *string `json:"Description,omitempty" name:"Description"`
// 命名空间名称
Name *string `json:"Name,omitempty" name:"Name"`
// 默认default,TCB表示是小程序云开发创建的
Type *string `json:"Type,omitempty" name:"Type"`
}
type PublicNetConfigOut ¶
type PublicNetConfigOut struct {
// 是否开启公网访问能力取值['DISABLE','ENABLE']
PublicNetStatus *string `json:"PublicNetStatus,omitempty" name:"PublicNetStatus"`
// Eip配置
EipConfig *EipConfigOut `json:"EipConfig,omitempty" name:"EipConfig"`
}
type PublishLayerVersionRequest ¶
type PublishLayerVersionRequest struct {
*tchttp.BaseRequest
// 层名称,支持26个英文字母大小写、数字、连接符和下划线,第一个字符只能以字母开头,最后一个字符不能为连接符或者下划线,名称长度1-64
LayerName *string `json:"LayerName,omitempty" name:"LayerName"`
// 层适用的运行时,可多选,可选的值对应函数的 Runtime 可选值。
CompatibleRuntimes []*string `json:"CompatibleRuntimes,omitempty" name:"CompatibleRuntimes" list`
// 层的文件来源或文件内容
Content *Code `json:"Content,omitempty" name:"Content"`
// 层的版本的描述
Description *string `json:"Description,omitempty" name:"Description"`
// 层的软件许可证
LicenseInfo *string `json:"LicenseInfo,omitempty" name:"LicenseInfo"`
}
func NewPublishLayerVersionRequest ¶
func NewPublishLayerVersionRequest() (request *PublishLayerVersionRequest)
func (*PublishLayerVersionRequest) FromJsonString ¶
func (r *PublishLayerVersionRequest) FromJsonString(s string) error
func (*PublishLayerVersionRequest) ToJsonString ¶
func (r *PublishLayerVersionRequest) ToJsonString() string
type PublishLayerVersionResponse ¶
type PublishLayerVersionResponse struct {
*tchttp.BaseResponse
Response *struct {
// 本次创建的层的版本号
LayerVersion *int64 `json:"LayerVersion,omitempty" name:"LayerVersion"`
// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
} `json:"Response"`
}
func NewPublishLayerVersionResponse ¶
func NewPublishLayerVersionResponse() (response *PublishLayerVersionResponse)
func (*PublishLayerVersionResponse) FromJsonString ¶
func (r *PublishLayerVersionResponse) FromJsonString(s string) error
func (*PublishLayerVersionResponse) ToJsonString ¶
func (r *PublishLayerVersionResponse) ToJsonString() string
type PublishVersionRequest ¶
type PublishVersionRequest struct {
*tchttp.BaseRequest
// 发布函数的名称
FunctionName *string `json:"FunctionName,omitempty" name:"FunctionName"`
// 函数的描述
Description *string `json:"Description,omitempty" name:"Description"`
// 函数的命名空间
Namespace *string `json:"Namespace,omitempty" name:"Namespace"`
}
func NewPublishVersionRequest ¶
func NewPublishVersionRequest() (request *PublishVersionRequest)
func (*PublishVersionRequest) FromJsonString ¶
func (r *PublishVersionRequest) FromJsonString(s string) error
func (*PublishVersionRequest) ToJsonString ¶
func (r *PublishVersionRequest) ToJsonString() string
type PublishVersionResponse ¶
type PublishVersionResponse struct {
*tchttp.BaseResponse
Response *struct {
// 函数的版本
FunctionVersion *string `json:"FunctionVersion,omitempty" name:"FunctionVersion"`
// 代码大小
CodeSize *int64 `json:"CodeSize,omitempty" name:"CodeSize"`
// 最大可用内存
MemorySize *int64 `json:"MemorySize,omitempty" name:"MemorySize"`
// 函数的描述
Description *string `json:"Description,omitempty" name:"Description"`
// 函数的入口
Handler *string `json:"Handler,omitempty" name:"Handler"`
// 函数的超时时间
Timeout *int64 `json:"Timeout,omitempty" name:"Timeout"`
// 函数的运行环境
Runtime *string `json:"Runtime,omitempty" name:"Runtime"`
// 函数的命名空间
Namespace *string `json:"Namespace,omitempty" name:"Namespace"`
// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
} `json:"Response"`
}
func NewPublishVersionResponse ¶
func NewPublishVersionResponse() (response *PublishVersionResponse)
func (*PublishVersionResponse) FromJsonString ¶
func (r *PublishVersionResponse) FromJsonString(s string) error
func (*PublishVersionResponse) ToJsonString ¶
func (r *PublishVersionResponse) ToJsonString() string
type Result ¶
type Result struct {
// 表示执行过程中的日志输出,异步调用返回为空
Log *string `json:"Log,omitempty" name:"Log"`
// 表示执行函数的返回,异步调用返回为空
RetMsg *string `json:"RetMsg,omitempty" name:"RetMsg"`
// 表示执行函数的错误返回信息,异步调用返回为空
ErrMsg *string `json:"ErrMsg,omitempty" name:"ErrMsg"`
// 执行函数时的内存大小,单位为Byte,异步调用返回为空
MemUsage *int64 `json:"MemUsage,omitempty" name:"MemUsage"`
// 表示执行函数的耗时,单位是毫秒,异步调用返回为空
Duration *float64 `json:"Duration,omitempty" name:"Duration"`
// 表示函数的计费耗时,单位是毫秒,异步调用返回为空
BillDuration *int64 `json:"BillDuration,omitempty" name:"BillDuration"`
// 此次函数执行的Id
FunctionRequestId *string `json:"FunctionRequestId,omitempty" name:"FunctionRequestId"`
// 0为正确,异步调用返回为空
InvokeResult *int64 `json:"InvokeResult,omitempty" name:"InvokeResult"`
}
type Trigger ¶
type Trigger struct {
// 触发器最后修改时间
ModTime *string `json:"ModTime,omitempty" name:"ModTime"`
// 触发器类型
Type *string `json:"Type,omitempty" name:"Type"`
// 触发器详细配置
TriggerDesc *string `json:"TriggerDesc,omitempty" name:"TriggerDesc"`
// 触发器名称
TriggerName *string `json:"TriggerName,omitempty" name:"TriggerName"`
// 触发器创建时间
AddTime *string `json:"AddTime,omitempty" name:"AddTime"`
// 使能开关
Enable *int64 `json:"Enable,omitempty" name:"Enable"`
// 客户自定义参数
CustomArgument *string `json:"CustomArgument,omitempty" name:"CustomArgument"`
}
type UpdateFunctionCodeRequest ¶
type UpdateFunctionCodeRequest struct {
*tchttp.BaseRequest
// 函数处理方法名称。名称格式支持“文件名称.函数名称”形式,文件名称和函数名称之间以"."隔开,文件名称和函数名称要求以字母开始和结尾,中间允许插入字母、数字、下划线和连接符,文件名称和函数名字的长度要求 2-60 个字符
Handler *string `json:"Handler,omitempty" name:"Handler"`
// 要修改的函数名称
FunctionName *string `json:"FunctionName,omitempty" name:"FunctionName"`
// 对象存储桶名称
CosBucketName *string `json:"CosBucketName,omitempty" name:"CosBucketName"`
// 对象存储对象路径
CosObjectName *string `json:"CosObjectName,omitempty" name:"CosObjectName"`
// 包含函数代码文件及其依赖项的 zip 格式文件,使用该接口时要求将 zip 文件的内容转成 base64 编码,最大支持20M
ZipFile *string `json:"ZipFile,omitempty" name:"ZipFile"`
// 函数所属命名空间
Namespace *string `json:"Namespace,omitempty" name:"Namespace"`
// 对象存储的地域,注:北京分为ap-beijing和ap-beijing-1
CosBucketRegion *string `json:"CosBucketRegion,omitempty" name:"CosBucketRegion"`
// 函数所属环境
EnvId *string `json:"EnvId,omitempty" name:"EnvId"`
// 在更新时是否同步发布新版本,默认为:FALSE,不发布
Publish *string `json:"Publish,omitempty" name:"Publish"`
// 函数代码
Code *Code `json:"Code,omitempty" name:"Code"`
// 代码来源方式,支持以下'ZipFile', 'Cos', 'Inline', 'TempCos', 'Git' 之一,使用Git来源必须指定此字段
CodeSource *string `json:"CodeSource,omitempty" name:"CodeSource"`
}
func NewUpdateFunctionCodeRequest ¶
func NewUpdateFunctionCodeRequest() (request *UpdateFunctionCodeRequest)
func (*UpdateFunctionCodeRequest) FromJsonString ¶
func (r *UpdateFunctionCodeRequest) FromJsonString(s string) error
func (*UpdateFunctionCodeRequest) ToJsonString ¶
func (r *UpdateFunctionCodeRequest) ToJsonString() string
type UpdateFunctionCodeResponse ¶
type UpdateFunctionCodeResponse struct {
*tchttp.BaseResponse
Response *struct {
// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
} `json:"Response"`
}
func NewUpdateFunctionCodeResponse ¶
func NewUpdateFunctionCodeResponse() (response *UpdateFunctionCodeResponse)
func (*UpdateFunctionCodeResponse) FromJsonString ¶
func (r *UpdateFunctionCodeResponse) FromJsonString(s string) error
func (*UpdateFunctionCodeResponse) ToJsonString ¶
func (r *UpdateFunctionCodeResponse) ToJsonString() string
type UpdateFunctionConfigurationRequest ¶
type UpdateFunctionConfigurationRequest struct {
*tchttp.BaseRequest
// 要修改的函数名称
FunctionName *string `json:"FunctionName,omitempty" name:"FunctionName"`
// 函数描述。最大支持 1000 个英文字母、数字、空格、逗号和英文句号,支持中文
Description *string `json:"Description,omitempty" name:"Description"`
// 函数运行时内存大小,默认为 128 M,可选范 128 M-1536 M
MemorySize *int64 `json:"MemorySize,omitempty" name:"MemorySize"`
// 函数最长执行时间,单位为秒,可选值范 1-300 秒,默认为 3 秒
Timeout *int64 `json:"Timeout,omitempty" name:"Timeout"`
// 函数运行环境,目前仅支持 Python2.7,Python3.6,Nodejs6.10,PHP5, PHP7,Golang1 和 Java8
Runtime *string `json:"Runtime,omitempty" name:"Runtime"`
// 函数的环境变量
Environment *Environment `json:"Environment,omitempty" name:"Environment"`
// 函数所属命名空间
Namespace *string `json:"Namespace,omitempty" name:"Namespace"`
// 函数的私有网络配置
VpcConfig *VpcConfig `json:"VpcConfig,omitempty" name:"VpcConfig"`
// 函数绑定的角色
Role *string `json:"Role,omitempty" name:"Role"`
// 日志投递到的cls日志集ID
ClsLogsetId *string `json:"ClsLogsetId,omitempty" name:"ClsLogsetId"`
// 日志投递到的cls Topic ID
ClsTopicId *string `json:"ClsTopicId,omitempty" name:"ClsTopicId"`
// 在更新时是否同步发布新版本,默认为:FALSE,不发布
Publish *string `json:"Publish,omitempty" name:"Publish"`
// 是否开启L5访问能力,TRUE 为开启,FALSE为关闭
L5Enable *string `json:"L5Enable,omitempty" name:"L5Enable"`
// 函数要关联的层版本列表,层的版本会按照在列表中顺序依次覆盖。
Layers []*LayerVersionSimple `json:"Layers,omitempty" name:"Layers" list`
// 函数关联的死信队列信息
DeadLetterConfig *DeadLetterConfig `json:"DeadLetterConfig,omitempty" name:"DeadLetterConfig"`
// 是否开启Ons访问能力,TRUE 为开启,FALSE为关闭
OnsEnable *string `json:"OnsEnable,omitempty" name:"OnsEnable"`
}
func NewUpdateFunctionConfigurationRequest ¶
func NewUpdateFunctionConfigurationRequest() (request *UpdateFunctionConfigurationRequest)
func (*UpdateFunctionConfigurationRequest) FromJsonString ¶
func (r *UpdateFunctionConfigurationRequest) FromJsonString(s string) error
func (*UpdateFunctionConfigurationRequest) ToJsonString ¶
func (r *UpdateFunctionConfigurationRequest) ToJsonString() string
type UpdateFunctionConfigurationResponse ¶
type UpdateFunctionConfigurationResponse struct {
*tchttp.BaseResponse
Response *struct {
// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
} `json:"Response"`
}
func NewUpdateFunctionConfigurationResponse ¶
func NewUpdateFunctionConfigurationResponse() (response *UpdateFunctionConfigurationResponse)
func (*UpdateFunctionConfigurationResponse) FromJsonString ¶
func (r *UpdateFunctionConfigurationResponse) FromJsonString(s string) error
func (*UpdateFunctionConfigurationResponse) ToJsonString ¶
func (r *UpdateFunctionConfigurationResponse) ToJsonString() string
type UpdateNamespaceRequest ¶
type UpdateNamespaceRequest struct {
*tchttp.BaseRequest
// 命名空间名称
Namespace *string `json:"Namespace,omitempty" name:"Namespace"`
// 命名空间描述
Description *string `json:"Description,omitempty" name:"Description"`
}
func NewUpdateNamespaceRequest ¶
func NewUpdateNamespaceRequest() (request *UpdateNamespaceRequest)
func (*UpdateNamespaceRequest) FromJsonString ¶
func (r *UpdateNamespaceRequest) FromJsonString(s string) error
func (*UpdateNamespaceRequest) ToJsonString ¶
func (r *UpdateNamespaceRequest) ToJsonString() string
type UpdateNamespaceResponse ¶
type UpdateNamespaceResponse struct {
*tchttp.BaseResponse
Response *struct {
// 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
} `json:"Response"`
}
func NewUpdateNamespaceResponse ¶
func NewUpdateNamespaceResponse() (response *UpdateNamespaceResponse)
func (*UpdateNamespaceResponse) FromJsonString ¶
func (r *UpdateNamespaceResponse) FromJsonString(s string) error
func (*UpdateNamespaceResponse) ToJsonString ¶
func (r *UpdateNamespaceResponse) ToJsonString() string
Click to show internal directories.
Click to hide internal directories.