Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type CollectionSettings ¶ added in v1.1.1
type CollectionSettings struct { Name string Bucket string Scope string Settings *gocb.CreateCollectionSettings }
CollectionSettings custom structure for collection configuration
type Configuration ¶ added in v0.0.5
type Configuration struct { Cluster *gocb.Cluster BucketManager *gocb.BucketManager UserManager *gocb.UserManager QueryIndexManager *gocb.QueryIndexManager }
Configuration struct contains information about cluster and bucket manager.
func (*Configuration) ConnectionCLose ¶ added in v0.0.5
func (cc *Configuration) ConnectionCLose()
ConnectionCLose close couchbase connection
type Connection ¶ added in v0.0.5
type Connection struct { Scheme string Address string NodePort int ClientPort int ClusterOptions gocb.ClusterOptions }
Connection struct contain information about connection parameters.
func (*Connection) ConnectionValidate ¶ added in v0.0.5
func (cc *Connection) ConnectionValidate() (*gocb.Cluster, diag.Diagnostics)
ConnectionValidate function validates connection to couchbase
func (*Connection) CouchbaseInitialization ¶ added in v0.0.5
func (cc *Connection) CouchbaseInitialization() (*Configuration, diag.Diagnostics)
CouchbaseInitialization function creates connection to couchbase.
type ErrCollectionNotFound ¶ added in v1.1.1
type ErrCollectionNotFound struct {
// contains filtered or unexported fields
}
ErrCollectionNotFound custom scope error structure
func (*ErrCollectionNotFound) Error ¶ added in v1.1.1
func (e *ErrCollectionNotFound) Error() string
Error function returns custom message when collection is not found
type ErrScopeNotFound ¶ added in v1.1.1
type ErrScopeNotFound struct {
// contains filtered or unexported fields
}
ErrScopeNotFound custom scope error structure
func (*ErrScopeNotFound) Error ¶ added in v1.1.1
func (e *ErrScopeNotFound) Error() string
Error function returns custom message when scope is not found
type ScopeSettings ¶ added in v1.1.1
ScopeSettings custom structure for scope configuration
Source Files
¶
- bucket.go
- collection.go
- connection.go
- constants.go
- helper.go
- provider.go
- queryIndex.go
- resourceBucket.go
- resourceCollection.go
- resourcePrimaryQueryIndex.go
- resourceQueryIndex.go
- resourceScope.go
- resourceSecurityGroup.go
- resourceSecurityUser.go
- role.go
- scope.go
- validateProvider.go
- validationBucket.go
- validationRole.go