dynamodb

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Jul 28, 2025 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

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

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

func (d *DynamoDBDriver) CreateTeam(ctx context.Context, team *models.Team) (*models.Team, error)

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

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

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

func (d *DynamoDBDriver) GetProject(ctx context.Context, id string) (*models.Project, error)

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

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

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) GetTeams

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

GetTeams retrieves teams for a given user 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

func (d *DynamoDBDriver) SaveAuditLog(ctx context.Context, auditLog *models.AuditLogs) error

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

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

func (*DynamoDBDriver) SearchFunctions

SearchFunctions searches for cloud functions in a project using DynamoDB

func (*DynamoDBDriver) SearchProjects

SearchProjects searches for projects based on common system parameters using DynamoDB

func (*DynamoDBDriver) SearchResource

SearchResource searches for resources based on common system parameters using DynamoDB

func (*DynamoDBDriver) SearchUsers

SearchUsers searches for system users based on parameters using DynamoDB

func (*DynamoDBDriver) SearchWebHooks

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

Jump to

Keyboard shortcuts

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