Documentation
¶
Index ¶
- type CassandraDriver
- func (c *CassandraDriver) AddATeamMemberToProject(ctx context.Context, req *models.TeamMemberAddRequest) error
- func (c *CassandraDriver) AddSystemUserMetaInfo(ctx context.Context, doc *types.DefaultDocumentStructure) (*types.DefaultDocumentStructure, error)
- func (c *CassandraDriver) AddTeamMetaInfo(ctx context.Context, docs []*models.SystemUser) ([]*models.SystemUser, error)
- func (c *CassandraDriver) AddWebhookToProject(ctx context.Context, doc *models.Webhook) (*models.Webhook, error)
- func (c *CassandraDriver) AssignProjectToOrganization(ctx context.Context, orgId, userId, projectId string) error
- func (c *CassandraDriver) AssignTeamToOrganization(ctx context.Context, orgId, userId, teamId string) error
- func (c *CassandraDriver) BlacklistAToken(ctx context.Context, token map[string]interface{}) error
- func (c *CassandraDriver) CheckProjectName(ctx context.Context, name string) error
- func (c *CassandraDriver) CheckProjectWithRoles(ctx context.Context, userId, projectId string) (*models.ProjectWithRoles, error)
- func (c *CassandraDriver) CheckTeamMemberExists(ctx context.Context, projectId string, memberID string) error
- func (c *CassandraDriver) CheckTokenBlacklisted(ctx context.Context, tokenId string) error
- func (c *CassandraDriver) CreateOrganization(ctx context.Context, org *models.Organization) (*models.Organization, error)
- func (c *CassandraDriver) CreateProject(ctx context.Context, userId string, project *models.Project) (*models.Project, error)
- func (c *CassandraDriver) CreateSystemUser(ctx context.Context, user *models.SystemUser) (*models.SystemUser, error)
- func (c *CassandraDriver) CreateTeam(ctx context.Context, team *models.Team) (*models.Team, error)
- func (c *CassandraDriver) DeleteProjectFromSystem(ctx context.Context, projectId string) error
- func (c *CassandraDriver) DeleteWebhook(ctx context.Context, projectId, hookId string) error
- func (c *CassandraDriver) FindOrganizationAdmin(ctx context.Context, orgId string) (*models.SystemUser, error)
- func (c *CassandraDriver) FindUserOrganizations(ctx context.Context, userId string) ([]*models.Organization, error)
- func (c *CassandraDriver) FindUserProjects(ctx context.Context, userId string) ([]*models.Project, error)
- func (c *CassandraDriver) FindUserProjectsWithRoles(ctx context.Context, userId string) ([]*models.ProjectWithRoles, error)
- func (c *CassandraDriver) FindUserTeams(ctx context.Context, userId string) ([]*models.Team, error)
- func (c *CassandraDriver) GetOrganizations(ctx context.Context, userId string) (*models.SearchResponse[models.Organization], error)
- func (c *CassandraDriver) GetProject(ctx context.Context, id string) (*models.Project, error)
- func (c *CassandraDriver) GetProjectTeams(ctx context.Context, projectId string) (*models.Team, error)
- func (c *CassandraDriver) GetProjects(ctx context.Context, keys []string) ([]*models.Project, error)
- func (c *CassandraDriver) GetSystemUser(ctx context.Context, id string) (*models.SystemUser, error)
- func (c *CassandraDriver) GetSystemUserByEmail(ctx context.Context, email string) (*models.SystemUser, error)
- func (c *CassandraDriver) GetSystemUsers(ctx context.Context, keys []string) ([]*models.SystemUser, error)
- func (c *CassandraDriver) GetTeams(ctx context.Context, userId string) ([]*models.Team, error)
- func (c *CassandraDriver) GetTeamsMembers(ctx context.Context, projectId string) ([]*models.SystemUser, error)
- func (c *CassandraDriver) GetWebHook(ctx context.Context, projectId, hookId string) (*models.Webhook, error)
- func (c *CassandraDriver) RemoveATeamFromOrganization(ctx context.Context, orgId, userId, teamId string) error
- func (c *CassandraDriver) RemoveATeamMemberFromProject(ctx context.Context, projectId string, memberID string) error
- func (c *CassandraDriver) RemoveProjectFromOrganization(ctx context.Context, orgId, userId, projectId string) error
- func (c *CassandraDriver) RunMigration(ctx context.Context) error
- func (c *CassandraDriver) SaveAuditLog(ctx context.Context, auditLog *models.AuditLogs) error
- func (c *CassandraDriver) SaveRawData(ctx context.Context, collection string, data map[string]interface{}) error
- func (c *CassandraDriver) SearchAuditLogs(ctx context.Context, param *models.CommonSystemParams) (*models.SearchResponse[models.AuditLogs], error)
- func (c *CassandraDriver) SearchFunctions(ctx context.Context, param *models.CommonSystemParams) (*models.SearchResponse[models.ApitoFunction], error)
- func (c *CassandraDriver) SearchProjects(ctx context.Context, param *models.CommonSystemParams) (*models.SearchResponse[models.Project], error)
- func (c *CassandraDriver) SearchResource(ctx context.Context, param *models.CommonSystemParams) (*models.SearchResponse[any], error)
- func (c *CassandraDriver) SearchUsers(ctx context.Context, param *models.CommonSystemParams) (*models.SearchResponse[models.SystemUser], error)
- func (c *CassandraDriver) SearchWebHooks(ctx context.Context, param *models.CommonSystemParams) (*models.SearchResponse[models.Webhook], error)
- func (c *CassandraDriver) UpdateProject(ctx context.Context, project *models.Project, replace bool) error
- func (c *CassandraDriver) UpdateSystemUser(ctx context.Context, user *models.SystemUser, replace bool) error
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 ¶
func (c *CassandraDriver) AddSystemUserMetaInfo(ctx context.Context, doc *types.DefaultDocumentStructure) (*types.DefaultDocumentStructure, error)
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 ¶
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 ¶
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 ¶
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) 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 ¶
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 ¶
func (c *CassandraDriver) SearchAuditLogs(ctx context.Context, param *models.CommonSystemParams) (*models.SearchResponse[models.AuditLogs], error)
SearchAuditLogs searches for audit logs based on common system parameters using Cassandra
func (*CassandraDriver) SearchFunctions ¶
func (c *CassandraDriver) SearchFunctions(ctx context.Context, param *models.CommonSystemParams) (*models.SearchResponse[models.ApitoFunction], error)
SearchFunctions searches for cloud functions in a project using Cassandra
func (*CassandraDriver) SearchProjects ¶
func (c *CassandraDriver) SearchProjects(ctx context.Context, param *models.CommonSystemParams) (*models.SearchResponse[models.Project], error)
SearchProjects searches for projects based on common system parameters using Cassandra
func (*CassandraDriver) SearchResource ¶
func (c *CassandraDriver) SearchResource(ctx context.Context, param *models.CommonSystemParams) (*models.SearchResponse[any], error)
SearchResource searches for resources based on common system parameters using Cassandra
func (*CassandraDriver) SearchUsers ¶
func (c *CassandraDriver) SearchUsers(ctx context.Context, param *models.CommonSystemParams) (*models.SearchResponse[models.SystemUser], error)
SearchUsers searches for system users based on parameters using Cassandra
func (*CassandraDriver) SearchWebHooks ¶
func (c *CassandraDriver) SearchWebHooks(ctx context.Context, param *models.CommonSystemParams) (*models.SearchResponse[models.Webhook], error)
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