firestoreindexensurer

package
v0.47.2 Latest Latest
Warning

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

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

README

Firestore index ensurer developers guide

This package automatically creates the needed composite indexes for Google Firestore. It's based on well-defined JSON file named indexes.json, which is obtained by running the following, with the __name__ field removed:

gcloud firestore indexes composite list --format=json --sort-by=name

For details for this command: https://cloud.google.com/sdk/gcloud/reference/firestore/indexes/composite/list

Documentation

Overview

Package firestoreindexensurer automatically creates/deletes the needed composite indexes for Google Firestore, based on well-defined JSON format indexes list.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IndexEnsurer

type IndexEnsurer interface {
	CreateIndexes(ctx context.Context) error
}

func NewIndexEnsurer

func NewIndexEnsurer(gcloudPath, projectID, serviceAcccountFile, colPrefix string, logger *zap.Logger) IndexEnsurer

Jump to

Keyboard shortcuts

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