Documentation
¶
Index ¶
- type DynamoDBDriver
- func (d *DynamoDBDriver) AddATeamMemberToProject(ctx context.Context, req *models.TeamMemberAddRequest) error
- func (d *DynamoDBDriver) AddSystemUserMetaInfo(ctx context.Context, doc *types.DefaultDocumentStructure) (*types.DefaultDocumentStructure, error)
- func (d *DynamoDBDriver) AddTeamMetaInfo(ctx context.Context, docs []*models.SystemUser) ([]*models.SystemUser, error)
- func (d *DynamoDBDriver) AddWebhookToProject(ctx context.Context, doc *models.Webhook) (*models.Webhook, error)
- func (d *DynamoDBDriver) AssignProjectToOrganization(ctx context.Context, orgId, userId, projectId string) error
- func (d *DynamoDBDriver) AssignTeamToOrganization(ctx context.Context, orgId, userId, teamId string) error
- func (d *DynamoDBDriver) BlacklistAToken(ctx context.Context, token map[string]interface{}) error
- func (d *DynamoDBDriver) CheckProjectName(ctx context.Context, name string) error
- func (d *DynamoDBDriver) CheckProjectWithRoles(ctx context.Context, userId, projectId string) (*models.ProjectWithRoles, error)
- func (d *DynamoDBDriver) CheckTeamMemberExists(ctx context.Context, projectId string, memberID string) error
- func (d *DynamoDBDriver) CheckTokenBlacklisted(ctx context.Context, tokenId string) error
- func (d *DynamoDBDriver) CreateOrganization(ctx context.Context, org *models.Organization) (*models.Organization, error)
- func (d *DynamoDBDriver) CreateProject(ctx context.Context, userId string, project *models.Project) (*models.Project, error)
- func (d *DynamoDBDriver) CreateSystemUser(ctx context.Context, user *models.SystemUser) (*models.SystemUser, error)
- func (d *DynamoDBDriver) CreateTeam(ctx context.Context, team *models.Team) (*models.Team, error)
- func (d *DynamoDBDriver) DeleteProjectFromSystem(ctx context.Context, projectId string) error
- func (d *DynamoDBDriver) DeleteWebhook(ctx context.Context, projectId, hookId string) error
- func (d *DynamoDBDriver) FindOrganizationAdmin(ctx context.Context, orgId string) (*models.SystemUser, error)
- func (d *DynamoDBDriver) FindUserOrganizations(ctx context.Context, userId string) ([]*models.Organization, error)
- func (d *DynamoDBDriver) FindUserProjects(ctx context.Context, userId string) ([]*models.Project, error)
- func (d *DynamoDBDriver) FindUserProjectsWithRoles(ctx context.Context, userId string) ([]*models.ProjectWithRoles, error)
- func (d *DynamoDBDriver) FindUserTeams(ctx context.Context, userId string) ([]*models.Team, error)
- func (d *DynamoDBDriver) GetOrganizations(ctx context.Context, userId string) (*models.SearchResponse[models.Organization], error)
- func (d *DynamoDBDriver) GetProject(ctx context.Context, id string) (*models.Project, error)
- func (d *DynamoDBDriver) GetProjectTeams(ctx context.Context, projectId string) (*models.Team, error)
- func (d *DynamoDBDriver) GetProjects(ctx context.Context, keys []string) ([]*models.Project, error)
- func (d *DynamoDBDriver) GetSystemUser(ctx context.Context, id string) (*models.SystemUser, error)
- func (d *DynamoDBDriver) GetSystemUserByEmail(ctx context.Context, email string) (*models.SystemUser, error)
- func (d *DynamoDBDriver) GetSystemUsers(ctx context.Context, keys []string) ([]*models.SystemUser, error)
- func (d *DynamoDBDriver) GetTeams(ctx context.Context, userId string) ([]*models.Team, error)
- func (d *DynamoDBDriver) GetTeamsMembers(ctx context.Context, projectId string) ([]*models.SystemUser, error)
- func (d *DynamoDBDriver) GetWebHook(ctx context.Context, projectId, hookId string) (*models.Webhook, error)
- func (d *DynamoDBDriver) RemoveATeamFromOrganization(ctx context.Context, orgId, userId, teamId string) error
- func (d *DynamoDBDriver) RemoveATeamMemberFromProject(ctx context.Context, projectId string, memberID string) error
- func (d *DynamoDBDriver) RemoveProjectFromOrganization(ctx context.Context, orgId, userId, projectId string) error
- func (d *DynamoDBDriver) RunMigration(ctx context.Context) error
- func (d *DynamoDBDriver) SaveAuditLog(ctx context.Context, auditLog *models.AuditLogs) error
- func (d *DynamoDBDriver) SaveRawData(ctx context.Context, collection string, data map[string]interface{}) error
- func (d *DynamoDBDriver) SearchAuditLogs(ctx context.Context, param *models.CommonSystemParams) (*models.SearchResponse[models.AuditLogs], error)
- func (d *DynamoDBDriver) SearchFunctions(ctx context.Context, param *models.CommonSystemParams) (*models.SearchResponse[models.ApitoFunction], error)
- func (d *DynamoDBDriver) SearchProjects(ctx context.Context, param *models.CommonSystemParams) (*models.SearchResponse[models.Project], error)
- func (d *DynamoDBDriver) SearchResource(ctx context.Context, param *models.CommonSystemParams) (*models.SearchResponse[any], error)
- func (d *DynamoDBDriver) SearchUsers(ctx context.Context, param *models.CommonSystemParams) (*models.SearchResponse[models.SystemUser], error)
- func (d *DynamoDBDriver) SearchWebHooks(ctx context.Context, param *models.CommonSystemParams) (*models.SearchResponse[models.Webhook], error)
- func (d *DynamoDBDriver) UpdateProject(ctx context.Context, project *models.Project, replace bool) error
- func (d *DynamoDBDriver) 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 DynamoDBDriver ¶
type DynamoDBDriver struct { Client *dynamodb.Client TablePrefix string DriverCredential *models.DriverCredentials }
func GetDynamoDBDriver ¶
func GetDynamoDBDriver(driverCredentials *models.DriverCredentials) (*DynamoDBDriver, error)
GetDynamoDBDriver creates a new DynamoDB system driver instance
func (*DynamoDBDriver) AddATeamMemberToProject ¶
func (d *DynamoDBDriver) AddATeamMemberToProject(ctx context.Context, req *models.TeamMemberAddRequest) error
AddATeamMemberToProject adds a team member to a project using DynamoDB
func (*DynamoDBDriver) AddSystemUserMetaInfo ¶
func (d *DynamoDBDriver) AddSystemUserMetaInfo(ctx context.Context, doc *types.DefaultDocumentStructure) (*types.DefaultDocumentStructure, error)
AddSystemUserMetaInfo adds metadata to a system user using DynamoDB
func (*DynamoDBDriver) AddTeamMetaInfo ¶
func (d *DynamoDBDriver) AddTeamMetaInfo(ctx context.Context, docs []*models.SystemUser) ([]*models.SystemUser, error)
AddTeamMetaInfo adds metadata to team members using DynamoDB
func (*DynamoDBDriver) AddWebhookToProject ¶
func (d *DynamoDBDriver) AddWebhookToProject(ctx context.Context, doc *models.Webhook) (*models.Webhook, error)
AddWebhookToProject adds a webhook to a project using DynamoDB
func (*DynamoDBDriver) AssignProjectToOrganization ¶
func (d *DynamoDBDriver) AssignProjectToOrganization(ctx context.Context, orgId, userId, projectId string) error
AssignProjectToOrganization assigns a project to an organization using DynamoDB
func (*DynamoDBDriver) AssignTeamToOrganization ¶
func (d *DynamoDBDriver) AssignTeamToOrganization(ctx context.Context, orgId, userId, teamId string) error
AssignTeamToOrganization assigns a team to an organization using DynamoDB
func (*DynamoDBDriver) BlacklistAToken ¶
func (d *DynamoDBDriver) BlacklistAToken(ctx context.Context, token map[string]interface{}) error
BlacklistAToken adds a token to the blacklist using DynamoDB
func (*DynamoDBDriver) CheckProjectName ¶
func (d *DynamoDBDriver) CheckProjectName(ctx context.Context, name string) error
CheckProjectName checks if a project name already exists using DynamoDB
func (*DynamoDBDriver) CheckProjectWithRoles ¶
func (d *DynamoDBDriver) CheckProjectWithRoles(ctx context.Context, userId, projectId string) (*models.ProjectWithRoles, error)
CheckProjectWithRoles checks if a user belongs to a project and returns roles/permissions using DynamoDB
func (*DynamoDBDriver) CheckTeamMemberExists ¶
func (d *DynamoDBDriver) CheckTeamMemberExists(ctx context.Context, projectId string, memberID string) error
CheckTeamMemberExists checks if a team member exists in a project using DynamoDB
func (*DynamoDBDriver) CheckTokenBlacklisted ¶
func (d *DynamoDBDriver) CheckTokenBlacklisted(ctx context.Context, tokenId string) error
CheckTokenBlacklisted checks if a token is blacklisted using DynamoDB
func (*DynamoDBDriver) CreateOrganization ¶
func (d *DynamoDBDriver) CreateOrganization(ctx context.Context, org *models.Organization) (*models.Organization, error)
CreateOrganization creates a new organization using DynamoDB
func (*DynamoDBDriver) CreateProject ¶
func (d *DynamoDBDriver) CreateProject(ctx context.Context, userId string, project *models.Project) (*models.Project, error)
CreateProject creates a new project using DynamoDB
func (*DynamoDBDriver) CreateSystemUser ¶
func (d *DynamoDBDriver) CreateSystemUser(ctx context.Context, user *models.SystemUser) (*models.SystemUser, error)
CreateSystemUser creates a new system user using DynamoDB
func (*DynamoDBDriver) CreateTeam ¶
CreateTeam creates a new team using DynamoDB
func (*DynamoDBDriver) DeleteProjectFromSystem ¶
func (d *DynamoDBDriver) DeleteProjectFromSystem(ctx context.Context, projectId string) error
DeleteProjectFromSystem deletes a project and all related data using DynamoDB
func (*DynamoDBDriver) DeleteWebhook ¶
func (d *DynamoDBDriver) DeleteWebhook(ctx context.Context, projectId, hookId string) error
DeleteWebhook deletes a webhook using DynamoDB
func (*DynamoDBDriver) FindOrganizationAdmin ¶
func (d *DynamoDBDriver) FindOrganizationAdmin(ctx context.Context, orgId string) (*models.SystemUser, error)
FindOrganizationAdmin retrieves the admin of an organization using DynamoDB
func (*DynamoDBDriver) FindUserOrganizations ¶
func (d *DynamoDBDriver) FindUserOrganizations(ctx context.Context, userId string) ([]*models.Organization, error)
FindUserOrganizations retrieves all organizations for a given user using DynamoDB
func (*DynamoDBDriver) FindUserProjects ¶
func (d *DynamoDBDriver) FindUserProjects(ctx context.Context, userId string) ([]*models.Project, error)
FindUserProjects retrieves all projects for a given user using DynamoDB
func (*DynamoDBDriver) FindUserProjectsWithRoles ¶
func (d *DynamoDBDriver) FindUserProjectsWithRoles(ctx context.Context, userId string) ([]*models.ProjectWithRoles, error)
FindUserProjectsWithRoles retrieves user projects with their roles and permissions using DynamoDB
func (*DynamoDBDriver) FindUserTeams ¶
FindUserTeams retrieves all teams for a given user using DynamoDB
func (*DynamoDBDriver) GetOrganizations ¶
func (d *DynamoDBDriver) GetOrganizations(ctx context.Context, userId string) (*models.SearchResponse[models.Organization], error)
GetOrganizations retrieves organizations for a given user using DynamoDB
func (*DynamoDBDriver) GetProject ¶
GetProject retrieves a project by ID using DynamoDB
func (*DynamoDBDriver) GetProjectTeams ¶
func (d *DynamoDBDriver) GetProjectTeams(ctx context.Context, projectId string) (*models.Team, error)
GetProjectTeams retrieves team information for a project using DynamoDB
func (*DynamoDBDriver) GetProjects ¶
GetProjects retrieves multiple projects by their IDs using DynamoDB
func (*DynamoDBDriver) GetSystemUser ¶
func (d *DynamoDBDriver) GetSystemUser(ctx context.Context, id string) (*models.SystemUser, error)
GetSystemUser retrieves a system user by ID using DynamoDB
func (*DynamoDBDriver) GetSystemUserByEmail ¶
func (d *DynamoDBDriver) GetSystemUserByEmail(ctx context.Context, email string) (*models.SystemUser, error)
GetSystemUserByEmail retrieves a system user by email using DynamoDB
func (*DynamoDBDriver) GetSystemUsers ¶
func (d *DynamoDBDriver) GetSystemUsers(ctx context.Context, keys []string) ([]*models.SystemUser, error)
GetSystemUsers retrieves multiple system users by their IDs using DynamoDB
func (*DynamoDBDriver) GetTeamsMembers ¶
func (d *DynamoDBDriver) GetTeamsMembers(ctx context.Context, projectId string) ([]*models.SystemUser, error)
GetTeamsMembers retrieves team members for a project using DynamoDB
func (*DynamoDBDriver) GetWebHook ¶
func (d *DynamoDBDriver) GetWebHook(ctx context.Context, projectId, hookId string) (*models.Webhook, error)
GetWebHook retrieves a specific webhook by ID using DynamoDB
func (*DynamoDBDriver) RemoveATeamFromOrganization ¶
func (d *DynamoDBDriver) RemoveATeamFromOrganization(ctx context.Context, orgId, userId, teamId string) error
RemoveATeamFromOrganization removes a team from an organization using DynamoDB
func (*DynamoDBDriver) RemoveATeamMemberFromProject ¶
func (d *DynamoDBDriver) RemoveATeamMemberFromProject(ctx context.Context, projectId string, memberID string) error
RemoveATeamMemberFromProject removes a team member from a project using DynamoDB
func (*DynamoDBDriver) RemoveProjectFromOrganization ¶
func (d *DynamoDBDriver) RemoveProjectFromOrganization(ctx context.Context, orgId, userId, projectId string) error
RemoveProjectFromOrganization removes a project from an organization using DynamoDB
func (*DynamoDBDriver) RunMigration ¶
func (d *DynamoDBDriver) RunMigration(ctx context.Context) error
RunMigration runs the database migrations for DynamoDB (creates necessary tables)
func (*DynamoDBDriver) SaveAuditLog ¶
SaveAuditLog saves an audit log entry using DynamoDB
func (*DynamoDBDriver) SaveRawData ¶
func (d *DynamoDBDriver) SaveRawData(ctx context.Context, collection string, data map[string]interface{}) error
SaveRawData saves raw data using DynamoDB for payment-related operations
func (*DynamoDBDriver) SearchAuditLogs ¶
func (d *DynamoDBDriver) SearchAuditLogs(ctx context.Context, param *models.CommonSystemParams) (*models.SearchResponse[models.AuditLogs], error)
SearchAuditLogs searches for audit logs based on common system parameters using DynamoDB
func (*DynamoDBDriver) SearchFunctions ¶
func (d *DynamoDBDriver) SearchFunctions(ctx context.Context, param *models.CommonSystemParams) (*models.SearchResponse[models.ApitoFunction], error)
SearchFunctions searches for cloud functions in a project using DynamoDB
func (*DynamoDBDriver) SearchProjects ¶
func (d *DynamoDBDriver) SearchProjects(ctx context.Context, param *models.CommonSystemParams) (*models.SearchResponse[models.Project], error)
SearchProjects searches for projects based on common system parameters using DynamoDB
func (*DynamoDBDriver) SearchResource ¶
func (d *DynamoDBDriver) SearchResource(ctx context.Context, param *models.CommonSystemParams) (*models.SearchResponse[any], error)
SearchResource searches for resources based on common system parameters using DynamoDB
func (*DynamoDBDriver) SearchUsers ¶
func (d *DynamoDBDriver) SearchUsers(ctx context.Context, param *models.CommonSystemParams) (*models.SearchResponse[models.SystemUser], error)
SearchUsers searches for system users based on parameters using DynamoDB
func (*DynamoDBDriver) SearchWebHooks ¶
func (d *DynamoDBDriver) SearchWebHooks(ctx context.Context, param *models.CommonSystemParams) (*models.SearchResponse[models.Webhook], error)
SearchWebHooks searches for webhooks in a project using DynamoDB
func (*DynamoDBDriver) UpdateProject ¶
func (d *DynamoDBDriver) UpdateProject(ctx context.Context, project *models.Project, replace bool) error
UpdateProject updates a project using DynamoDB
func (*DynamoDBDriver) UpdateSystemUser ¶
func (d *DynamoDBDriver) UpdateSystemUser(ctx context.Context, user *models.SystemUser, replace bool) error
UpdateSystemUser updates a system user using DynamoDB