couchbase

package
v1.1.3 Latest Latest
Warning

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

Go to latest
Published: Feb 26, 2025 License: MPL-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Provider

func Provider() *schema.Provider

Provider function provides structure for provider parameters

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

type ScopeSettings struct {
	Name   string
	Bucket string
}

ScopeSettings custom structure for scope configuration

Jump to

Keyboard shortcuts

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