Documentation
¶
Index ¶
- type SystemSQLDriver
- func (p *SystemSQLDriver) BlacklistAToken(ctx context.Context, token map[string]interface{}) error
- func (p *SystemSQLDriver) CheckTokenBlacklisted(ctx context.Context, tokenId string) error
- func (p *SystemSQLDriver) DeleteProjectFromSystem(ctx context.Context, projectId string) error
- func (p *SystemSQLDriver) GetProject(ctx context.Context, id string) (*protobuff.Project, error)
- func (p *SystemSQLDriver) GetSystemUser(ctx context.Context, id string) (*protobuff.SystemUser, error)
- func (p *SystemSQLDriver) GetSystemUserByUsername(ctx context.Context, username string) (*protobuff.SystemUser, error)
- func (p *SystemSQLDriver) ListFunctions(ctx context.Context, param *shared.CommonSystemParams) (*shared.SearchResponse[protobuff.CloudFunction], error)
- func (p *SystemSQLDriver) RunMigration(ctx context.Context) error
- func (p *SystemSQLDriver) SaveRawData(ctx context.Context, collection string, data map[string]interface{}) error
- func (p *SystemSQLDriver) SearchResource(ctx context.Context, param *shared.CommonSystemParams) (*shared.SearchResponse[any], error)
- func (p *SystemSQLDriver) UpdateProject(ctx context.Context, project *protobuff.Project, replace bool) error
- func (p *SystemSQLDriver) UpdateSystemUser(ctx context.Context, user *protobuff.SystemUser, replace bool) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SystemSQLDriver ¶ added in v0.0.6
type SystemSQLDriver struct {
ORM *bun.DB
DriverCredential *protobuff.DriverCredentials
}
func GetSystemSQLDriver ¶
func GetSystemSQLDriver(driverCredentials *protobuff.DriverCredentials) (*SystemSQLDriver, error)
func (*SystemSQLDriver) BlacklistAToken ¶ added in v0.0.6
func (p *SystemSQLDriver) BlacklistAToken(ctx context.Context, token map[string]interface{}) error
func (*SystemSQLDriver) CheckTokenBlacklisted ¶ added in v0.0.6
func (p *SystemSQLDriver) CheckTokenBlacklisted(ctx context.Context, tokenId string) error
func (*SystemSQLDriver) DeleteProjectFromSystem ¶ added in v0.0.6
func (p *SystemSQLDriver) DeleteProjectFromSystem(ctx context.Context, projectId string) error
func (*SystemSQLDriver) GetProject ¶ added in v0.0.6
func (*SystemSQLDriver) GetSystemUser ¶ added in v0.0.6
func (p *SystemSQLDriver) GetSystemUser(ctx context.Context, id string) (*protobuff.SystemUser, error)
func (*SystemSQLDriver) GetSystemUserByUsername ¶ added in v0.0.6
func (p *SystemSQLDriver) GetSystemUserByUsername(ctx context.Context, username string) (*protobuff.SystemUser, error)
func (*SystemSQLDriver) ListFunctions ¶ added in v0.0.6
func (p *SystemSQLDriver) ListFunctions(ctx context.Context, param *shared.CommonSystemParams) (*shared.SearchResponse[protobuff.CloudFunction], error)
func (*SystemSQLDriver) RunMigration ¶ added in v0.0.6
func (p *SystemSQLDriver) RunMigration(ctx context.Context) error
func (*SystemSQLDriver) SaveRawData ¶ added in v0.0.6
func (*SystemSQLDriver) SearchResource ¶ added in v0.0.6
func (p *SystemSQLDriver) SearchResource(ctx context.Context, param *shared.CommonSystemParams) (*shared.SearchResponse[any], error)
func (*SystemSQLDriver) UpdateProject ¶ added in v0.0.6
func (*SystemSQLDriver) UpdateSystemUser ¶ added in v0.0.6
func (p *SystemSQLDriver) UpdateSystemUser(ctx context.Context, user *protobuff.SystemUser, replace bool) error
Click to show internal directories.
Click to hide internal directories.