cloudfunctions

package
v0.27.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 21, 2019 License: Apache-2.0 Imports: 5 Imported by: 0

README

Google Cloud Functions Service

This service is google.golang.org/api/cloudfunctions/v1beta2.Service proxy

To check all supported method run

     endly -s='gc/cloudfunctions'

To check method contract run endly -s='gc/cloudfunctions' -a=methodName

    endly -s='gc/cloudfunctions' -a='operationsList'

References:

Example
Calling function
endly -r=call

@call.yaml

defaults:
  credentials: am
pipeline:
  getInfo:
    action: gc/cloudfunctions:functionsGet
    '@name': projects/myProject/locations/us-central1/functions/HelloWorld
  test:
    action: print
    message: 'TriggerURL: $info.HttpsTrigger.Url'
  callFunction:
    action: gc/cloudfunctions:functionsCall
    '@name': 'projects/myProject/locations/us-central1/functions/HelloWorld1'
    callfunctionrequest:
      data:
  printOutput:
    action: print
    message: $callFunction.Result
Listing functions
endy -r=listFunctions

@listFunctions.yaml

defaults:
  credentials: am
pipeline:
  list:
    info:
      action: gc/cloudfunctions:functionsList
      parent: projects/myProject/locations/-
Operation list:
endy -r=list

@list.yaml

defaults:
  credentials: am
pipeline:
  list:
    info:
      action: gc/cloudfunctions:operationsList
      urlParams:
        filter: project:myProject,latest:true

Documentation

Index

Constants

View Source
const (
	//ServiceID Google Cloud Function Service Id
	ServiceID = "gc/cloudfunctions"
)

Variables

This section is empty.

Functions

func InitRequest

func InitRequest(context *endly.Context, rawRequest map[string]interface{}) error

func New

func New() endly.Service

New creates a new Dataflow service

Types

type CtxClient

type CtxClient struct {
	*gc.AbstractClient
	// contains filtered or unexported fields
}

CtxClient represents context client

func GetClient

func GetClient(context *endly.Context) (*CtxClient, error)

func (*CtxClient) Service

func (s *CtxClient) Service() interface{}

func (*CtxClient) SetService

func (s *CtxClient) SetService(service interface{}) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL