couchbase

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Jul 20, 2025 License: Apache-2.0 Imports: 8 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CouchbaseDriver

type CouchbaseDriver struct {
	Cluster          *gocb.Cluster
	Bucket           *gocb.Bucket
	Collection       *gocb.Collection
	DriverCredential *models.DriverCredentials
}

func GetCouchbaseDriver

func GetCouchbaseDriver(driverCredentials *models.DriverCredentials) (*CouchbaseDriver, error)

GetCouchbaseDriver creates a new Couchbase system driver instance

func (*CouchbaseDriver) AddATeamMemberToProject

func (c *CouchbaseDriver) AddATeamMemberToProject(ctx context.Context, req *models.TeamMemberAddRequest) error

AddATeamMemberToProject adds a team member to a project using Couchbase

func (*CouchbaseDriver) AddSystemUserMetaInfo

AddSystemUserMetaInfo adds metadata to a system user using Couchbase

func (*CouchbaseDriver) AddTeamMetaInfo

func (c *CouchbaseDriver) AddTeamMetaInfo(ctx context.Context, docs []*models.SystemUser) ([]*models.SystemUser, error)

AddTeamMetaInfo adds metadata to team members using Couchbase

func (*CouchbaseDriver) AddWebhookToProject

func (c *CouchbaseDriver) AddWebhookToProject(ctx context.Context, doc *models.Webhook) (*models.Webhook, error)

AddWebhookToProject adds a webhook to a project using Couchbase

func (*CouchbaseDriver) AssignProjectToOrganization

func (c *CouchbaseDriver) AssignProjectToOrganization(ctx context.Context, orgId, userId, projectId string) error

AssignProjectToOrganization assigns a project to an organization using Couchbase

func (*CouchbaseDriver) AssignTeamToOrganization

func (c *CouchbaseDriver) AssignTeamToOrganization(ctx context.Context, orgId, userId, teamId string) error

AssignTeamToOrganization assigns a team to an organization using Couchbase

func (*CouchbaseDriver) BlacklistAToken

func (c *CouchbaseDriver) BlacklistAToken(ctx context.Context, token map[string]interface{}) error

BlacklistAToken adds a token to the blacklist using Couchbase

func (*CouchbaseDriver) CheckProjectName

func (c *CouchbaseDriver) CheckProjectName(ctx context.Context, name string) error

CheckProjectName checks if a project name already exists using Couchbase

func (*CouchbaseDriver) CheckProjectWithRoles

func (c *CouchbaseDriver) CheckProjectWithRoles(ctx context.Context, userId, projectId string) (*models.ProjectWithRoles, error)

CheckProjectWithRoles checks if a user belongs to a project and returns roles/permissions using Couchbase

func (*CouchbaseDriver) CheckTeamMemberExists

func (c *CouchbaseDriver) CheckTeamMemberExists(ctx context.Context, projectId string, memberID string) error

CheckTeamMemberExists checks if a team member exists in a project using Couchbase

func (*CouchbaseDriver) CheckTokenBlacklisted

func (c *CouchbaseDriver) CheckTokenBlacklisted(ctx context.Context, tokenId string) error

CheckTokenBlacklisted checks if a token is blacklisted using Couchbase

func (*CouchbaseDriver) CreateOrganization

func (c *CouchbaseDriver) CreateOrganization(ctx context.Context, org *models.Organization) (*models.Organization, error)

CreateOrganization creates a new organization using Couchbase

func (*CouchbaseDriver) CreateProject

func (c *CouchbaseDriver) CreateProject(ctx context.Context, userId string, project *models.Project) (*models.Project, error)

CreateProject creates a new project using Couchbase

func (*CouchbaseDriver) CreateSystemUser

func (c *CouchbaseDriver) CreateSystemUser(ctx context.Context, user *models.SystemUser) (*models.SystemUser, error)

CreateSystemUser creates a new system user using Couchbase

func (*CouchbaseDriver) CreateTeam

func (c *CouchbaseDriver) CreateTeam(ctx context.Context, team *models.Team) (*models.Team, error)

CreateTeam creates a new team using Couchbase

func (*CouchbaseDriver) DeleteProjectFromSystem

func (c *CouchbaseDriver) DeleteProjectFromSystem(ctx context.Context, projectId string) error

DeleteProjectFromSystem deletes a project and all related data using Couchbase

func (*CouchbaseDriver) DeleteWebhook

func (c *CouchbaseDriver) DeleteWebhook(ctx context.Context, projectId, hookId string) error

DeleteWebhook deletes a webhook using Couchbase

func (*CouchbaseDriver) FindOrganizationAdmin

func (c *CouchbaseDriver) FindOrganizationAdmin(ctx context.Context, orgId string) (*models.SystemUser, error)

FindOrganizationAdmin retrieves the admin of an organization using Couchbase

func (*CouchbaseDriver) FindUserOrganizations

func (c *CouchbaseDriver) FindUserOrganizations(ctx context.Context, userId string) ([]*models.Organization, error)

FindUserOrganizations retrieves all organizations for a given user using Couchbase

func (*CouchbaseDriver) FindUserProjects

func (c *CouchbaseDriver) FindUserProjects(ctx context.Context, userId string) ([]*models.Project, error)

FindUserProjects retrieves all projects for a given user using Couchbase

func (*CouchbaseDriver) FindUserProjectsWithRoles

func (c *CouchbaseDriver) FindUserProjectsWithRoles(ctx context.Context, userId string) ([]*models.ProjectWithRoles, error)

FindUserProjectsWithRoles retrieves user projects with their roles and permissions using Couchbase

func (*CouchbaseDriver) FindUserTeams

func (c *CouchbaseDriver) FindUserTeams(ctx context.Context, userId string) ([]*models.Team, error)

FindUserTeams retrieves all teams for a given user using Couchbase

func (*CouchbaseDriver) GetOrganizations

func (c *CouchbaseDriver) GetOrganizations(ctx context.Context, userId string) (*models.SearchResponse[models.Organization], error)

GetOrganizations retrieves organizations for a given user using Couchbase

func (*CouchbaseDriver) GetProject

func (c *CouchbaseDriver) GetProject(ctx context.Context, id string) (*models.Project, error)

GetProject retrieves a project by ID using Couchbase

func (*CouchbaseDriver) GetProjectTeams

func (c *CouchbaseDriver) GetProjectTeams(ctx context.Context, projectId string) (*models.Team, error)

GetProjectTeams retrieves team information for a project using Couchbase

func (*CouchbaseDriver) GetProjects

func (c *CouchbaseDriver) GetProjects(ctx context.Context, keys []string) ([]*models.Project, error)

GetProjects retrieves multiple projects by their IDs using Couchbase

func (*CouchbaseDriver) GetSystemUser

func (c *CouchbaseDriver) GetSystemUser(ctx context.Context, id string) (*models.SystemUser, error)

GetSystemUser retrieves a system user by ID using Couchbase

func (*CouchbaseDriver) GetSystemUserByEmail

func (c *CouchbaseDriver) GetSystemUserByEmail(ctx context.Context, email string) (*models.SystemUser, error)

GetSystemUserByEmail retrieves a system user by email using Couchbase

func (*CouchbaseDriver) GetSystemUsers

func (c *CouchbaseDriver) GetSystemUsers(ctx context.Context, keys []string) ([]*models.SystemUser, error)

GetSystemUsers retrieves multiple system users by their IDs using Couchbase

func (*CouchbaseDriver) GetTeams

func (c *CouchbaseDriver) GetTeams(ctx context.Context, userId string) ([]*models.Team, error)

GetTeams retrieves teams for a given user using Couchbase

func (*CouchbaseDriver) GetTeamsMembers

func (c *CouchbaseDriver) GetTeamsMembers(ctx context.Context, projectId string) ([]*models.SystemUser, error)

GetTeamsMembers retrieves team members for a project using Couchbase

func (*CouchbaseDriver) GetWebHook

func (c *CouchbaseDriver) GetWebHook(ctx context.Context, projectId, hookId string) (*models.Webhook, error)

GetWebHook retrieves a specific webhook by ID using Couchbase

func (*CouchbaseDriver) RemoveATeamFromOrganization

func (c *CouchbaseDriver) RemoveATeamFromOrganization(ctx context.Context, orgId, userId, teamId string) error

RemoveATeamFromOrganization removes a team from an organization using Couchbase

func (*CouchbaseDriver) RemoveATeamMemberFromProject

func (c *CouchbaseDriver) RemoveATeamMemberFromProject(ctx context.Context, projectId string, memberID string) error

RemoveATeamMemberFromProject removes a team member from a project using Couchbase

func (*CouchbaseDriver) RemoveProjectFromOrganization

func (c *CouchbaseDriver) RemoveProjectFromOrganization(ctx context.Context, orgId, userId, projectId string) error

RemoveProjectFromOrganization removes a project from an organization using Couchbase

func (*CouchbaseDriver) RunMigration

func (c *CouchbaseDriver) RunMigration(ctx context.Context) error

RunMigration runs the database migrations for Couchbase (creates necessary indexes)

func (*CouchbaseDriver) SaveAuditLog

func (c *CouchbaseDriver) SaveAuditLog(ctx context.Context, auditLog *models.AuditLogs) error

SaveAuditLog saves an audit log entry using Couchbase

func (*CouchbaseDriver) SaveRawData

func (c *CouchbaseDriver) SaveRawData(ctx context.Context, collection string, data map[string]interface{}) error

SaveRawData saves raw data using Couchbase for payment-related operations

func (*CouchbaseDriver) SearchAuditLogs

SearchAuditLogs searches for audit logs based on common system parameters using Couchbase

func (*CouchbaseDriver) SearchFunctions

SearchFunctions searches for cloud functions in a project using Couchbase

func (*CouchbaseDriver) SearchProjects

SearchProjects searches for projects based on common system parameters using Couchbase

func (*CouchbaseDriver) SearchResource

SearchResource searches for resources based on common system parameters using Couchbase

func (*CouchbaseDriver) SearchUsers

SearchUsers searches for system users based on parameters using Couchbase

func (*CouchbaseDriver) SearchWebHooks

SearchWebHooks searches for webhooks in a project using Couchbase

func (*CouchbaseDriver) UpdateProject

func (c *CouchbaseDriver) UpdateProject(ctx context.Context, project *models.Project, replace bool) error

UpdateProject updates a project using Couchbase

func (*CouchbaseDriver) UpdateSystemUser

func (c *CouchbaseDriver) UpdateSystemUser(ctx context.Context, user *models.SystemUser, replace bool) error

UpdateSystemUser updates a system user using Couchbase

Jump to

Keyboard shortcuts

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