Versions in this module Expand all Collapse all v2 v2.0.0 Feb 28, 2024 Changes in this version + var ErrSearchIndexNotFound = errors.New("search Index not found") + type Collection interface + Aggregate func(context.Context, interface{}) (*mongo.Cursor, error) + type Database interface + Collection func(string) Collection + InitiateReplicaSet func(ctx context.Context, rsName string, hostname string, internalPort int, ...) error + InsertOne func(ctx context.Context, collection string, doc interface{}) (interface{}, error) + RunCommand func(ctx context.Context, runCommand interface{}) (interface{}, error) + type MongoDBClient interface + Connect func(connectionString string, waitSeconds int64) error + Database func(db string) Database + DeleteSearchIndex func(id string) error + Disconnect func() + SearchIndex func(id string) (*admin.ClusterSearchIndex, error) + func NewClient() MongoDBClient + func NewClientWithContext(context context.Context) MongoDBClient + type SearchIndex interface + CreateSearchIndex func(ctx context.Context, collection string, idx *admin.ClusterSearchIndex) (*admin.ClusterSearchIndex, error) + SearchIndex func(ctx context.Context, id string) (*admin.ClusterSearchIndex, error) + SearchIndexByName func(ctx context.Context, name string, collection string) (*admin.ClusterSearchIndex, error) + SearchIndexes func(ctx context.Context, coll string) ([]*admin.ClusterSearchIndex, error) + type SearchIndexDefinition struct + Analyzer *string + Analyzers []admin.ApiAtlasFTSAnalyzers + Collection string + Database string + ID string + Mappings *admin.ApiAtlasFTSMappings + Name string + Status *string + Synonyms []admin.SearchSynonymMappingDefinition + type User interface + CreateUser func(ctx context.Context, username, password string, roles []string) error + DropUser func(ctx context.Context, username string) error Other modules containing this package github.com/fmenezes/mongodb-atlas-cli