datastores

package
Version: v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Nov 2, 2021 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

The list that can be iterated

Functions

func NewServiceCosmosdbBuilder

func NewServiceCosmosdbBuilder() *serviceCosmosdbBuilder

Types

type ServiceDatastoreBuilderInterface

type ServiceDatastoreBuilderInterface interface {
	PrepareFoundation(ctx context.Context, defaults *configV2.DatastoreDefaults, cfg *configV2.ServiceConfig) (err error)
	RemoveFoundation(ctx context.Context, defaults *configV2.DatastoreDefaults, cfg *configV2.ServiceConfig) (err error)
	QueryFoundation(ctx context.Context, defaults *configV2.DatastoreDefaults, cfg *configV2.ServiceConfig) (err error)
	Connect(ctx context.Context, cfg *configV2.ServiceConfig) error
	SetCollection(collection string) error
	DropCollection(ctx context.Context, batchSize int) (err error)
}

type ServiceDatastoreConfig

type ServiceDatastoreConfig struct {
	// contains filtered or unexported fields
}

func NewServiceDatastoreConfig

func NewServiceDatastoreConfig(name ServiceDatastoreType, collection string) *ServiceDatastoreConfig

func (*ServiceDatastoreConfig) GetDatastoreType

func (sc *ServiceDatastoreConfig) GetDatastoreType() string

func (*ServiceDatastoreConfig) GetDatastoreTypeModel

func (sl *ServiceDatastoreConfig) GetDatastoreTypeModel() ServiceDatastoreType

func (*ServiceDatastoreConfig) IsValidDatastoreType

func (sc *ServiceDatastoreConfig) IsValidDatastoreType() bool

func (*ServiceDatastoreConfig) SetConnectionString

func (sc *ServiceDatastoreConfig) SetConnectionString(s string)

func (*ServiceDatastoreConfig) SetDatabaseName

func (sc *ServiceDatastoreConfig) SetDatabaseName(s string)

func (*ServiceDatastoreConfig) SetDatastoreCollection

func (sc *ServiceDatastoreConfig) SetDatastoreCollection(s string)

func (*ServiceDatastoreConfig) SetDatastoreType

func (sc *ServiceDatastoreConfig) SetDatastoreType(s string)

func (*ServiceDatastoreConfig) SetGCPProjectID

func (sc *ServiceDatastoreConfig) SetGCPProjectID(s string)

func (*ServiceDatastoreConfig) Validate

func (sc *ServiceDatastoreConfig) Validate() (errorString string)

type ServiceDatastoreType

type ServiceDatastoreType int
const (
	SERVICEDATASTORETYPE_UNDEFINED ServiceDatastoreType = iota
	SERVICEDATASTORETYPE_FIRESTORE
	SERVICEDATASTORETYPE_COSMOSDB_MONGODB
)

func GetServiceDatastoreType

func GetServiceDatastoreType(serviceDatastoreName string) ServiceDatastoreType

func (ServiceDatastoreType) Cloud

func (ServiceDatastoreType) NewBuilder

func (ServiceDatastoreType) String

func (d ServiceDatastoreType) String() string

func (ServiceDatastoreType) Type

func (d ServiceDatastoreType) Type() string

Jump to

Keyboard shortcuts

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