package
1.0.4
Repository: https://github.com/aliyun/fcli.git
Documentation: pkg.go.dev

# Functions

AttachPolicy attach the policy to the specified role.
CheckImageExist Check local image exist.
CheckPolicyResourcePermission :.
CreatePolicy create the RAM policy.
CreatePolicyVersion update resource permission.
CreateRole create the RAM role.
DownloadFromURL download file from the specified url.
GetAllLogsWithinTimeRange ...
GetBindingCmd return cmd and bind with out/err/in.
GetDefaultPolicyVersion :.
GetEnvSetting Get env setting from filePath.
GetLocalImageDigest Get local docker image digest: sha256:xxxxxxx.
GetLogs read the log data from loghub with the count limit.
GetPublicImageDigest Get docker hub public image digest: sha256:xxxxxxx.
GetRegionNoForEndpoint get region no from fc endpoint for endpoint.
GetRegionNoForSLSEndpoint get region no from fc endpoint for slsendpoint.
GetRegions get region list of fc.
GetTriggerConfig ...
GetUIDFromEndpoint extract the uid from the fc service endpoint.
IsFromChinaMotherland Judgment area.
NewExecutableSubCmd in unix.
NewFClient create a fc client.
NewGlobalConfig create a global config.
NewRAMClient create ram client.
NewSLSClient create sls client.
ParseAdditionalVersionWeight parse route string to map and return.
PrettyPrintLog ..
PrettyPrintLogs ..

# Constants

EndpointFmt fc endpoint fmt.
GetLogsIntervalTimeInSecs read logs for the function in streaming way https://help.aliyun.com/document_detail/29029.html?spm=5176.doc29025.6.682.h3H3ac 根据loghub api说明文档,实时数据写入至可查询的延时为1分钟 因此查询间隔为1分钟,如果过短则会出现数据写入后查询时没有数据的情况,查询区间继续往下走则会漏掉这部分数据.
IncompleteProgress defines progress status in GetLogs with specific query.
KeyValueDelimiter defines key value delimiter of map params.
LogEndpointFmt loghub endpoint fmt.
MaxLineNumPerGet defines GetLogs max lines per times.
RuntimeCustomContainer const for custom-container runtime.
TimeLayoutInLogs defines input time format for log cmds.

# Structs

GlobalConfig define the global configurations.