Versions in this module Expand all Collapse all v0 v0.9.6 Nov 26, 2019 Changes in this version + const AliasNameInvalid + const FunctionCodeInvalid + const InvocationTypeDryRun + const InvocationTypeEvent + const InvocationTypeRequestResponse + const LogTypeNone + const LogTypeTail + const MemoryBase + const PaginateInvalid + const QualifierInvalid + const RegularAliasName + const RegularFunctionBRN + const RegularFunctionName + const RegularVersion + const SourceTypeCDN + const SourceTypeCrontab + const SourceTypeDuEdge + const SourceTypeDuerOS + const SourceTypeHTTP + const TriggerTypeGeneric + const TriggerTypeHTTP + const VersionInvalid + var InvalidArgument = errors.New("invalid arguments") + var MethodIllegal = errors.New("invalid request method") + var ParseJsonError = errors.New("could not parse payload into json") + var URIIllegal = errors.New("invalid request uri") + func DeleteAlias(cli bce.Client, args *DeleteAliasArgs) error + func DeleteFunction(cli bce.Client, args *DeleteFunctionArgs) error + func DeleteReservedConcurrentExecutions(cli bce.Client, args *DeleteReservedConcurrentExecutionsArgs) error + func DeleteTrigger(cli bce.Client, args *DeleteTriggerArgs) error + func SetReservedConcurrentExecutions(cli bce.Client, args *ReservedConcurrentExecutionsArgs) error + type Alias struct + AliasArn string + AliasBrn string + CreatedAt time.Time + Description string + FunctionName string + FunctionVersion string + Name string + Uid string + UpdatedAt time.Time + type BosEventType string + const BosEventTypeAppendObject + const BosEventTypeCompleteMultipartObject + const BosEventTypeCopyObject + const BosEventTypePostObject + const BosEventTypePutObject + type BosTriggerData struct + EventType []BosEventType + Name string + Resource string + Status string + type CDNEventType string + const CDNEventTypeCachedObjectsBlocked + const CDNEventTypeCachedObjectsPushed + const CDNEventTypeCachedObjectsRefreshed + const CDNEventTypeCdnDomainCreated + const CDNEventTypeCdnDomainDeleted + const CDNEventTypeCdnDomainStarted + const CDNEventTypeCdnDomainStopped + const CDNEventTypeLogFileCreated + type CDNTriggerData struct + Domains []string + EventType CDNEventType + Remark string + Status string + type CodeFile struct + BosBucket string + BosObject string + DryRun bool + Publish bool + ZipFile []byte + type CodeStorage struct + Location string + RepositoryType string + type CreateAliasArgs struct + Description string + FunctionName string + FunctionVersion string + Name string + func (args CreateAliasArgs) Validate() error + type CreateAliasResult Alias + func CreateAlias(cli bce.Client, args *CreateAliasArgs) (*CreateAliasResult, error) + type CreateFunctionArgs struct + Code *CodeFile + Description string + Environment *Environment + FunctionName string + Handler string + LogBosDir string + LogType string + MemorySize int + Runtime string + Timeout int + VpcConfig *VpcConfig + func (args CreateFunctionArgs) Validate() error + type CreateFunctionResult Function + func CreateFunction(cli bce.Client, args *CreateFunctionArgs) (*CreateFunctionResult, error) + type CreateTriggerArgs struct + Data interface{} + Source SourceType + Target string + func (args CreateTriggerArgs) Validate() error + type CreateTriggerResult struct + Relation *RelationInfo + func CreateTrigger(cli bce.Client, args *CreateTriggerArgs) (*CreateTriggerResult, error) + type CrontabTriggerData struct + Brn string + Enabled string + Input string + Name string + ScheduleExpression string + type DeleteAliasArgs struct + AliasName string + FunctionName string + func (args DeleteAliasArgs) Validate() error + type DeleteFunctionArgs struct + FunctionName string + Qualifier string + func (args DeleteFunctionArgs) Validate() error + type DeleteReservedConcurrentExecutionsArgs struct + FunctionName string + func (args DeleteReservedConcurrentExecutionsArgs) Validate() error + type DeleteTriggerArgs struct + RelationId string + Source SourceType + Target string + func (args DeleteTriggerArgs) Validate() error + type Environment struct + Variables map[string]string + type Function struct + CodeID string + CodeSha256 string + CodeSize int32 + CommitID string + Description string + Environment *Environment + FunctionArn string + FunctionBrn string + FunctionName string + Handler string + LastModified time.Time + LogBosDir string + LogType string + MemorySize int + Region string + Role string + Runtime string + SourceTag string + Timeout int + Uid string + UpdatedAt time.Time + Version string + VersionDesc string + VpcConfig *VpcConfig + type FunctionInfo struct + Code *CodeStorage + Configuration *Function + type GetAliasArgs struct + AliasName string + FunctionName string + func (args GetAliasArgs) Validate() error + type GetAliasResult Alias + func GetAlias(cli bce.Client, args *GetAliasArgs) (*GetAliasResult, error) + type GetFunctionArgs struct + FunctionName string + Qualifier string + func (args GetFunctionArgs) Validate() error + type GetFunctionConfigurationArgs struct + FunctionName string + Qualifier string + func (args GetFunctionConfigurationArgs) Validate() error + type GetFunctionConfigurationResult Function + func GetFunctionConfiguration(cli bce.Client, args *GetFunctionConfigurationArgs) (*GetFunctionConfigurationResult, error) + type GetFunctionResult struct + Code CodeStorage + Configuration Function + func GetFunction(cli bce.Client, args *GetFunctionArgs) (*GetFunctionResult, error) + type HTTPMethod = string + const DELETE + const GET + const HEAD + const OPTIONS + const POST + const PUT + type HttpTriggerData struct + AuthType string + Method string + ResourcePath string + type InvocationType string + type InvocationsArgs struct + FunctionName string + InvocationType InvocationType + LogType LogType + Payload interface{} + Qualifier string + func (args InvocationsArgs) Validate() error + type InvocationsResult struct + FunctionError string + LogResult string + Payload string + func Invocations(cli bce.Client, args *InvocationsArgs) (*InvocationsResult, error) + type ListAliasesArgs struct + FunctionName string + FunctionVersion string + Marker int + MaxItems int + func (args ListAliasesArgs) Validate() error + type ListAliasesResult struct + Aliases []*Alias + NextMarker string + func ListAliases(cli bce.Client, args *ListAliasesArgs) (*ListAliasesResult, error) + type ListFunctionsArgs struct + FunctionVersion string + Marker int + MaxItems int + func (args ListFunctionsArgs) Validate() error + type ListFunctionsResult struct + Functions []*Function + NextMarker string + func ListFunctions(cli bce.Client, args *ListFunctionsArgs) (*ListFunctionsResult, error) + type ListTriggersArgs struct + FunctionBrn string + func (args ListTriggersArgs) Validate() error + type ListTriggersResult struct + Relation []*RelationInfo + func ListTriggers(cli bce.Client, args *ListTriggersArgs) (*ListTriggersResult, error) + type ListVersionsByFunctionArgs struct + FunctionName string + Marker int + MaxItems int + func (args ListVersionsByFunctionArgs) Validate() error + type ListVersionsByFunctionResult struct + NextMarker string + Versions []*Function + func ListVersionsByFunction(cli bce.Client, args *ListVersionsByFunctionArgs) (*ListVersionsByFunctionResult, error) + type LogType string + type Operation struct + HTTPMethod HTTPMethod + HTTPUri string + type PublishVersionArgs struct + CodeSha256 string + Description string + FunctionName string + func (args PublishVersionArgs) Validate() error + type PublishVersionResult Function + func PublishVersion(cli bce.Client, args *PublishVersionArgs) (*PublishVersionResult, error) + type RelationInfo struct + Data interface{} + RelationId string + Sid string + Source SourceType + Target string + type ReservedConcurrentExecutionsArgs struct + FunctionName string + ReservedConcurrentExecutions int + func (args ReservedConcurrentExecutionsArgs) Validate() error + type SourceType string + type TriggerType string + type UpdateAliasArgs struct + AliasName string + Description string + FunctionName string + FunctionVersion string + func (args UpdateAliasArgs) Validate() error + type UpdateAliasResult Alias + func UpdateAlias(cli bce.Client, args *UpdateAliasArgs) (*UpdateAliasResult, error) + type UpdateFunctionCodeArgs struct + BosBucket string + BosObject string + DryRun bool + FunctionName string + Publish bool + ZipFile []byte + func (args UpdateFunctionCodeArgs) Validate() error + type UpdateFunctionCodeResult Function + func UpdateFunctionCode(cli bce.Client, args *UpdateFunctionCodeArgs) (*UpdateFunctionCodeResult, error) + type UpdateFunctionConfigurationArgs struct + Description string + Environment *Environment + FunctionName string + Handler string + LogBosDir string + LogType string + MemorySize int + Runtime string + Timeout int + VpcConfig *VpcConfig + func (args UpdateFunctionConfigurationArgs) Validate() error + type UpdateFunctionConfigurationResult Function + func UpdateFunctionConfiguration(cli bce.Client, args *UpdateFunctionConfigurationArgs) (*UpdateFunctionConfigurationResult, error) + type UpdateTriggerArgs struct + Data interface{} + RelationId string + Source SourceType + Target string + func (args UpdateTriggerArgs) Validate() error + type UpdateTriggerResult struct + Relation *RelationInfo + func UpdateTrigger(cli bce.Client, args *UpdateTriggerArgs) (*UpdateTriggerResult, error) + type Validator interface + Validate func() error + type VpcConfig struct + SecurityGroupIds []string + SubnetIds []string + VpcId string