MCPcopy Create free account

hub / github.com/baidubce/bce-sdk-go / functions

Functions8,554 in github.com/baidubce/bce-sdk-go

MethodReplaceSecurityGroups
ReplaceSecurityGroups - replace SecurityGroup to instances PARAMS: - args: http request body RETURNS: - error: nil if success otherwise the specific
services/ddc/v2/ddcrds.go:1368
MethodRequest
(method, uri string, body interface{})
services/gaiadb/gaiadb.go:27
MethodRequestId
()
bce/response.go:52
FunctionRequireRepairAuth
RequireRepairAuth
examples/cce/remedy/example_request_auth_instancegroup_remedy_task.go:12
MethodReserve
Reserve is shorthand for ReserveN(time.Now(), 1).
rate/rate.go:207
MethodResetPassword
ResetPassword - reset login password PARAMS: - instanceId: the specific instance ID - ResetPasswordArgs: the arguments to reset password RETURNS: -
services/eccr/api.go:336
FunctionResizeCsnBp
()
examples/csn/example_resize_csn_bp.go:10
FunctionResizeEip
()
examples/eip/example_eip_resize_eip.go:23
FunctionResizeEipBp
()
examples/eip/example_eipbp_resize_eipbp.go:23
FunctionResizeEipGroupBandWidth
()
examples/eip/example_eipgroup_resize_eipgroup_bandwidth.go:23
FunctionResizeIPv6Gateway
以下为示例代码,实际开发中请根据需要进行修改和补充
examples/vpc/ipv6gateway/example_resize_ipv6gateway.go:11
FunctionResizeLoadBalancer
()
examples/blb/example_resize_loadbalancer.go:8
FunctionResizePeerConn
()
examples/vpc/peerconn/example_resize_peer_conn.go:8
MethodResizeRds
ResizeRds - resize an RDS with the specific parameters PARAMS: - instanceId: the specific instanceId - args: the arguments to resize an RDS RETURNS:
services/ddc/ddc.go:1707
MethodResizeRds
ResizeRds - resize an RDS with the specific parameters PARAMS: - instanceId: the specific instanceId - args: the arguments to resize an RDS RETURNS:
services/ddc/v2/ddcrds.go:406
FunctionRestoreDays
An option to set x-bce-restore-days header
services/bos/api/option.go:313
FunctionRestoreRecycleEip
()
examples/eip/example_eip_restore_recycle_eip.go:19
FunctionRestoreTier
An option to set x-bce-restore-tier header Expedited:加急取回,30min内完成取回 Standard:标准取回,2~5小时内完成取回 LowCost:延缓取回,12小时内完成取回
services/bos/api/option.go:308
FunctionRetain
()
examples/cloudmemory/example_retain.go:25
FunctionRetainAsync
()
examples/cloudmemory/example_retain_async.go:25
FunctionRevokeSecurityGroupRule
RevokeSecurityGroupRule - revoke a security group rule PARAMS: - securityGroupId: the specific securityGroup ID - args: the arguments to revoke secur
examples/bcc/securitygroup/example_revoke_securitygrouprule.go:18
MethodRfc3339Copy
Rfc3339Copy returns a copy of the Time at second-level precision.
services/cce/v2/types/k8stypes.go:113
MethodRoundTrip
(*http.Request)
bce/client_test.go:29
MethodRoundTrip
(*http.Request)
http/client_test.go:25
MethodRoundTrip
(*http.Request)
services/bos/client_test.go:82
FunctionSSECKey
An option to set x-bce-server-side-encryption-customer-key header
services/bos/api/option.go:411
FunctionSSECKeyMd5
An option to set x-bce-server-side-encryption-customer-key-md5 header
services/bos/api/option.go:416
FunctionSSEKmsKeyId
An option to set x-bce-server-side-encryption-bos-key-id header
services/bos/api/option.go:421
FunctionScaleService
()
examples/aihc/inference/example_app.go:98
MethodScaleService
ScaleService - scale service with the specific parameters PARAMS: - args: the arguments to service details RETURNS: - *ScaleServiceResult: the resul
services/aihc/inference/v2/client.go:155
FunctionSecurityToken
An option to set X-Bce-Security-Token header
services/bos/api/option.go:233
MethodSendCustomRequest
SendCustomRequest - send a HTTP request, and response data or error, it use the default times for retrying PARAMS: - method: the HTTP requested metho
services/eo/client.go:64
MethodSendCustomRequest
SendCustomRequest - send a HTTP request, and response data or error, it use the default times for retrying PARAMS: - method: the HTTP requested metho
services/cdn/abroad/client.go:65
MethodSendRequest
SendRequest - the client performs sending the http request with retry policy and receive the response from the BCE services. PARAMS: - req: the reque
bce/client.go:119
FunctionSendRequestFromBytes
(cli bce.Client, req *BosRequest, resp *BosResponse, ctx *BosContext, content []byte)
services/bos/api/util.go:427
MethodSendRequestFromBytes
SendRequestFromBytes - the client performs sending the http request with retry policy and receive the response from the BCE services. PARAMS: - req:
bce/client.go:286
MethodSendRequestV2
(req *BceRequest, resp *BceResponse)
bce/client.go:196
FunctionServerSideEncryption
An option to set x-bce-server-side-encryption header, "AES256" or "SM4"
services/bos/api/option.go:406
FunctionServiceDetails
()
examples/aihc/inference/example_app.go:59
MethodServiceDetails
ServiceDetails - the details of service with the specific parameters PARAMS: - args: the arguments to service details RETURNS: - *ServiceDetailsResu
services/aihc/inference/v2/client.go:122
MethodSetAclUserAuthority
SetAclUserAuthority - set authority of an ACL user of a specified instance PARAMS: - instanceId: id of the instance - args: the arguments to set ACL
services/scs/scs.go:2064
MethodSetAutoScalingConfig
SetAutoScalingConfig - set memory auto scaling config of the instance PARAMS: - instanceId: id of the instance - args: the arguments containing memor
services/scs/scs.go:2265
MethodSetBceClient
(client *bce.BceClient)
services/aihc/dataset/client.go:44
MethodSetBceClient
(client *bce.BceClient)
services/aihc/dev/client.go:28
MethodSetBceClient
(client *bce.BceClient)
services/aihc/inference/v2/client.go:47
MethodSetBceClient
(client *bce.BceClient)
services/aihc/resource/client.go:43
MethodSetBurst
SetBurst is shorthand for SetBurstAt(time.Now(), newBurst).
rate/rate.go:318
MethodSetDeadline
(t time.Time)
http/client.go:176
MethodSetDomainOriginWithOptions
SetDomainOriginWithOptions - set the origin setting for the new For details, please refer https://cloud.baidu.com/doc/CDN-ABROAD/s/Gkbstcgaa PARAMS:
services/cdn/abroad/client.go:232
MethodSetHandler
(h Handler)
util/log/logger.go:289
FunctionSetHeader
(key string, value interface{})
services/bos/api/option.go:425
MethodSetInstanceNeedDrain
(instanceID string)
services/cce/v2/types/workflow.go:104
MethodSetLimitRate
Deprecated, please use SetTrafficLimit as substitute SetLimitRate - set limited speed PARAMS: - domain: the specified domain - limitRate: the limited
services/cdn/client.go:521
MethodSetLogDir
(dir string)
util/log/logger.go:291
FunctionSetLogFormat
SetLogFormat - set the log component of each record when logging it. The default log format is {FMT_LEVEL, FMT_LTIME, FMT_LOCATION, FMT_MSG}. PARAMS:
util/log/util.go:183
MethodSetLogFormat
(format []string)
util/log/logger.go:295
MethodSetLogLevel
(level Level)
util/log/logger.go:293
FunctionSetParam
(key string, value interface{})
services/bos/api/option.go:429
MethodSetPort
(port int)
http/request.go:124
MethodSetReservedConcurrentExecutions
SetReservedConcurrentExecutions - set a cfc function reserved concurrent executions PARAMS: - args: the arguments to set reserved concurrent executio
services/cfc/client.go:333
FunctionSetRotateSize
SetRotateSize - set the rotating size if logging to file and set the strategy of size. PARAMS: - size: the rotating size RETURNS: - error: check the
util/log/util.go:221
MethodSetRotateSize
(size int64)
util/log/logger.go:299
MethodSetRotateType
(rotate RotateStrategy)
util/log/logger.go:297
FunctionSetTlsVersions
SetTlsVersions - set some TLS versions that you want PARAMS: - cli: the client agent which can perform sending request - domain: the specified domain
services/cdn/api/domain_config.go:1906
MethodShouldRetry
(err BceError, attempts int)
bce/retry.go:37
MethodShouldRetry
(err BceError, attempts int)
bce/retry.go:62
FunctionShowSubnet
()
examples/vpc/subnet/example_get_subnet.go:9
FunctionShowVpc
()
examples/vpc/vpc/example_get_vpc.go:9
FunctionShowVpcIP
()
examples/vpc/vpc/example_get_vpc_ip.go:9
FunctionShutdownRelay
()
examples/vpc/vpc/example_shutdown_relay.go:9
MethodSign
Sign - generate the authorization string from the BceCredentials and SignOptions PARAMS: - req: *http.Request for this sign - cred: *BceCredentials t
auth/signer.go:72
MethodSnapshotAccessDetail
SnapshotAccessDetail - get snapshot access detail PARAMS: - args: the arguments to get snapshot access detail RETURNS: - *AccessDetail - error: nil
services/ddc/v2/ddcrds.go:1663
FunctionSourceOp
(source *api.ThumbnailSource)
services/media/client.go:156
FunctionStartAutoRenew
()
examples/eip/example_eip_start_auto_renew.go:23
MethodStartDevInstance
StartDevInstance 启动开发机实例
services/aihc/dev/client.go:88
MethodStatusCode
()
http/response.go:35
FunctionStopAutoRenew
()
examples/eip/example_eip_stop_auto_renew.go:21
FunctionStopDevInstance
()
examples/aihc/dev/example_dev.go:77
MethodStopDevInstance
StopDevInstance 停止开发机实例
services/aihc/dev/client.go:93
FunctionStopJob
()
examples/aihc/resource/example_aijob.go:135
MethodStopJob
(options *v1.StopAIJobOptions)
services/aihc/resource/client.go:279
MethodString
()
bce/config.go:84
MethodString
()
auth/signer.go:55
MethodString
()
auth/credentials.go:31
MethodSwitchInstance
SwitchInstance - main standby switching of the instance PARAMS: - instanceId: the id of the instance RETURNS: - error: nil if success otherwise the
services/ddc/v2/ddcrds.go:969
MethodSwitchMasterSlave
SwitchMasterSlave - switch master and slave of specified shards PARAMS: - instanceId: id of the instance - args: the arguments containing shards to s
services/scs/scs.go:2162
FunctionSwitchRoute
switchRoute PARAMS: - routeRuleId: 主路由规则ID - clientToken: the idempotent token, 可选 - action: 切换路由规则的动作,可选值:switchRouteHA RETURNS: - error: nil if su
examples/vpc/route/example_switchroute.go:18
FunctionSymlinkBucket
An option to set x-bce-symlink-bucket header
services/bos/api/option.go:334
FunctionSymlinkTarget
An option to set x-bce-symlink-target header
services/bos/api/option.go:329
MethodSyncGroupPreCheck
SyncGroupPreCheck - pre-check for creating a sync group PARAMS: - args: the arguments to pre-check sync group RETURNS: - *GroupPreCheckResult: resul
services/scs/scs.go:1811
MethodSyncInstances
SyncInstances 同步节点元信息
services/cce/v2/ccev2.go:74
FunctionTagList
An option to set X-Bce-Tag-List header
services/bos/api/option.go:243
FunctionTagging
An option to set X-Bce-Tagging header
services/bos/api/option.go:369
FunctionTaggingDirective
An option to set x-bce-tagging-directive header
services/bos/api/option.go:257
FunctionTestAbortMultipartUpload
(t *testing.T)
services/bos/client_test.go:2234
FunctionTestAbortMultipartUpload
(t *testing.T)
services/bos/api/multipart_test.go:579
FunctionTestAcceptPeerConnApply
(t *testing.T)
services/vpc/client_test.go:880
FunctionTestAcceptTransferReservedInstanceOrder
(t *testing.T)
services/bcc/client_test.go:2079
FunctionTestAccessKeyCreateAndDelete
(t *testing.T)
services/iam/client_test.go:455
FunctionTestAccessKeyDisableAndEnable
(t *testing.T)
services/iam/client_test.go:489
← previousnext →5,701–5,800 of 8,554, ranked by callers