cassandra

package
v1.0.1 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 CassandraDriver

type CassandraDriver struct {
	Session          *gocql.Session
	Keyspace         string
	DriverCredential *models.DriverCredentials
}

func GetCassandraDriver

func GetCassandraDriver(driverCredentials *models.DriverCredentials) (*CassandraDriver, error)

GetCassandraDriver creates a new Cassandra system driver instance

func (*CassandraDriver) AddATeamMemberToProject

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

AddATeamMemberToProject adds a team member to a project using Cassandra

func (*CassandraDriver) AddSystemUserMetaInfo

AddSystemUserMetaInfo adds metadata to a system user using Cassandra

func (*CassandraDriver) AddTeamMetaInfo

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

AddTeamMetaInfo adds metadata to team members using Cassandra

func (*CassandraDriver) AddWebhookToProject

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

AddWebhookToProject adds a webhook to a project using Cassandra

func (*CassandraDriver) AssignProjectToOrganization

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

AssignProjectToOrganization assigns a project to an organization using Cassandra

func (*CassandraDriver) AssignTeamToOrganization

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

AssignTeamToOrganization assigns a team to an organization using Cassandra

func (*CassandraDriver) BlacklistAToken

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

BlacklistAToken adds a token to the blacklist using Cassandra

func (*CassandraDriver) CheckProjectName

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

CheckProjectName checks if a project name already exists using Cassandra

func (*CassandraDriver) CheckProjectWithRoles

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

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

func (*CassandraDriver) CheckTeamMemberExists

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

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

func (*CassandraDriver) CheckTokenBlacklisted

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

CheckTokenBlacklisted checks if a token is blacklisted using Cassandra

func (*CassandraDriver) CreateOrganization

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

CreateOrganization creates a new organization using Cassandra

func (*CassandraDriver) CreateProject

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

CreateProject creates a new project using Cassandra

func (*CassandraDriver) CreateSystemUser

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

CreateSystemUser creates a new system user using Cassandra

func (*CassandraDriver) CreateTeam

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

CreateTeam creates a new team using Cassandra

func (*CassandraDriver) DeleteProjectFromSystem

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

DeleteProjectFromSystem deletes a project and all related data using Cassandra

func (*CassandraDriver) DeleteWebhook

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

DeleteWebhook deletes a webhook using Cassandra

func (*CassandraDriver) FindOrganizationAdmin

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

FindOrganizationAdmin retrieves the admin of an organization using Cassandra

func (*CassandraDriver) FindUserOrganizations

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

FindUserOrganizations retrieves all organizations for a given user using Cassandra

func (*CassandraDriver) FindUserProjects

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

FindUserProjects retrieves all projects for a given user using Cassandra

func (*CassandraDriver) FindUserProjectsWithRoles

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

FindUserProjectsWithRoles retrieves user projects with their roles and permissions using Cassandra

func (*CassandraDriver) FindUserTeams

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

FindUserTeams retrieves all teams for a given user using Cassandra

func (*CassandraDriver) GetOrganizations

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

GetOrganizations retrieves organizations for a given user using Cassandra

func (*CassandraDriver) GetProject

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

GetProject retrieves a project by ID using Cassandra

func (*CassandraDriver) GetProjectTeams

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

GetProjectTeams retrieves team information for a project using Cassandra

func (*CassandraDriver) GetProjects

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

GetProjects retrieves multiple projects by their IDs using Cassandra

func (*CassandraDriver) GetSystemUser

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

GetSystemUser retrieves a system user by ID using Cassandra

func (*CassandraDriver) GetSystemUserByEmail

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

GetSystemUserByEmail retrieves a system user by email using Cassandra

func (*CassandraDriver) GetSystemUsers

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

GetSystemUsers retrieves multiple system users by their IDs using Cassandra

func (*CassandraDriver) GetTeams

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

GetTeams retrieves teams for a given user using Cassandra

func (*CassandraDriver) GetTeamsMembers

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

GetTeamsMembers retrieves team members for a project using Cassandra

func (*CassandraDriver) GetWebHook

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

GetWebHook retrieves a specific webhook by ID using Cassandra

func (*CassandraDriver) RemoveATeamFromOrganization

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

RemoveATeamFromOrganization removes a team from an organization using Cassandra

func (*CassandraDriver) RemoveATeamMemberFromProject

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

RemoveATeamMemberFromProject removes a team member from a project using Cassandra

func (*CassandraDriver) RemoveProjectFromOrganization

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

RemoveProjectFromOrganization removes a project from an organization using Cassandra

func (*CassandraDriver) RunMigration

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

RunMigration runs the database migrations for Cassandra (creates keyspace and tables)

func (*CassandraDriver) SaveAuditLog

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

SaveAuditLog saves an audit log entry using Cassandra

func (*CassandraDriver) SaveRawData

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

SaveRawData saves raw data using Cassandra for payment-related operations

func (*CassandraDriver) SearchAuditLogs

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

func (*CassandraDriver) SearchFunctions

SearchFunctions searches for cloud functions in a project using Cassandra

func (*CassandraDriver) SearchProjects

SearchProjects searches for projects based on common system parameters using Cassandra

func (*CassandraDriver) SearchResource

SearchResource searches for resources based on common system parameters using Cassandra

func (*CassandraDriver) SearchUsers

SearchUsers searches for system users based on parameters using Cassandra

func (*CassandraDriver) SearchWebHooks

SearchWebHooks searches for webhooks in a project using Cassandra

func (*CassandraDriver) UpdateProject

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

UpdateProject updates a project using Cassandra

func (*CassandraDriver) UpdateSystemUser

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

UpdateSystemUser updates a system user using Cassandra

Jump to

Keyboard shortcuts

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