package
0.78.0
Repository: https://github.com/viant/endly.git
Documentation: pkg.go.dev

# 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

@test.yaml

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
  1. Deploying http trigger function with archive
    endly -r=deploy
    
    @deploy.yaml
    pipeline:
      deploy:
        action: gcp/cloudfunctions:deploy
        '@name': HelloWorld
        runtime: go111
        source:
          URL: test/hello.zip
    
    
  2. 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/
    
  3. 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
  1. Calling from workflow
    endly -r=call
    
    @call.yaml
    pipeline:
      call:
        action: gcp/cloudfunctions:call
        logging: false
       '@name': HelloWorld
        data:
          from: Endly
    
  2. 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.