mirror of
https://github.com/whyour/qinglong.git
synced 2026-09-21 18:08:20 +08:00
feat(ql3): establish 3.0 incubation baseline
This commit is contained in:
@@ -0,0 +1,26 @@
|
||||
import type {
|
||||
PolicySubject,
|
||||
ProjectPolicySnapshot,
|
||||
ProjectRoleBindingRecord,
|
||||
} from '../domain/projectPolicy';
|
||||
|
||||
export interface AppendProjectRoleBindingCommand {
|
||||
expectedCurrentVersion: number;
|
||||
binding: ProjectRoleBindingRecord;
|
||||
}
|
||||
|
||||
export interface AppendProjectRoleBindingResult {
|
||||
status: 'inserted' | 'existing';
|
||||
binding: Readonly<ProjectRoleBindingRecord>;
|
||||
}
|
||||
|
||||
export interface ProjectPolicyRepository {
|
||||
resolve(
|
||||
projectId: string,
|
||||
subject: Readonly<PolicySubject>,
|
||||
): Promise<Readonly<ProjectPolicySnapshot> | null>;
|
||||
|
||||
append(
|
||||
command: AppendProjectRoleBindingCommand,
|
||||
): Promise<AppendProjectRoleBindingResult>;
|
||||
}
|
||||
Reference in New Issue
Block a user