getgroupsettings

package
v0.0.10 Latest Latest
Warning

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

Go to latest
Published: Mar 29, 2020 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Overview

Package getgroupsettings retreives one group settings from `Groups Settings API` - Triggered by: PubSub messages from the GCI groups topic - Instances: Only one - Output: PubSub messages to a dedicated topic formated like Cloud Asset Inventory feed messages - Cardinality: one-one, one output message for each triggering event - Automatic retrying: yes - Required environment variables:

  • GCIADMINUSERTOIMPERSONATE email of the Google Cloud Identity super admin to impersonate
  • KEYJSONFILENAME name for the service account JSON file containig the key to authenticate against CGI
  • OUTPUTTOPICNAME name of the PubSub topic where to deliver feed messages
  • SERVICEACCOUNTNAME name of the service account used to asscess GCI

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EntryPoint

func EntryPoint(ctxEvent context.Context, PubSubMessage ram.PubSubMessage, global *Global) error

EntryPoint is the function to be executed for each cloud function occurence

func Initialize

func Initialize(ctx context.Context, global *Global)

Initialize is to be executed in the init() function of the cloud function to optimize the cold start

Types

type Global

type Global struct {
	// contains filtered or unexported fields
}

Global structure for global variables to optimize the cloud function performances

Jump to

Keyboard shortcuts

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