Documentation ¶
Overview ¶
Package gfs helps with Google FireStore
Index ¶
- func GetDoc(ctx context.Context, firestoreClient *firestore.Client, documentPath string, ...) (*firestore.DocumentSnapshot, bool)
- func ListKeyNames(ctx context.Context, firestoreClient *firestore.Client, serviceName string) (serviceAccountKeyNames []string, err error)
- func RecordDump(ctx context.Context, dumpNameFull string, firestoreClient *firestore.Client, ...) (err error)
- func RecordKeyName(core *deploy.Core, serviceAccountKeyName string, retriesNumber time.Duration) (err error)
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
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.