view

package
v1.17.0 Latest Latest
Warning

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

Go to latest
Published: Jun 25, 2021 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ApplicationByID

func ApplicationByID(db *gorm.DB, table, projectID, appID string) (*model.ApplicationView, error)

func ApplicationByOIDCClientID added in v0.20.0

func ApplicationByOIDCClientID(db *gorm.DB, table, clientID string) (*model.ApplicationView, error)

func ApplicationByProjectIDAndAppName added in v0.20.0

func ApplicationByProjectIDAndAppName(db *gorm.DB, table, projectID, appName string) (*model.ApplicationView, error)

func ApplicationsByProjectID added in v0.67.2

func ApplicationsByProjectID(db *gorm.DB, table, projectID string) ([]*model.ApplicationView, error)

func ChangesQuery added in v0.119.0

func ChangesQuery(projectID string, latestSequence, limit uint64, sortAscending bool, retention time.Duration) *es_models.SearchQuery

func DeleteApplication

func DeleteApplication(db *gorm.DB, table, appID string) error

func DeleteApplicationsByProjectID added in v0.67.2

func DeleteApplicationsByProjectID(db *gorm.DB, table, projectID string) error

func DeleteProject added in v0.25.0

func DeleteProject(db *gorm.DB, table, projectID string) error

func DeleteProjectGrant added in v0.25.0

func DeleteProjectGrant(db *gorm.DB, table, grantID string) error

func DeleteProjectGrantMember

func DeleteProjectGrantMember(db *gorm.DB, table, grantID, userID string) error

func DeleteProjectGrantMembersByProjectID added in v0.67.2

func DeleteProjectGrantMembersByProjectID(db *gorm.DB, table, projectID string) error

func DeleteProjectGrantMembersByUserID added in v1.12.2

func DeleteProjectGrantMembersByUserID(db *gorm.DB, table, userID string) error

func DeleteProjectGrantsByProjectID added in v0.67.2

func DeleteProjectGrantsByProjectID(db *gorm.DB, table, projectID string) error

func DeleteProjectMember

func DeleteProjectMember(db *gorm.DB, table, projectID, userID string) error

func DeleteProjectMembersByProjectID added in v0.67.2

func DeleteProjectMembersByProjectID(db *gorm.DB, table, projectID string) error

func DeleteProjectMembersByUserID added in v1.12.2

func DeleteProjectMembersByUserID(db *gorm.DB, table, userID string) error

func DeleteProjectRole

func DeleteProjectRole(db *gorm.DB, table, projectID, orgID, key string) error

func DeleteProjectRolesByProjectID added in v0.67.2

func DeleteProjectRolesByProjectID(db *gorm.DB, table, projectID string) error

func ProjectByID added in v0.25.0

func ProjectByID(db *gorm.DB, table, projectID string) (*model.ProjectView, error)

func ProjectByIDQuery added in v0.119.0

func ProjectByIDQuery(id string, latestSequence uint64) (*es_models.SearchQuery, error)

func ProjectGrantByID added in v0.25.0

func ProjectGrantByID(db *gorm.DB, table, grantID string) (*model.ProjectGrantView, error)

func ProjectGrantByProjectAndOrg added in v0.25.0

func ProjectGrantByProjectAndOrg(db *gorm.DB, table, projectID, orgID string) (*model.ProjectGrantView, error)

func ProjectGrantMemberByIDs

func ProjectGrantMemberByIDs(db *gorm.DB, table, grantID, userID string) (*model.ProjectGrantMemberView, error)

func ProjectGrantMembersByProjectID added in v0.67.2

func ProjectGrantMembersByProjectID(db *gorm.DB, table, projectID string) ([]*model.ProjectGrantMemberView, error)

func ProjectGrantMembersByUserID

func ProjectGrantMembersByUserID(db *gorm.DB, table, userID string) ([]*model.ProjectGrantMemberView, error)

func ProjectGrantsByProjectID added in v0.25.0

func ProjectGrantsByProjectID(db *gorm.DB, table, projectID string) ([]*model.ProjectGrantView, error)

func ProjectGrantsByProjectIDAndRoleKey added in v0.32.0

func ProjectGrantsByProjectIDAndRoleKey(db *gorm.DB, table, projectID, roleKey string) ([]*model.ProjectGrantView, error)

func ProjectMemberByIDs

func ProjectMemberByIDs(db *gorm.DB, table, projectID, userID string) (*model.ProjectMemberView, error)

func ProjectMembersByProjectID added in v0.67.2

func ProjectMembersByProjectID(db *gorm.DB, table, projectID string) ([]*model.ProjectMemberView, error)

func ProjectMembersByUserID

func ProjectMembersByUserID(db *gorm.DB, table string, userID string) ([]*model.ProjectMemberView, error)

func ProjectQuery added in v0.119.0

func ProjectQuery(latestSequence uint64) *es_models.SearchQuery

func ProjectRoleByIDs

func ProjectRoleByIDs(db *gorm.DB, table, projectID, orgID, key string) (*model.ProjectRoleView, error)

func ProjectRolesByProjectID added in v0.67.2

func ProjectRolesByProjectID(db *gorm.DB, table, projectID string) ([]*model.ProjectRoleView, error)

func ProjectsByResourceOwner added in v0.25.0

func ProjectsByResourceOwner(db *gorm.DB, table, orgID string) ([]*model.ProjectView, error)

func PutApplication

func PutApplication(db *gorm.DB, table string, app *model.ApplicationView) error

func PutApplications added in v0.94.0

func PutApplications(db *gorm.DB, table string, apps ...*model.ApplicationView) error

func PutProject added in v0.25.0

func PutProject(db *gorm.DB, table string, project *model.ProjectView) error

func PutProjectGrant added in v0.25.0

func PutProjectGrant(db *gorm.DB, table string, grant *model.ProjectGrantView) error

func PutProjectGrantMember

func PutProjectGrantMember(db *gorm.DB, table string, role *model.ProjectGrantMemberView) error

func PutProjectGrantMembers added in v0.77.2

func PutProjectGrantMembers(db *gorm.DB, table string, members ...*model.ProjectGrantMemberView) error

func PutProjectGrants added in v0.77.2

func PutProjectGrants(db *gorm.DB, table string, grants ...*model.ProjectGrantView) error

func PutProjectMember

func PutProjectMember(db *gorm.DB, table string, role *model.ProjectMemberView) error

func PutProjectMembers added in v0.77.2

func PutProjectMembers(db *gorm.DB, table string, members ...*model.ProjectMemberView) error

func PutProjectRole

func PutProjectRole(db *gorm.DB, table string, role *model.ProjectRoleView) error

func ResourceOwnerProjectRoles

func ResourceOwnerProjectRoles(db *gorm.DB, table, projectID, resourceOwner string) ([]*model.ProjectRoleView, error)

func ResourceOwnerProjectRolesByKey

func ResourceOwnerProjectRolesByKey(db *gorm.DB, table, projectID, resourceOwner, key string) ([]*model.ProjectRoleView, error)

func SearchApplications

func SearchApplications(db *gorm.DB, table string, req *proj_model.ApplicationSearchRequest) ([]*model.ApplicationView, uint64, error)

func SearchProjectGrants added in v0.25.0

func SearchProjectGrants(db *gorm.DB, table string, req *proj_model.ProjectGrantViewSearchRequest) ([]*model.ProjectGrantView, uint64, error)

func SearchProjectRoles

func SearchProjectRoles(db *gorm.DB, table string, req *proj_model.ProjectRoleSearchRequest) ([]*model.ProjectRoleView, uint64, error)

func SearchProjects added in v0.25.0

func SearchProjects(db *gorm.DB, table string, req *proj_model.ProjectViewSearchRequest) ([]*model.ProjectView, uint64, error)

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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