# README
Google Cloud Functions Service
This service is google.golang.org/api/cloudfunctions/v1beta2.Service proxy
To check all supported method run
endly -s='gcp/cloudfunctions'
To check method contract run endly -s='gcp/cloudfunctions' -a=methodName
endly -s='gcp/cloudfunctions' -a='operationsList'
References:
Example
Testing
endly -r=test
defaults:
credentials: am
pipeline:
deploy:
action: gcp/cloudfunctions:deploy
'@name': HelloWorld
entryPoint: HelloWorldFn
runtime: go111
source:
URL: test/
test:
action: gcp/cloudfunctions:call
logging: false
'@name': HelloWorld
data:
from: Endly
info:
action: print
message: $test.Result
assert:
action: validator:assert
expect: /Endly/
actual: $test.Result
undeploy:
action: gcp/cloudfunctions:delete
'@name': HelloWorld
Deploying function
- Deploying http trigger function with archive
@deploy.yamlendly -r=deploy
pipeline: deploy: action: gcp/cloudfunctions:deploy '@name': HelloWorld runtime: go111 source: URL: test/hello.zip
- Deploying http trigger function with source path (use .gcloudignore to control upload)
@deploy.yaml
pipeline: deploy: action: gcp/cloudfunctions:deploy '@name': HelloWorldFn entryPoint Hello runtime: go111 source: URL: test/
- Deploying with eventTrigger
@deploy_with_trigger
pipeline: deploy: action: gcp/cloudfunctions:deploy '@name': MyFunction entryPoint: MyFunctionFN runtime: go111 eventTrigger: eventType: google.storage.object.finalize resource: projects/_/buckets/myBucket source: URL: test/
Calling function
- Calling from workflow
@call.yamlendly -r=call
pipeline: call: action: gcp/cloudfunctions:call logging: false '@name': HelloWorld data: from: Endly
- Calling from cli
endly -run='gcp/cloudfunctions:call' name=HelloWorld data.from=Endly
Getting function info
endly -run='gcp/cloudfunctions:get' name=HelloWorld
Listing functions
endly -run='gcp/cloudfunctions:list'
# Functions
No description provided by the author
No description provided by the author
New creates a new Dataflow service.
# Constants
ServiceID Google Cloud Function Service Id.
# Structs
CallRequest represents a call request.
CtxClient represents context client.
DeleteRequest represents delete function requests.
DeleteResponse represents delete response.
DeployRequest represents deploy request.
DeployResponse represents deploy response.
GetRequest represents get function requests.
GetRequest represents list function requests.
GetRequest represents list function response.