upload2gcs

package module
v0.0.0-...-2b8b113 Latest Latest
Warning

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

Go to latest
Published: Jul 5, 2024 License: Apache-2.0 Imports: 13 Imported by: 0

README

upload2gcs

Upload asset JSON files to Google Cloud Storage

Documentation

Overview

Package upload2gcs in the upload2gcs go module is a function based on the function framework to upload JSON files to a Google Cloud Storage bucket

Triggered by

A cloud event containing the document content to be published

Output

- Created / updated / deleted doc in firestore

Cardinality

- one-one

Automatic retrying

Yes.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EntryPoint

func EntryPoint(ctxEvent context.Context, pubsubMsg pubsub.Message) error

EntryPoint function entry point.

Types

type Env

type Env struct {
	KConfiguration string `envconfig:"k_configuration"`
	KRevision      string `envconfig:"k_revision"`
	KService       string `envconfig:"k_service"`
}

Env list environment variables

type Global

type Global struct {
	CommonEv glo.CommonEntryValues
	// contains filtered or unexported fields
}

Global structure for global variables to optimize the performances in serverless mode

type ServiceEnv

type ServiceEnv struct {
	AssetJSONBucketName   string `envconfig:"asset_json_bucket_name"`
	Environment           string `envconfig:"environment" default:"dev"`
	LogOnlySeveritylevels string `envconfig:"log_only_severity_levels" default:"WARNING NOTICE CRITICAL"`
	ProjectID             string `envconfig:"project_id" required:"true"`
	StartProfiler         bool   `envconfig:"start_profiler" default:"false"`
}

ServiceEnv list environment variables prefixed with the name of the microservice

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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