Skip to content

Commit 0ebb93c

Browse files
committed
feat(zebra): add jobs marker for deletion
1 parent 1090d81 commit 0ebb93c

File tree

6 files changed

+438
-3
lines changed

6 files changed

+438
-3
lines changed

zebra/lib/protos/internal_api/artifacthub.pb.ex

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -388,12 +388,14 @@ defmodule InternalApi.Artifacthub.ListItem do
388388

389389
@type t :: %__MODULE__{
390390
name: String.t(),
391-
is_directory: boolean
391+
is_directory: boolean,
392+
size: integer
392393
}
393-
defstruct [:name, :is_directory]
394+
defstruct [:name, :is_directory, :size]
394395

395396
field(:name, 1, type: :string)
396397
field(:is_directory, 2, type: :bool)
398+
field(:size, 3, type: :int64)
397399
end
398400

399401
defmodule InternalApi.Artifacthub.Artifact do

zebra/lib/protos/internal_api/rbac.pb.ex

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -508,12 +508,39 @@ defmodule InternalApi.RBAC.Permission do
508508
field(:scope, 4, type: InternalApi.RBAC.Scope, enum: true)
509509
end
510510

511+
defmodule InternalApi.RBAC.ListSubjectsRequest do
512+
@moduledoc false
513+
use Protobuf, syntax: :proto3
514+
515+
@type t :: %__MODULE__{
516+
org_id: String.t(),
517+
subject_ids: [String.t()]
518+
}
519+
defstruct [:org_id, :subject_ids]
520+
521+
field(:org_id, 1, type: :string)
522+
field(:subject_ids, 2, repeated: true, type: :string)
523+
end
524+
525+
defmodule InternalApi.RBAC.ListSubjectsResponse do
526+
@moduledoc false
527+
use Protobuf, syntax: :proto3
528+
529+
@type t :: %__MODULE__{
530+
subjects: [InternalApi.RBAC.Subject.t()]
531+
}
532+
defstruct [:subjects]
533+
534+
field(:subjects, 1, repeated: true, type: InternalApi.RBAC.Subject)
535+
end
536+
511537
defmodule InternalApi.RBAC.SubjectType do
512538
@moduledoc false
513539
use Protobuf, enum: true, syntax: :proto3
514540

515541
field(:USER, 0)
516542
field(:GROUP, 1)
543+
field(:SERVICE_ACCOUNT, 2)
517544
end
518545

519546
defmodule InternalApi.RBAC.Scope do
@@ -588,6 +615,8 @@ defmodule InternalApi.RBAC.RBAC.Service do
588615
InternalApi.RBAC.RefreshCollaboratorsRequest,
589616
InternalApi.RBAC.RefreshCollaboratorsResponse
590617
)
618+
619+
rpc(:ListSubjects, InternalApi.RBAC.ListSubjectsRequest, InternalApi.RBAC.ListSubjectsResponse)
591620
end
592621

593622
defmodule InternalApi.RBAC.RBAC.Stub do

0 commit comments

Comments
 (0)