gfs

package
v0.3.2-rc37 Latest Latest
Warning

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

Go to latest
Published: Dec 16, 2020 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Overview

Package gfs helps with Google FireStore

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetDoc

func GetDoc(ctx context.Context,
	firestoreClient *firestore.Client,
	documentPath string,
	retriesNumber time.Duration) (*firestore.DocumentSnapshot, bool)

GetDoc check if a document exist with retries

func ListKeyNames added in v0.3.1

func ListKeyNames(ctx context.Context, firestoreClient *firestore.Client, serviceName string) (serviceAccountKeyNames []string, err error)

ListKeyNames retrieve the list of recorded keyname for a given microservice

func RecordDump added in v0.3.2

func RecordDump(ctx context.Context,
	dumpNameFull string,
	firestoreClient *firestore.Client,
	stepStack logging.Steps,
	microserviceName string,
	instanceName string,
	environment string,
	pubSubID string,
	retriesNumber time.Duration) (err error)

RecordDump record a dump stepStack in firestore

func RecordKeyName added in v0.3.1

func RecordKeyName(core *deploy.Core, serviceAccountKeyName string, retriesNumber time.Duration) (err error)

RecordKeyName records the service account key name used by a deployed microservice instance

Types

This section is empty.

Jump to

Keyboard shortcuts

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