2020-04-07 13:23:04 +02:00
|
|
|
package repository
|
|
|
|
|
|
|
|
import (
|
|
|
|
"context"
|
2020-05-26 16:46:16 +02:00
|
|
|
|
2020-04-07 13:23:04 +02:00
|
|
|
"github.com/caos/zitadel/internal/project/model"
|
|
|
|
)
|
|
|
|
|
|
|
|
type ProjectRepository interface {
|
2020-06-23 07:06:07 +02:00
|
|
|
ProjectByID(ctx context.Context, id string) (*model.ProjectView, error)
|
2020-06-15 14:50:39 +02:00
|
|
|
SearchProjects(ctx context.Context, request *model.ProjectViewSearchRequest) (*model.ProjectViewSearchResponse, error)
|
|
|
|
SearchProjectGrants(ctx context.Context, request *model.ProjectGrantViewSearchRequest) (*model.ProjectGrantViewSearchResponse, error)
|
2020-07-22 14:00:29 +02:00
|
|
|
SearchGrantedProjects(ctx context.Context, request *model.ProjectGrantViewSearchRequest) (*model.ProjectGrantViewSearchResponse, error)
|
2020-06-15 14:50:39 +02:00
|
|
|
ProjectGrantViewByID(ctx context.Context, grantID string) (*model.ProjectGrantView, error)
|
2020-04-15 17:11:42 +02:00
|
|
|
|
2020-06-23 07:06:07 +02:00
|
|
|
ProjectMemberByID(ctx context.Context, projectID, userID string) (*model.ProjectMemberView, error)
|
2020-05-11 12:16:29 +02:00
|
|
|
SearchProjectMembers(ctx context.Context, request *model.ProjectMemberSearchRequest) (*model.ProjectMemberSearchResponse, error)
|
2020-09-01 16:38:34 +02:00
|
|
|
GetProjectMemberRoles(ctx context.Context) ([]string, error)
|
2020-04-21 17:00:32 +02:00
|
|
|
|
2020-07-15 13:24:36 +02:00
|
|
|
SearchProjectRoles(ctx context.Context, projectId string, request *model.ProjectRoleSearchRequest) (*model.ProjectRoleSearchResponse, error)
|
2020-06-25 11:25:38 +02:00
|
|
|
ProjectChanges(ctx context.Context, id string, lastSequence uint64, limit uint64, sortAscending bool) (*model.ProjectChanges, error)
|
2020-04-21 17:00:32 +02:00
|
|
|
|
2020-08-10 09:34:56 +02:00
|
|
|
ApplicationByID(ctx context.Context, projectID, appID string) (*model.ApplicationView, error)
|
2020-04-21 17:00:32 +02:00
|
|
|
ChangeOIDConfigSecret(ctx context.Context, projectID, appID string) (*model.OIDCConfig, error)
|
2020-05-11 12:16:29 +02:00
|
|
|
SearchApplications(ctx context.Context, request *model.ApplicationSearchRequest) (*model.ApplicationSearchResponse, error)
|
2020-06-25 11:25:38 +02:00
|
|
|
ApplicationChanges(ctx context.Context, id string, secId string, lastSequence uint64, limit uint64, sortAscending bool) (*model.ApplicationChanges, error)
|
2020-04-23 07:54:40 +02:00
|
|
|
|
2020-06-23 07:06:07 +02:00
|
|
|
ProjectGrantByID(ctx context.Context, grantID string) (*model.ProjectGrantView, error)
|
2020-05-11 12:16:29 +02:00
|
|
|
SearchProjectGrantMembers(ctx context.Context, request *model.ProjectGrantMemberSearchRequest) (*model.ProjectGrantMemberSearchResponse, error)
|
2020-04-23 07:54:40 +02:00
|
|
|
|
2020-06-23 07:06:07 +02:00
|
|
|
ProjectGrantMemberByID(ctx context.Context, projectID, userID string) (*model.ProjectGrantMemberView, error)
|
2020-05-26 16:46:16 +02:00
|
|
|
GetProjectGrantMemberRoles() []string
|
2020-04-07 13:23:04 +02:00
|
|
|
}
|