makit 0.0.147 → 0.0.153
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/generated/makit/v1/configuration/project_pb.rb +22 -0
- data/lib/generated/makit/v1/configuration/project_service_pb.rb +34 -0
- data/lib/generated/makit/v1/configuration/project_service_services_pb.rb +51 -0
- data/lib/generated/makit/v1/git/git_repository_model_pb.rb +22 -0
- data/lib/generated/makit/v1/git/git_repository_service_pb.rb +29 -0
- data/lib/generated/makit/v1/git/git_repository_service_services_pb.rb +39 -0
- data/lib/generated/makit/v1/gitlab/pipeline_pb.rb +26 -0
- data/lib/generated/makit/v1/gitlab/pipeline_result_pb.rb +29 -0
- data/lib/generated/makit/v1/gitlab/pipeline_service_pb.rb +36 -0
- data/lib/generated/makit/v1/gitlab/pipeline_service_services_pb.rb +41 -0
- data/lib/generated/makit/v1/grpc/service_specification_pb.rb +27 -0
- data/lib/generated/makit/v1/grpc/test_specification_pb.rb +29 -0
- data/lib/generated/makit/v1/io/filesystem_pb.rb +27 -0
- data/lib/generated/makit/v1/io/filesystem_services_pb.rb +47 -0
- data/lib/generated/makit/v1/makit.v1_pb.rb +35 -0
- data/lib/generated/makit/v1/makit.v1_services_pb.rb +26 -0
- data/lib/generated/makit/v1/podman/podman_service_pb.rb +64 -0
- data/lib/generated/makit/v1/podman/podman_service_services_pb.rb +52 -0
- data/lib/generated/makit/v1/services/repository_manager_model_pb.rb +23 -0
- data/lib/generated/makit/v1/services/repository_manager_service_pb.rb +32 -0
- data/lib/generated/makit/v1/services/repository_manager_service_services_pb.rb +35 -0
- data/lib/generated/makit/v1/spec/message_proto_generator_pb.rb +33 -0
- data/lib/generated/makit/v1/spec/message_proto_generator_services_pb.rb +38 -0
- data/lib/generated/makit/v1/spec/message_spec_pb.rb +31 -0
- data/lib/generated/makit/v1/spec/message_spec_suite_pb.rb +30 -0
- data/lib/generated/makit/v1/spec/message_spec_test_pb.rb +34 -0
- data/lib/generated/makit/v1/spec/proto_service_pb.rb +53 -0
- data/lib/generated/makit/v1/spec/proto_service_services_pb.rb +42 -0
- data/lib/generated/makit/v1/spec/spec_manifest_pb.rb +44 -0
- data/lib/generated/makit/v1/web/link_pb.rb +20 -0
- data/lib/makit/azure/blob_storage.rb +257 -0
- data/lib/makit/azure/cli.rb +285 -0
- data/lib/makit/configuration/project.rb +137 -291
- data/lib/makit/git/repository.rb +24 -190
- data/lib/makit/gitlab/pipeline.rb +16 -16
- data/lib/makit/gitlab/pipeline_service_impl.rb +43 -43
- data/lib/makit/io/filesystem_service_impl.rb +6 -6
- data/lib/makit/lint.rb +212 -0
- data/lib/makit/logging/configuration.rb +2 -1
- data/lib/makit/logging.rb +15 -2
- data/lib/makit/podman/podman.rb +20 -20
- data/lib/makit/podman/podman_service_impl.rb +41 -41
- data/lib/makit/secrets/azure_key_vault.rb +323 -0
- data/lib/makit/secrets/azure_secrets.rb +183 -0
- data/lib/makit/secrets/local_secrets.rb +72 -0
- data/lib/makit/secrets/secrets_manager.rb +105 -0
- data/lib/makit/secrets.rb +10 -45
- data/lib/makit/tasks/bump.rb +7 -0
- data/lib/makit/tasks/info.rb +204 -0
- data/lib/makit/tasks/integrate.rb +28 -1
- data/lib/makit/tasks/secrets.rb +7 -0
- data/lib/makit/tasks/version.rb +6 -0
- data/lib/makit/tasks.rb +4 -0
- data/lib/makit/v1/configuration/project_service_impl.rb +1 -1
- data/lib/makit/version.rb +382 -1
- data/lib/makit.rb +21 -18
- metadata +46 -5
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 39f06350e9b4394c8673bf8b13e99da1fbbac3527642dfbfc72ba9bd4de1488f
|
|
4
|
+
data.tar.gz: e9dec1b8e98c097bbcc5672c98ef9e538ee2c68504d430bde0f01da4c9bbdcb9
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: a70943cbd834d30a9bb3f30a37644eb551196afc7af6f2b2ea322720569700dd06db6c086850ffdfb31b00e8a1d2b77dbed3455f7c89f817dca1dbf83c01b094
|
|
7
|
+
data.tar.gz: 6a4995e84b65dc086ac80844fa83663861bac509b77d5a2b0ce7134162d36115b4259638c1a4dfc71fccd20684362957ef00485f60acd16ff92aaabd48a621a1
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
3
|
+
# source: makit/v1/configuration/project.proto
|
|
4
|
+
|
|
5
|
+
require 'google/protobuf'
|
|
6
|
+
|
|
7
|
+
require 'google/protobuf/timestamp_pb'
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
descriptor_data = "\n$makit/v1/configuration/project.proto\x12\x16makit.v1.configuration\x1a\x1fgoogle/protobuf/timestamp.proto\";\n\x04Step\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x02 \x01(\t\x12\x10\n\x08\x63ommands\x18\x03 \x03(\t\"\xbe\x02\n\x07Project\x12\x16\n\x0egit_remote_url\x18\x01 \x01(\t\x12\x0c\n\x04name\x18\x02 \x01(\t\x12\x0f\n\x07version\x18\x03 \x01(\t\x12\x14\n\x0cproject_type\x18\x04 \x01(\t\x12+\n\x05steps\x18\x05 \x03(\x0b\x32\x1c.makit.v1.configuration.Step\x12\x0f\n\x07\x61uthors\x18\x06 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x07 \x01(\t\x12\x1a\n\x12license_expression\x18\x08 \x01(\t\x12\x17\n\x0f\x64otnet_projects\x18\t \x03(\t\x12.\n\ncreated_at\x18\n \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12.\n\nupdated_at\x18\x0b \x01(\x0b\x32\x1a.google.protobuf.Timestampb\x06proto3"
|
|
11
|
+
|
|
12
|
+
pool = ::Google::Protobuf::DescriptorPool.generated_pool
|
|
13
|
+
pool.add_serialized_file(descriptor_data)
|
|
14
|
+
|
|
15
|
+
module Makit
|
|
16
|
+
module V1
|
|
17
|
+
module Configuration
|
|
18
|
+
Step = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("makit.v1.configuration.Step").msgclass
|
|
19
|
+
Project = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("makit.v1.configuration.Project").msgclass
|
|
20
|
+
end
|
|
21
|
+
end
|
|
22
|
+
end
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
3
|
+
# source: makit/v1/configuration/project_service.proto
|
|
4
|
+
|
|
5
|
+
require 'google/protobuf'
|
|
6
|
+
|
|
7
|
+
require 'makit/v1/configuration/project_pb'
|
|
8
|
+
require 'google/protobuf/empty_pb'
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
descriptor_data = "\n,makit/v1/configuration/project_service.proto\x12\x16makit.v1.configuration\x1a$makit/v1/configuration/project.proto\x1a\x1bgoogle/protobuf/empty.proto\"#\n\x13LoadFromFileRequest\x12\x0c\n\x04path\x18\x01 \x01(\t\"*\n\x13LoadFromJsonRequest\x12\x13\n\x0bjson_string\x18\x01 \x01(\t\"S\n\x11SaveToFileRequest\x12\x30\n\x07project\x18\x01 \x01(\x0b\x32\x1f.makit.v1.configuration.Project\x12\x0c\n\x04path\x18\x02 \x01(\t\"H\n\x14SaveToDefaultRequest\x12\x30\n\x07project\x18\x01 \x01(\x0b\x32\x1f.makit.v1.configuration.Project\"Y\n\x17GenerateGitlabCiRequest\x12\x30\n\x07project\x18\x01 \x01(\x0b\x32\x1f.makit.v1.configuration.Project\x12\x0c\n\x04path\x18\x02 \x01(\t\"K\n\x17GenerateRakefileRequest\x12\x30\n\x07project\x18\x01 \x01(\x0b\x32\x1f.makit.v1.configuration.Project\"V\n\x14WriteRakefileRequest\x12\x30\n\x07project\x18\x01 \x01(\x0b\x32\x1f.makit.v1.configuration.Project\x12\x0c\n\x04path\x18\x02 \x01(\t\"J\n\x16ValidateProjectRequest\x12\x30\n\x07project\x18\x01 \x01(\x0b\x32\x1f.makit.v1.configuration.Project\")\n\x17ValidateProjectResponse\x12\x0e\n\x06\x65rrors\x18\x01 \x03(\t\"\x88\x01\n\x14MergeProjectsRequest\x12\x35\n\x0c\x62\x61se_project\x18\x01 \x01(\x0b\x32\x1f.makit.v1.configuration.Project\x12\x39\n\x10override_project\x18\x02 \x01(\x0b\x32\x1f.makit.v1.configuration.Project\"K\n\x14\x43reateProjectRequest\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x0f\n\x07version\x18\x02 \x01(\t\x12\x14\n\x0cproject_type\x18\x03 \x01(\t\"\xc4\x01\n\x14UpdateProjectRequest\x12\x30\n\x07project\x18\x01 \x01(\x0b\x32\x1f.makit.v1.configuration.Project\x12J\n\x07updates\x18\x02 \x03(\x0b\x32\x39.makit.v1.configuration.UpdateProjectRequest.UpdatesEntry\x1a.\n\x0cUpdatesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"+\n\x18GenerateRakefileResponse\x12\x0f\n\x07\x63ontent\x18\x01 \x01(\t2\xfb\x08\n\x0eProjectService\x12\\\n\x0cLoadFromFile\x12+.makit.v1.configuration.LoadFromFileRequest\x1a\x1f.makit.v1.configuration.Project\x12\\\n\x0cLoadFromJson\x12+.makit.v1.configuration.LoadFromJsonRequest\x1a\x1f.makit.v1.configuration.Project\x12O\n\nSaveToFile\x12).makit.v1.configuration.SaveToFileRequest\x1a\x16.google.protobuf.Empty\x12U\n\rSaveToDefault\x12,.makit.v1.configuration.SaveToDefaultRequest\x1a\x16.google.protobuf.Empty\x12\x46\n\x0bLoadDefault\x12\x16.google.protobuf.Empty\x1a\x1f.makit.v1.configuration.Project\x12[\n\x10GenerateGitlabCi\x12/.makit.v1.configuration.GenerateGitlabCiRequest\x1a\x16.google.protobuf.Empty\x12u\n\x10GenerateRakefile\x12/.makit.v1.configuration.GenerateRakefileRequest\x1a\x30.makit.v1.configuration.GenerateRakefileResponse\x12U\n\rWriteRakefile\x12,.makit.v1.configuration.WriteRakefileRequest\x1a\x16.google.protobuf.Empty\x12r\n\x0fValidateProject\x12..makit.v1.configuration.ValidateProjectRequest\x1a/.makit.v1.configuration.ValidateProjectResponse\x12^\n\rMergeProjects\x12,.makit.v1.configuration.MergeProjectsRequest\x1a\x1f.makit.v1.configuration.Project\x12^\n\rCreateProject\x12,.makit.v1.configuration.CreateProjectRequest\x1a\x1f.makit.v1.configuration.Project\x12^\n\rUpdateProject\x12,.makit.v1.configuration.UpdateProjectRequest\x1a\x1f.makit.v1.configuration.Projectb\x06proto3"
|
|
12
|
+
|
|
13
|
+
pool = ::Google::Protobuf::DescriptorPool.generated_pool
|
|
14
|
+
pool.add_serialized_file(descriptor_data)
|
|
15
|
+
|
|
16
|
+
module Makit
|
|
17
|
+
module V1
|
|
18
|
+
module Configuration
|
|
19
|
+
LoadFromFileRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("makit.v1.configuration.LoadFromFileRequest").msgclass
|
|
20
|
+
LoadFromJsonRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("makit.v1.configuration.LoadFromJsonRequest").msgclass
|
|
21
|
+
SaveToFileRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("makit.v1.configuration.SaveToFileRequest").msgclass
|
|
22
|
+
SaveToDefaultRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("makit.v1.configuration.SaveToDefaultRequest").msgclass
|
|
23
|
+
GenerateGitlabCiRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("makit.v1.configuration.GenerateGitlabCiRequest").msgclass
|
|
24
|
+
GenerateRakefileRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("makit.v1.configuration.GenerateRakefileRequest").msgclass
|
|
25
|
+
WriteRakefileRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("makit.v1.configuration.WriteRakefileRequest").msgclass
|
|
26
|
+
ValidateProjectRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("makit.v1.configuration.ValidateProjectRequest").msgclass
|
|
27
|
+
ValidateProjectResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("makit.v1.configuration.ValidateProjectResponse").msgclass
|
|
28
|
+
MergeProjectsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("makit.v1.configuration.MergeProjectsRequest").msgclass
|
|
29
|
+
CreateProjectRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("makit.v1.configuration.CreateProjectRequest").msgclass
|
|
30
|
+
UpdateProjectRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("makit.v1.configuration.UpdateProjectRequest").msgclass
|
|
31
|
+
GenerateRakefileResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("makit.v1.configuration.GenerateRakefileResponse").msgclass
|
|
32
|
+
end
|
|
33
|
+
end
|
|
34
|
+
end
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
2
|
+
# Source: makit/v1/configuration/project_service.proto for package 'makit.v1.configuration'
|
|
3
|
+
|
|
4
|
+
require 'grpc'
|
|
5
|
+
require 'makit/v1/configuration/project_service_pb'
|
|
6
|
+
|
|
7
|
+
module Makit
|
|
8
|
+
module V1
|
|
9
|
+
module Configuration
|
|
10
|
+
module ProjectService
|
|
11
|
+
# Project configuration service
|
|
12
|
+
# Contains methods that operate on the Project and provide gRPC service methods
|
|
13
|
+
class Service
|
|
14
|
+
|
|
15
|
+
include ::GRPC::GenericService
|
|
16
|
+
|
|
17
|
+
self.marshal_class_method = :encode
|
|
18
|
+
self.unmarshal_class_method = :decode
|
|
19
|
+
self.service_name = 'makit.v1.configuration.ProjectService'
|
|
20
|
+
|
|
21
|
+
# Load a project from a JSON file
|
|
22
|
+
rpc :LoadFromFile, ::Makit::V1::Configuration::LoadFromFileRequest, ::Makit::V1::Configuration::Project
|
|
23
|
+
# Load a project from JSON string
|
|
24
|
+
rpc :LoadFromJson, ::Makit::V1::Configuration::LoadFromJsonRequest, ::Makit::V1::Configuration::Project
|
|
25
|
+
# Save a project to a specific path as pretty JSON
|
|
26
|
+
rpc :SaveToFile, ::Makit::V1::Configuration::SaveToFileRequest, ::Google::Protobuf::Empty
|
|
27
|
+
# Save a project to the default .makit.json file
|
|
28
|
+
rpc :SaveToDefault, ::Makit::V1::Configuration::SaveToDefaultRequest, ::Google::Protobuf::Empty
|
|
29
|
+
# Load the default project from .makit.json or create a new one
|
|
30
|
+
rpc :LoadDefault, ::Google::Protobuf::Empty, ::Makit::V1::Configuration::Project
|
|
31
|
+
# Generate GitLab CI YAML from project
|
|
32
|
+
rpc :GenerateGitlabCi, ::Makit::V1::Configuration::GenerateGitlabCiRequest, ::Google::Protobuf::Empty
|
|
33
|
+
# Generate Rakefile from project
|
|
34
|
+
rpc :GenerateRakefile, ::Makit::V1::Configuration::GenerateRakefileRequest, ::Makit::V1::Configuration::GenerateRakefileResponse
|
|
35
|
+
# Write Rakefile to file
|
|
36
|
+
rpc :WriteRakefile, ::Makit::V1::Configuration::WriteRakefileRequest, ::Google::Protobuf::Empty
|
|
37
|
+
# Validate project configuration
|
|
38
|
+
rpc :ValidateProject, ::Makit::V1::Configuration::ValidateProjectRequest, ::Makit::V1::Configuration::ValidateProjectResponse
|
|
39
|
+
# Merge two project configurations
|
|
40
|
+
rpc :MergeProjects, ::Makit::V1::Configuration::MergeProjectsRequest, ::Makit::V1::Configuration::Project
|
|
41
|
+
# Create a new project with default values
|
|
42
|
+
rpc :CreateProject, ::Makit::V1::Configuration::CreateProjectRequest, ::Makit::V1::Configuration::Project
|
|
43
|
+
# Update project with new values
|
|
44
|
+
rpc :UpdateProject, ::Makit::V1::Configuration::UpdateProjectRequest, ::Makit::V1::Configuration::Project
|
|
45
|
+
end
|
|
46
|
+
|
|
47
|
+
Stub = Service.rpc_stub_class
|
|
48
|
+
end
|
|
49
|
+
end
|
|
50
|
+
end
|
|
51
|
+
end
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
3
|
+
# source: makit/v1/git/git_repository_model.proto
|
|
4
|
+
|
|
5
|
+
require 'google/protobuf'
|
|
6
|
+
|
|
7
|
+
require 'google/protobuf/timestamp_pb'
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
descriptor_data = "\n\'makit/v1/git/git_repository_model.proto\x12\x0cmakit.v1.git\x1a\x1fgoogle/protobuf/timestamp.proto\"Q\n\x08\x46ileInfo\x12\x0c\n\x04name\x18\x01 \x01(\t\x12)\n\x05mtime\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x0c\n\x04size\x18\x03 \x01(\x03\"\xa2\x03\n\x12GitRepositoryModel\x12\x13\n\x0bis_git_repo\x18\x01 \x01(\x08\x12\r\n\x05is_ci\x18\x02 \x01(\x08\x12\x13\n\x0bis_detached\x18\x03 \x01(\x08\x12\x14\n\x0cis_read_only\x18\x04 \x01(\x08\x12\x10\n\x08is_clean\x18\x05 \x01(\x08\x12\x16\n\x0eunstaged_files\x18\x06 \x03(\t\x12\x17\n\x0funtracked_files\x18\x07 \x03(\t\x12\x32\n\x12tracked_file_infos\x18\x08 \x03(\x0b\x32\x16.makit.v1.git.FileInfo\x12\x34\n\x14untracked_file_infos\x18\t \x03(\x0b\x32\x16.makit.v1.git.FileInfo\x12\x0e\n\x06\x62ranch\x18\n \x01(\t\x12\x12\n\ncommit_sha\x18\x0b \x01(\t\x12\x16\n\x0e\x63ommit_message\x18\x0c \x01(\t\x12\x13\n\x0b\x63ommit_date\x18\r \x01(\t\x12\x15\n\rcommit_author\x18\x0e \x01(\t\x12\x14\n\x0c\x63ommit_email\x18\x0f \x01(\t\x12\x12\n\nremote_url\x18\x10 \x01(\tb\x06proto3"
|
|
11
|
+
|
|
12
|
+
pool = ::Google::Protobuf::DescriptorPool.generated_pool
|
|
13
|
+
pool.add_serialized_file(descriptor_data)
|
|
14
|
+
|
|
15
|
+
module Makit
|
|
16
|
+
module V1
|
|
17
|
+
module Git
|
|
18
|
+
FileInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("makit.v1.git.FileInfo").msgclass
|
|
19
|
+
GitRepositoryModel = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("makit.v1.git.GitRepositoryModel").msgclass
|
|
20
|
+
end
|
|
21
|
+
end
|
|
22
|
+
end
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
3
|
+
# source: makit/v1/git/git_repository_service.proto
|
|
4
|
+
|
|
5
|
+
require 'google/protobuf'
|
|
6
|
+
|
|
7
|
+
require 'makit/v1/git/git_repository_model_pb'
|
|
8
|
+
require 'google/protobuf/empty_pb'
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
descriptor_data = "\n)makit/v1/git/git_repository_service.proto\x12\x0cmakit.v1.git\x1a\'makit/v1/git/git_repository_model.proto\x1a\x1bgoogle/protobuf/empty.proto\"\x1b\n\x19GetRepositoryStateRequest\"`\n\x1aSaveRepositoryStateRequest\x12\x34\n\nrepository\x18\x01 \x01(\x0b\x32 .makit.v1.git.GitRepositoryModel\x12\x0c\n\x04path\x18\x02 \x01(\t\"*\n\x1aLoadRepositoryStateRequest\x12\x0c\n\x04path\x18\x01 \x01(\t\"V\n\x1eValidateRepositoryStateRequest\x12\x34\n\nrepository\x18\x01 \x01(\x0b\x32 .makit.v1.git.GitRepositoryModel\"1\n\x1fValidateRepositoryStateResponse\x12\x0e\n\x06\x65rrors\x18\x01 \x03(\t\"\x98\x01\n\x1cMergeRepositoryStatesRequest\x12\x39\n\x0f\x62\x61se_repository\x18\x01 \x01(\x0b\x32 .makit.v1.git.GitRepositoryModel\x12=\n\x13override_repository\x18\x02 \x01(\x0b\x32 .makit.v1.git.GitRepositoryModel\"\x91\x02\n\x1c\x43reateRepositoryStateRequest\x12\x13\n\x0bis_git_repo\x18\x01 \x01(\x08\x12\r\n\x05is_ci\x18\x02 \x01(\x08\x12\x13\n\x0bis_detached\x18\x03 \x01(\x08\x12\x14\n\x0cis_read_only\x18\x04 \x01(\x08\x12\x10\n\x08is_clean\x18\x05 \x01(\x08\x12\x0e\n\x06\x62ranch\x18\x06 \x01(\t\x12\x12\n\ncommit_sha\x18\x07 \x01(\t\x12\x16\n\x0e\x63ommit_message\x18\x08 \x01(\t\x12\x13\n\x0b\x63ommit_date\x18\t \x01(\t\x12\x15\n\rcommit_author\x18\n \x01(\t\x12\x14\n\x0c\x63ommit_email\x18\x0b \x01(\t\x12\x12\n\nremote_url\x18\x0c \x01(\t\"\xce\x01\n\x1cUpdateRepositoryStateRequest\x12\x34\n\nrepository\x18\x01 \x01(\x0b\x32 .makit.v1.git.GitRepositoryModel\x12H\n\x07updates\x18\x02 \x03(\x0b\x32\x37.makit.v1.git.UpdateRepositoryStateRequest.UpdatesEntry\x1a.\n\x0cUpdatesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x32\xe0\x05\n\x14GitRepositoryService\x12_\n\x12GetRepositoryState\x12\'.makit.v1.git.GetRepositoryStateRequest\x1a .makit.v1.git.GitRepositoryModel\x12W\n\x13SaveRepositoryState\x12(.makit.v1.git.SaveRepositoryStateRequest\x1a\x16.google.protobuf.Empty\x12\x61\n\x13LoadRepositoryState\x12(.makit.v1.git.LoadRepositoryStateRequest\x1a .makit.v1.git.GitRepositoryModel\x12v\n\x17ValidateRepositoryState\x12,.makit.v1.git.ValidateRepositoryStateRequest\x1a-.makit.v1.git.ValidateRepositoryStateResponse\x12\x65\n\x15MergeRepositoryStates\x12*.makit.v1.git.MergeRepositoryStatesRequest\x1a .makit.v1.git.GitRepositoryModel\x12\x65\n\x15\x43reateRepositoryState\x12*.makit.v1.git.CreateRepositoryStateRequest\x1a .makit.v1.git.GitRepositoryModel\x12\x65\n\x15UpdateRepositoryState\x12*.makit.v1.git.UpdateRepositoryStateRequest\x1a .makit.v1.git.GitRepositoryModelb\x06proto3"
|
|
12
|
+
|
|
13
|
+
pool = ::Google::Protobuf::DescriptorPool.generated_pool
|
|
14
|
+
pool.add_serialized_file(descriptor_data)
|
|
15
|
+
|
|
16
|
+
module Makit
|
|
17
|
+
module V1
|
|
18
|
+
module Git
|
|
19
|
+
GetRepositoryStateRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("makit.v1.git.GetRepositoryStateRequest").msgclass
|
|
20
|
+
SaveRepositoryStateRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("makit.v1.git.SaveRepositoryStateRequest").msgclass
|
|
21
|
+
LoadRepositoryStateRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("makit.v1.git.LoadRepositoryStateRequest").msgclass
|
|
22
|
+
ValidateRepositoryStateRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("makit.v1.git.ValidateRepositoryStateRequest").msgclass
|
|
23
|
+
ValidateRepositoryStateResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("makit.v1.git.ValidateRepositoryStateResponse").msgclass
|
|
24
|
+
MergeRepositoryStatesRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("makit.v1.git.MergeRepositoryStatesRequest").msgclass
|
|
25
|
+
CreateRepositoryStateRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("makit.v1.git.CreateRepositoryStateRequest").msgclass
|
|
26
|
+
UpdateRepositoryStateRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("makit.v1.git.UpdateRepositoryStateRequest").msgclass
|
|
27
|
+
end
|
|
28
|
+
end
|
|
29
|
+
end
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
2
|
+
# Source: makit/v1/git/git_repository_service.proto for package 'makit.v1.git'
|
|
3
|
+
|
|
4
|
+
require 'grpc'
|
|
5
|
+
require 'makit/v1/git/git_repository_service_pb'
|
|
6
|
+
|
|
7
|
+
module Makit
|
|
8
|
+
module V1
|
|
9
|
+
module Git
|
|
10
|
+
module GitRepositoryService
|
|
11
|
+
class Service
|
|
12
|
+
|
|
13
|
+
include ::GRPC::GenericService
|
|
14
|
+
|
|
15
|
+
self.marshal_class_method = :encode
|
|
16
|
+
self.unmarshal_class_method = :decode
|
|
17
|
+
self.service_name = 'makit.v1.git.GitRepositoryService'
|
|
18
|
+
|
|
19
|
+
# Get current repository state
|
|
20
|
+
rpc :GetRepositoryState, ::Makit::V1::Git::GetRepositoryStateRequest, ::Makit::V1::Git::GitRepositoryModel
|
|
21
|
+
# Save repository state to file
|
|
22
|
+
rpc :SaveRepositoryState, ::Makit::V1::Git::SaveRepositoryStateRequest, ::Google::Protobuf::Empty
|
|
23
|
+
# Load repository state from file
|
|
24
|
+
rpc :LoadRepositoryState, ::Makit::V1::Git::LoadRepositoryStateRequest, ::Makit::V1::Git::GitRepositoryModel
|
|
25
|
+
# Validate repository state
|
|
26
|
+
rpc :ValidateRepositoryState, ::Makit::V1::Git::ValidateRepositoryStateRequest, ::Makit::V1::Git::ValidateRepositoryStateResponse
|
|
27
|
+
# Merge two repository states
|
|
28
|
+
rpc :MergeRepositoryStates, ::Makit::V1::Git::MergeRepositoryStatesRequest, ::Makit::V1::Git::GitRepositoryModel
|
|
29
|
+
# Create a new repository state
|
|
30
|
+
rpc :CreateRepositoryState, ::Makit::V1::Git::CreateRepositoryStateRequest, ::Makit::V1::Git::GitRepositoryModel
|
|
31
|
+
# Update repository state
|
|
32
|
+
rpc :UpdateRepositoryState, ::Makit::V1::Git::UpdateRepositoryStateRequest, ::Makit::V1::Git::GitRepositoryModel
|
|
33
|
+
end
|
|
34
|
+
|
|
35
|
+
Stub = Service.rpc_stub_class
|
|
36
|
+
end
|
|
37
|
+
end
|
|
38
|
+
end
|
|
39
|
+
end
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
3
|
+
# source: makit/v1/gitlab/pipeline.proto
|
|
4
|
+
|
|
5
|
+
require 'google/protobuf'
|
|
6
|
+
|
|
7
|
+
require 'google/protobuf/timestamp_pb'
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
descriptor_data = "\n\x1emakit/v1/gitlab/pipeline.proto\x12\x12makit.v1.gitlab.ci\x1a\x1fgoogle/protobuf/timestamp.proto\"\xdc\x03\n\x08Pipeline\x12\r\n\x05image\x18\x01 \x01(\t\x12>\n\tvariables\x18\x02 \x03(\x0b\x32+.makit.v1.gitlab.ci.Pipeline.VariablesEntry\x12(\n\x05\x63\x61\x63he\x18\x03 \x01(\x0b\x32\x19.makit.v1.gitlab.ci.Cache\x12\x15\n\rbefore_script\x18\x04 \x03(\t\x12\x14\n\x0c\x61\x66ter_script\x18\x05 \x03(\t\x12)\n\x06stages\x18\x06 \x03(\x0b\x32\x19.makit.v1.gitlab.ci.Stage\x12\x34\n\x04jobs\x18\x07 \x03(\x0b\x32&.makit.v1.gitlab.ci.Pipeline.JobsEntry\x12\x0f\n\x07include\x18\x08 \x03(\t\x12\x0f\n\x07\x65xtends\x18\t \x03(\t\x12\x10\n\x08services\x18\n \x03(\t\x12\x0c\n\x04tags\x18\x0b \x03(\t\x12\x0f\n\x07timeout\x18\x0c \x01(\x05\x1a\x30\n\x0eVariablesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x1a\x44\n\tJobsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12&\n\x05value\x18\x02 \x01(\x0b\x32\x17.makit.v1.gitlab.ci.Job:\x02\x38\x01\"F\n\x05\x43\x61\x63he\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05paths\x18\x02 \x03(\t\x12\x0e\n\x06policy\x18\x03 \x01(\t\x12\x11\n\texpire_in\x18\x04 \x01(\x05\"#\n\x05Stage\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x0c\n\x04jobs\x18\x02 \x03(\t\"\xc2\x04\n\x03Job\x12\r\n\x05stage\x18\x01 \x01(\t\x12\x0e\n\x06script\x18\x02 \x03(\t\x12\x15\n\rbefore_script\x18\x03 \x03(\t\x12\x14\n\x0c\x61\x66ter_script\x18\x04 \x03(\t\x12\x14\n\x0c\x64\x65pendencies\x18\x05 \x03(\t\x12\x17\n\x0f\x61rtifacts_paths\x18\x06 \x03(\t\x12\x1b\n\x13\x61rtifacts_expire_in\x18\x07 \x01(\x05\x12\x16\n\x0e\x61rtifacts_when\x18\x08 \x01(\t\x12\x10\n\x08\x63overage\x18\t \x01(\t\x12\x39\n\tvariables\x18\n \x03(\x0b\x32&.makit.v1.gitlab.ci.Job.VariablesEntry\x12\x0c\n\x04only\x18\x0b \x03(\t\x12\x0e\n\x06\x65xcept\x18\x0c \x03(\t\x12\r\n\x05rules\x18\r \x03(\t\x12\r\n\x05image\x18\x0e \x01(\t\x12\x10\n\x08services\x18\x0f \x03(\t\x12\x0c\n\x04tags\x18\x10 \x03(\t\x12\x15\n\rallow_failure\x18\x11 \x01(\x08\x12\x0f\n\x07timeout\x18\x12 \x01(\x05\x12\r\n\x05needs\x18\x13 \x03(\t\x12\x0c\n\x04when\x18\x14 \x03(\t\x12\x19\n\x11\x61rtifacts_reports\x18\x15 \x03(\t\x12\x1b\n\x13\x61rtifacts_expose_as\x18\x16 \x03(\t\x12\x16\n\x0e\x61rtifacts_name\x18\x17 \x03(\t\x12\x1b\n\x13\x61rtifacts_untracked\x18\x18 \x03(\t\x1a\x30\n\x0eVariablesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x62\x06proto3"
|
|
11
|
+
|
|
12
|
+
pool = ::Google::Protobuf::DescriptorPool.generated_pool
|
|
13
|
+
pool.add_serialized_file(descriptor_data)
|
|
14
|
+
|
|
15
|
+
module Makit
|
|
16
|
+
module V1
|
|
17
|
+
module Gitlab
|
|
18
|
+
module Ci
|
|
19
|
+
Pipeline = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("makit.v1.gitlab.ci.Pipeline").msgclass
|
|
20
|
+
Cache = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("makit.v1.gitlab.ci.Cache").msgclass
|
|
21
|
+
Stage = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("makit.v1.gitlab.ci.Stage").msgclass
|
|
22
|
+
Job = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("makit.v1.gitlab.ci.Job").msgclass
|
|
23
|
+
end
|
|
24
|
+
end
|
|
25
|
+
end
|
|
26
|
+
end
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
3
|
+
# source: makit/v1/gitlab/pipeline_result.proto
|
|
4
|
+
|
|
5
|
+
require 'google/protobuf'
|
|
6
|
+
|
|
7
|
+
require 'google/protobuf/timestamp_pb'
|
|
8
|
+
require 'makit/v1/gitlab/pipeline_pb'
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
descriptor_data = "\n%makit/v1/gitlab/pipeline_result.proto\x12\x12makit.v1.gitlab.ci\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x1emakit/v1/gitlab/pipeline.proto\"\x81\x03\n\x17PipelineExecutionResult\x12\x14\n\x0c\x65xecution_id\x18\x01 \x01(\t\x12\x32\n\x06status\x18\x02 \x01(\x0e\x32\".makit.v1.gitlab.ci.PipelineStatus\x12.\n\nstarted_at\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12/\n\x0b\x66inished_at\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12;\n\x0bjob_results\x18\x05 \x03(\x0b\x32&.makit.v1.gitlab.ci.JobExecutionResult\x12\x0c\n\x04logs\x18\x06 \x03(\t\x12\x0e\n\x06\x65rrors\x18\x07 \x03(\t\x12\x10\n\x08warnings\x18\x08 \x03(\t\x12\x1e\n\x16total_duration_seconds\x18\t \x01(\x05\x12\x16\n\x0epodman_version\x18\n \x01(\t\x12\x16\n\x0e\x65xecution_host\x18\x0b \x01(\t\"\x91\x04\n\x12JobExecutionResult\x12\x10\n\x08job_name\x18\x01 \x01(\t\x12-\n\x06status\x18\x02 \x01(\x0e\x32\x1d.makit.v1.gitlab.ci.JobStatus\x12.\n\nstarted_at\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12/\n\x0b\x66inished_at\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x18\n\x10\x64uration_seconds\x18\x05 \x01(\x05\x12\x0c\n\x04logs\x18\x06 \x03(\t\x12\x0e\n\x06\x65rrors\x18\x07 \x03(\t\x12\x10\n\x08warnings\x18\x08 \x03(\t\x12\x11\n\texit_code\x18\t \x01(\x05\x12\x14\n\x0c\x63ontainer_id\x18\n \x01(\t\x12\x12\n\nimage_used\x18\x0b \x01(\t\x12\x19\n\x11\x61rtifacts_created\x18\x0c \x03(\t\x12_\n\x15\x65nvironment_variables\x18\r \x03(\x0b\x32@.makit.v1.gitlab.ci.JobExecutionResult.EnvironmentVariablesEntry\x12\x19\n\x11\x63ommands_executed\x18\x0e \x03(\t\x1a;\n\x19\x45nvironmentVariablesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"\x8c\x03\n\x16\x45xecutePipelineRequest\x12.\n\x08pipeline\x18\x01 \x01(\x0b\x32\x1c.makit.v1.gitlab.ci.Pipeline\x12\x19\n\x11working_directory\x18\x02 \x01(\t\x12\x63\n\x15\x65nvironment_variables\x18\x03 \x03(\x0b\x32\x44.makit.v1.gitlab.ci.ExecutePipelineRequest.EnvironmentVariablesEntry\x12\x0f\n\x07\x64ry_run\x18\x04 \x01(\x08\x12\x0f\n\x07verbose\x18\x05 \x01(\x08\x12\x19\n\x11podman_executable\x18\x06 \x01(\t\x12\x13\n\x0bpodman_args\x18\x07 \x03(\t\x12\x1a\n\x12\x63leanup_containers\x18\x08 \x01(\x08\x12\x17\n\x0ftimeout_seconds\x18\t \x01(\x05\x1a;\n\x19\x45nvironmentVariablesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"\x89\x01\n\x17\x45xecutePipelineResponse\x12;\n\x06result\x18\x01 \x01(\x0b\x32+.makit.v1.gitlab.ci.PipelineExecutionResult\x12\x0f\n\x07success\x18\x02 \x01(\x08\x12\x0e\n\x06\x65rrors\x18\x03 \x03(\t\x12\x10\n\x08warnings\x18\x04 \x03(\t*\xf8\x01\n\x0ePipelineStatus\x12\x1b\n\x17PIPELINE_STATUS_UNKNOWN\x10\x00\x12\x1b\n\x17PIPELINE_STATUS_PENDING\x10\x01\x12\x1b\n\x17PIPELINE_STATUS_RUNNING\x10\x02\x12\x1b\n\x17PIPELINE_STATUS_SUCCESS\x10\x03\x12\x1a\n\x16PIPELINE_STATUS_FAILED\x10\x04\x12\x1d\n\x19PIPELINE_STATUS_CANCELLED\x10\x05\x12\x1b\n\x17PIPELINE_STATUS_SKIPPED\x10\x06\x12\x1a\n\x16PIPELINE_STATUS_MANUAL\x10\x07*\xcb\x01\n\tJobStatus\x12\x16\n\x12JOB_STATUS_UNKNOWN\x10\x00\x12\x16\n\x12JOB_STATUS_PENDING\x10\x01\x12\x16\n\x12JOB_STATUS_RUNNING\x10\x02\x12\x16\n\x12JOB_STATUS_SUCCESS\x10\x03\x12\x15\n\x11JOB_STATUS_FAILED\x10\x04\x12\x18\n\x14JOB_STATUS_CANCELLED\x10\x05\x12\x16\n\x12JOB_STATUS_SKIPPED\x10\x06\x12\x15\n\x11JOB_STATUS_MANUAL\x10\x07\x62\x06proto3"
|
|
12
|
+
|
|
13
|
+
pool = ::Google::Protobuf::DescriptorPool.generated_pool
|
|
14
|
+
pool.add_serialized_file(descriptor_data)
|
|
15
|
+
|
|
16
|
+
module Makit
|
|
17
|
+
module V1
|
|
18
|
+
module Gitlab
|
|
19
|
+
module Ci
|
|
20
|
+
PipelineExecutionResult = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("makit.v1.gitlab.ci.PipelineExecutionResult").msgclass
|
|
21
|
+
JobExecutionResult = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("makit.v1.gitlab.ci.JobExecutionResult").msgclass
|
|
22
|
+
ExecutePipelineRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("makit.v1.gitlab.ci.ExecutePipelineRequest").msgclass
|
|
23
|
+
ExecutePipelineResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("makit.v1.gitlab.ci.ExecutePipelineResponse").msgclass
|
|
24
|
+
PipelineStatus = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("makit.v1.gitlab.ci.PipelineStatus").enummodule
|
|
25
|
+
JobStatus = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("makit.v1.gitlab.ci.JobStatus").enummodule
|
|
26
|
+
end
|
|
27
|
+
end
|
|
28
|
+
end
|
|
29
|
+
end
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
3
|
+
# source: makit/v1/gitlab/pipeline_service.proto
|
|
4
|
+
|
|
5
|
+
require 'google/protobuf'
|
|
6
|
+
|
|
7
|
+
require 'google/protobuf/empty_pb'
|
|
8
|
+
require 'makit/v1/gitlab/pipeline_pb'
|
|
9
|
+
require 'makit/v1/gitlab/pipeline_result_pb'
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
descriptor_data = "\n&makit/v1/gitlab/pipeline_service.proto\x12\x12makit.v1.gitlab.ci\x1a\x1bgoogle/protobuf/empty.proto\x1a\x1emakit/v1/gitlab/pipeline.proto\x1a%makit/v1/gitlab/pipeline_result.proto\"P\n\x10ParseYamlRequest\x12\x14\n\x0cyaml_content\x18\x01 \x01(\t\x12\x11\n\tfile_path\x18\x02 \x01(\t\x12\x13\n\x0bstrict_mode\x18\x03 \x01(\x08\"v\n\x11ParseYamlResponse\x12.\n\x08pipeline\x18\x01 \x01(\x0b\x32\x1c.makit.v1.gitlab.ci.Pipeline\x12\x0e\n\x06\x65rrors\x18\x02 \x03(\t\x12\x10\n\x08warnings\x18\x03 \x03(\t\x12\x0f\n\x07success\x18\x04 \x01(\x08\"k\n\rToYamlRequest\x12.\n\x08pipeline\x18\x01 \x01(\x0b\x32\x1c.makit.v1.gitlab.ci.Pipeline\x12\x15\n\rpretty_format\x18\x02 \x01(\x08\x12\x13\n\x0bindent_size\x18\x03 \x01(\x05\"G\n\x0eToYamlResponse\x12\x14\n\x0cyaml_content\x18\x01 \x01(\t\x12\x0e\n\x06\x65rrors\x18\x02 \x03(\t\x12\x0f\n\x07success\x18\x03 \x01(\x08\"m\n\x17ValidatePipelineRequest\x12.\n\x08pipeline\x18\x01 \x01(\x0b\x32\x1c.makit.v1.gitlab.ci.Pipeline\x12\"\n\x1a\x63heck_gitlab_compatibility\x18\x02 \x01(\x08\"c\n\x18ValidatePipelineResponse\x12\x10\n\x08is_valid\x18\x01 \x01(\x08\x12\x0e\n\x06\x65rrors\x18\x02 \x03(\t\x12\x10\n\x08warnings\x18\x03 \x03(\t\x12\x13\n\x0bsuggestions\x18\x04 \x03(\t\"\x9c\x01\n\x15MergePipelinesRequest\x12\x33\n\rbase_pipeline\x18\x01 \x01(\x0b\x32\x1c.makit.v1.gitlab.ci.Pipeline\x12\x37\n\x11override_pipeline\x18\x02 \x01(\x0b\x32\x1c.makit.v1.gitlab.ci.Pipeline\x12\x15\n\rpreserve_base\x18\x03 \x01(\x08\"t\n\x16MergePipelinesResponse\x12\x35\n\x0fmerged_pipeline\x18\x01 \x01(\x0b\x32\x1c.makit.v1.gitlab.ci.Pipeline\x12\x11\n\tconflicts\x18\x02 \x03(\t\x12\x10\n\x08warnings\x18\x03 \x03(\t\"I\n\x17GetPipelineStatsRequest\x12.\n\x08pipeline\x18\x01 \x01(\x0b\x32\x1c.makit.v1.gitlab.ci.Pipeline\"\xb6\x01\n\x18GetPipelineStatsResponse\x12\x12\n\ntotal_jobs\x18\x01 \x01(\x05\x12\x14\n\x0ctotal_stages\x18\x02 \x01(\x05\x12\x17\n\x0ftotal_artifacts\x18\x03 \x01(\x05\x12\x16\n\x0etotal_services\x18\x04 \x01(\x05\x12\x17\n\x0ftotal_variables\x18\x05 \x01(\x05\x12\x13\n\x0bstage_names\x18\x06 \x03(\t\x12\x11\n\tjob_names\x18\x07 \x03(\t\"{\n\x17\x43omparePipelinesRequest\x12/\n\tpipeline1\x18\x01 \x01(\x0b\x32\x1c.makit.v1.gitlab.ci.Pipeline\x12/\n\tpipeline2\x18\x02 \x01(\x0b\x32\x1c.makit.v1.gitlab.ci.Pipeline\"\xb5\x01\n\x18\x43omparePipelinesResponse\x12\x15\n\rare_identical\x18\x01 \x01(\x08\x12\x13\n\x0b\x64ifferences\x18\x02 \x03(\t\x12\x12\n\nadded_jobs\x18\x03 \x03(\t\x12\x14\n\x0cremoved_jobs\x18\x04 \x03(\t\x12\x15\n\rmodified_jobs\x18\x05 \x03(\t\x12\x14\n\x0c\x61\x64\x64\x65\x64_stages\x18\x06 \x03(\t\x12\x16\n\x0eremoved_stages\x18\x07 \x03(\t2\xde\x05\n\x0fPipelineService\x12X\n\tParseYaml\x12$.makit.v1.gitlab.ci.ParseYamlRequest\x1a%.makit.v1.gitlab.ci.ParseYamlResponse\x12O\n\x06ToYaml\x12!.makit.v1.gitlab.ci.ToYamlRequest\x1a\".makit.v1.gitlab.ci.ToYamlResponse\x12m\n\x10ValidatePipeline\x12+.makit.v1.gitlab.ci.ValidatePipelineRequest\x1a,.makit.v1.gitlab.ci.ValidatePipelineResponse\x12g\n\x0eMergePipelines\x12).makit.v1.gitlab.ci.MergePipelinesRequest\x1a*.makit.v1.gitlab.ci.MergePipelinesResponse\x12m\n\x10GetPipelineStats\x12+.makit.v1.gitlab.ci.GetPipelineStatsRequest\x1a,.makit.v1.gitlab.ci.GetPipelineStatsResponse\x12m\n\x10\x43omparePipelines\x12+.makit.v1.gitlab.ci.ComparePipelinesRequest\x1a,.makit.v1.gitlab.ci.ComparePipelinesResponse\x12j\n\x0f\x45xecutePipeline\x12*.makit.v1.gitlab.ci.ExecutePipelineRequest\x1a+.makit.v1.gitlab.ci.ExecutePipelineResponseb\x06proto3"
|
|
13
|
+
|
|
14
|
+
pool = ::Google::Protobuf::DescriptorPool.generated_pool
|
|
15
|
+
pool.add_serialized_file(descriptor_data)
|
|
16
|
+
|
|
17
|
+
module Makit
|
|
18
|
+
module V1
|
|
19
|
+
module Gitlab
|
|
20
|
+
module Ci
|
|
21
|
+
ParseYamlRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("makit.v1.gitlab.ci.ParseYamlRequest").msgclass
|
|
22
|
+
ParseYamlResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("makit.v1.gitlab.ci.ParseYamlResponse").msgclass
|
|
23
|
+
ToYamlRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("makit.v1.gitlab.ci.ToYamlRequest").msgclass
|
|
24
|
+
ToYamlResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("makit.v1.gitlab.ci.ToYamlResponse").msgclass
|
|
25
|
+
ValidatePipelineRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("makit.v1.gitlab.ci.ValidatePipelineRequest").msgclass
|
|
26
|
+
ValidatePipelineResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("makit.v1.gitlab.ci.ValidatePipelineResponse").msgclass
|
|
27
|
+
MergePipelinesRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("makit.v1.gitlab.ci.MergePipelinesRequest").msgclass
|
|
28
|
+
MergePipelinesResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("makit.v1.gitlab.ci.MergePipelinesResponse").msgclass
|
|
29
|
+
GetPipelineStatsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("makit.v1.gitlab.ci.GetPipelineStatsRequest").msgclass
|
|
30
|
+
GetPipelineStatsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("makit.v1.gitlab.ci.GetPipelineStatsResponse").msgclass
|
|
31
|
+
ComparePipelinesRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("makit.v1.gitlab.ci.ComparePipelinesRequest").msgclass
|
|
32
|
+
ComparePipelinesResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("makit.v1.gitlab.ci.ComparePipelinesResponse").msgclass
|
|
33
|
+
end
|
|
34
|
+
end
|
|
35
|
+
end
|
|
36
|
+
end
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
2
|
+
# Source: makit/v1/gitlab/pipeline_service.proto for package 'makit.v1.gitlab.ci'
|
|
3
|
+
|
|
4
|
+
require 'grpc'
|
|
5
|
+
require 'makit/v1/gitlab/pipeline_service_pb'
|
|
6
|
+
|
|
7
|
+
module Makit
|
|
8
|
+
module V1
|
|
9
|
+
module Gitlab
|
|
10
|
+
module Ci
|
|
11
|
+
module PipelineService
|
|
12
|
+
class Service
|
|
13
|
+
|
|
14
|
+
include ::GRPC::GenericService
|
|
15
|
+
|
|
16
|
+
self.marshal_class_method = :encode
|
|
17
|
+
self.unmarshal_class_method = :decode
|
|
18
|
+
self.service_name = 'makit.v1.gitlab.ci.PipelineService'
|
|
19
|
+
|
|
20
|
+
# Parse GitLab CI YAML content into Pipeline message
|
|
21
|
+
rpc :ParseYaml, ::Makit::V1::Gitlab::Ci::ParseYamlRequest, ::Makit::V1::Gitlab::Ci::ParseYamlResponse
|
|
22
|
+
# Convert Pipeline message back to YAML
|
|
23
|
+
rpc :ToYaml, ::Makit::V1::Gitlab::Ci::ToYamlRequest, ::Makit::V1::Gitlab::Ci::ToYamlResponse
|
|
24
|
+
# Validate pipeline structure
|
|
25
|
+
rpc :ValidatePipeline, ::Makit::V1::Gitlab::Ci::ValidatePipelineRequest, ::Makit::V1::Gitlab::Ci::ValidatePipelineResponse
|
|
26
|
+
# Merge multiple pipelines
|
|
27
|
+
rpc :MergePipelines, ::Makit::V1::Gitlab::Ci::MergePipelinesRequest, ::Makit::V1::Gitlab::Ci::MergePipelinesResponse
|
|
28
|
+
# Get pipeline statistics
|
|
29
|
+
rpc :GetPipelineStats, ::Makit::V1::Gitlab::Ci::GetPipelineStatsRequest, ::Makit::V1::Gitlab::Ci::GetPipelineStatsResponse
|
|
30
|
+
# Compare two pipelines
|
|
31
|
+
rpc :ComparePipelines, ::Makit::V1::Gitlab::Ci::ComparePipelinesRequest, ::Makit::V1::Gitlab::Ci::ComparePipelinesResponse
|
|
32
|
+
# Execute a pipeline using Podman
|
|
33
|
+
rpc :ExecutePipeline, ::Makit::V1::Gitlab::Ci::ExecutePipelineRequest, ::Makit::V1::Gitlab::Ci::ExecutePipelineResponse
|
|
34
|
+
end
|
|
35
|
+
|
|
36
|
+
Stub = Service.rpc_stub_class
|
|
37
|
+
end
|
|
38
|
+
end
|
|
39
|
+
end
|
|
40
|
+
end
|
|
41
|
+
end
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
3
|
+
# source: makit/v1/grpc/service_specification.proto
|
|
4
|
+
|
|
5
|
+
require 'google/protobuf'
|
|
6
|
+
|
|
7
|
+
require 'google/protobuf/duration_pb'
|
|
8
|
+
require 'google/protobuf/struct_pb'
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
descriptor_data = "\n)makit/v1/grpc/service_specification.proto\x12\rmakit.v1.grpc\x1a\x1egoogle/protobuf/duration.proto\x1a\x1cgoogle/protobuf/struct.proto\"n\n\x14ServiceSpecification\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x02 \x01(\t\x12\x33\n\x07methods\x18\x03 \x03(\x0b\x32\".makit.v1.grpc.MethodSpecification\"\xe1\x03\n\x13MethodSpecification\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x02 \x01(\t\x12\x14\n\x0crequest_type\x18\x03 \x01(\t\x12\x15\n\rresponse_type\x18\x04 \x01(\t\x12&\n\x05input\x18\x05 \x01(\x0b\x32\x17.google.protobuf.Struct\x12\'\n\x06output\x18\x06 \x01(\x0b\x32\x17.google.protobuf.Struct\x12\x32\n\rpreconditions\x18\x07 \x03(\x0b\x32\x1b.makit.v1.grpc.Precondition\x12\x30\n\x0c\x65xpectations\x18\x08 \x03(\x0b\x32\x1a.makit.v1.grpc.Expectation\x12\x30\n\x06timing\x18\t \x01(\x0b\x32 .makit.v1.grpc.TimingExpectation\x12\x46\n\nextensions\x18\n \x03(\x0b\x32\x32.makit.v1.grpc.MethodSpecification.ExtensionsEntry\x1aI\n\x0f\x45xtensionsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12%\n\x05value\x18\x02 \x01(\x0b\x32\x16.google.protobuf.Value:\x02\x38\x01\"S\n\x0cPrecondition\x12\x13\n\x0b\x64\x65scription\x18\x01 \x01(\t\x12.\n\rsetup_context\x18\x02 \x01(\x0b\x32\x17.google.protobuf.Struct\"\x82\x01\n\x0b\x45xpectation\x12\x13\n\x0b\x64\x65scription\x18\x01 \x01(\t\x12\x30\n\x0f\x65xpected_output\x18\x02 \x01(\x0b\x32\x17.google.protobuf.Struct\x12,\n\x05rules\x18\x03 \x03(\x0b\x32\x1d.makit.v1.grpc.ValidationRule\"N\n\x0eValidationRule\x12\x12\n\nfield_path\x18\x01 \x01(\t\x12\x10\n\x08operator\x18\x02 \x01(\t\x12\x16\n\x0e\x65xpected_value\x18\x03 \x01(\t\"s\n\x11TimingExpectation\x12.\n\x0bmin_latency\x18\x01 \x01(\x0b\x32\x19.google.protobuf.Duration\x12.\n\x0bmax_latency\x18\x02 \x01(\x0b\x32\x19.google.protobuf.Durationb\x06proto3"
|
|
12
|
+
|
|
13
|
+
pool = ::Google::Protobuf::DescriptorPool.generated_pool
|
|
14
|
+
pool.add_serialized_file(descriptor_data)
|
|
15
|
+
|
|
16
|
+
module Makit
|
|
17
|
+
module V1
|
|
18
|
+
module Grpc
|
|
19
|
+
ServiceSpecification = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("makit.v1.grpc.ServiceSpecification").msgclass
|
|
20
|
+
MethodSpecification = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("makit.v1.grpc.MethodSpecification").msgclass
|
|
21
|
+
Precondition = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("makit.v1.grpc.Precondition").msgclass
|
|
22
|
+
Expectation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("makit.v1.grpc.Expectation").msgclass
|
|
23
|
+
ValidationRule = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("makit.v1.grpc.ValidationRule").msgclass
|
|
24
|
+
TimingExpectation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("makit.v1.grpc.TimingExpectation").msgclass
|
|
25
|
+
end
|
|
26
|
+
end
|
|
27
|
+
end
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
3
|
+
# source: makit/v1/grpc/test_specification.proto
|
|
4
|
+
|
|
5
|
+
require 'google/protobuf'
|
|
6
|
+
|
|
7
|
+
require 'google/protobuf/timestamp_pb'
|
|
8
|
+
require 'google/protobuf/duration_pb'
|
|
9
|
+
require 'google/protobuf/struct_pb'
|
|
10
|
+
require 'makit/v1/grpc/service_specification_pb'
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
descriptor_data = "\n&makit/v1/grpc/test_specification.proto\x12\rmakit.v1.grpc\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x1egoogle/protobuf/duration.proto\x1a\x1cgoogle/protobuf/struct.proto\x1a)makit/v1/grpc/service_specification.proto\"\x8e\x02\n\x16TestSuiteSpecification\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x02 \x01(\t\x12\x34\n\x07service\x18\x03 \x01(\x0b\x32#.makit.v1.grpc.ServiceSpecification\x12\x38\n\ntest_cases\x18\x04 \x03(\x0b\x32$.makit.v1.grpc.TestCaseSpecification\x12/\n\x0eglobal_context\x18\x05 \x01(\x0b\x32\x17.google.protobuf.Struct\x12\x30\n\x06timing\x18\x06 \x01(\x0b\x32 .makit.v1.grpc.TimingExpectation\"\x9c\x03\n\x15TestCaseSpecification\x12\n\n\x02id\x18\x01 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x02 \x01(\t\x12\x13\n\x0bmethod_name\x18\x03 \x01(\t\x12/\n\x0einput_override\x18\x04 \x01(\x0b\x32\x17.google.protobuf.Struct\x12\x30\n\x0c\x65xpectations\x18\x05 \x03(\x0b\x32\x1a.makit.v1.grpc.Expectation\x12\x12\n\ndepends_on\x18\x06 \x03(\t\x12\x16\n\x0eparallelizable\x18\x07 \x01(\x08\x12\x30\n\x06timing\x18\x08 \x01(\x0b\x32 .makit.v1.grpc.TimingExpectation\x12*\n\x05setup\x18\t \x03(\x0b\x32\x1b.makit.v1.grpc.Precondition\x12-\n\x07\x63leanup\x18\n \x03(\x0b\x32\x1c.makit.v1.grpc.CleanupAction\x12\x31\n\x08metadata\x18\x0b \x01(\x0b\x32\x1f.makit.v1.grpc.TestCaseMetadata\"W\n\rCleanupAction\x12\x13\n\x0b\x64\x65scription\x18\x01 \x01(\t\x12\x31\n\x10teardown_context\x18\x02 \x01(\x0b\x32\x17.google.protobuf.Struct\"\xd8\x01\n\x10TestCaseMetadata\x12.\n\ncreated_at\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12.\n\nupdated_at\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x37\n\x04tags\x18\x03 \x03(\x0b\x32).makit.v1.grpc.TestCaseMetadata.TagsEntry\x1a+\n\tTagsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"\x94\x01\n\nTestResult\x12\x0f\n\x07\x63\x61se_id\x18\x01 \x01(\t\x12\x0e\n\x06passed\x18\x02 \x01(\x08\x12\x32\n\x08\x66\x61ilures\x18\x03 \x03(\x0b\x32 .makit.v1.grpc.ValidationFailure\x12\x31\n\x0e\x65xecution_time\x18\x04 \x01(\x0b\x32\x19.google.protobuf.Duration\"l\n\x11ValidationFailure\x12\x12\n\nfield_path\x18\x01 \x01(\t\x12\x10\n\x08operator\x18\x02 \x01(\t\x12\x10\n\x08\x65xpected\x18\x03 \x01(\t\x12\x0e\n\x06\x61\x63tual\x18\x04 \x01(\t\x12\x0f\n\x07message\x18\x05 \x01(\tb\x06proto3"
|
|
14
|
+
|
|
15
|
+
pool = ::Google::Protobuf::DescriptorPool.generated_pool
|
|
16
|
+
pool.add_serialized_file(descriptor_data)
|
|
17
|
+
|
|
18
|
+
module Makit
|
|
19
|
+
module V1
|
|
20
|
+
module Grpc
|
|
21
|
+
TestSuiteSpecification = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("makit.v1.grpc.TestSuiteSpecification").msgclass
|
|
22
|
+
TestCaseSpecification = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("makit.v1.grpc.TestCaseSpecification").msgclass
|
|
23
|
+
CleanupAction = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("makit.v1.grpc.CleanupAction").msgclass
|
|
24
|
+
TestCaseMetadata = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("makit.v1.grpc.TestCaseMetadata").msgclass
|
|
25
|
+
TestResult = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("makit.v1.grpc.TestResult").msgclass
|
|
26
|
+
ValidationFailure = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("makit.v1.grpc.ValidationFailure").msgclass
|
|
27
|
+
end
|
|
28
|
+
end
|
|
29
|
+
end
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
3
|
+
# source: makit/v1/io/filesystem.proto
|
|
4
|
+
|
|
5
|
+
require 'google/protobuf'
|
|
6
|
+
|
|
7
|
+
require 'google/protobuf/empty_pb'
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
descriptor_data = "\n\x1cmakit/v1/io/filesystem.proto\x12\x0bmakit.v1.io\x1a\x1bgoogle/protobuf/empty.proto\"\x95\x01\n\x0c\x46ileMetaData\x12\x11\n\tmime_type\x18\x01 \x01(\t\x12\x12\n\nsize_bytes\x18\x02 \x01(\x03\x12\x12\n\ncreated_at\x18\x03 \x01(\t\x12\x13\n\x0bmodified_at\x18\x04 \x01(\t\x12\r\n\x05owner\x18\x05 \x01(\t\x12\x14\n\x0cis_directory\x18\x06 \x01(\x08\x12\x10\n\x08\x63hecksum\x18\x07 \x01(\t\"j\n\x04\x46ile\x12\x0c\n\x04path\x18\x01 \x01(\t\x12\x13\n\x0b\x62inary_data\x18\x02 \x01(\x0c\x12\x12\n\ntext_lines\x18\x03 \x03(\t\x12+\n\x08metadata\x18\x04 \x01(\x0b\x32\x19.makit.v1.io.FileMetaData\"f\n\tFileChunk\x12\x0c\n\x04path\x18\x01 \x01(\t\x12\x0c\n\x04\x64\x61ta\x18\x02 \x01(\x0c\x12+\n\x08metadata\x18\x03 \x01(\x0b\x32\x19.makit.v1.io.FileMetaData\x12\x10\n\x08is_final\x18\x04 \x01(\x08\"\x1b\n\x0b\x46ileRequest\x12\x0c\n\x04path\x18\x01 \x01(\t\"\x90\x01\n\tFileQuery\x12\x11\n\tdirectory\x18\x01 \x01(\t\x12\x11\n\trecursive\x18\x02 \x01(\x08\x12\x0f\n\x07pattern\x18\x03 \x01(\t\x12\x19\n\x11respect_gitignore\x18\x04 \x01(\x08\x12\x18\n\x10include_metadata\x18\x05 \x01(\x08\x12\x17\n\x0finclude_content\x18\x06 \x01(\x08\"/\n\x0c\x46ileResponse\x12\x1f\n\x04\x66ile\x18\x01 \x01(\x0b\x32\x11.makit.v1.io.File\",\n\x08\x46ileList\x12 \n\x05\x66iles\x18\x01 \x03(\x0b\x32\x11.makit.v1.io.File2\x92\x04\n\x11\x46ileSystemService\x12>\n\x07GetFile\x12\x18.makit.v1.io.FileRequest\x1a\x19.makit.v1.io.FileResponse\x12\x38\n\x08SaveFile\x12\x11.makit.v1.io.File\x1a\x19.makit.v1.io.FileResponse\x12>\n\nDeleteFile\x12\x18.makit.v1.io.FileRequest\x1a\x16.google.protobuf.Empty\x12:\n\tListFiles\x12\x16.makit.v1.io.FileQuery\x1a\x15.makit.v1.io.FileList\x12\x43\n\x0f\x43reateDirectory\x12\x18.makit.v1.io.FileRequest\x1a\x16.google.protobuf.Empty\x12\x43\n\x0f\x44\x65leteDirectory\x12\x18.makit.v1.io.FileRequest\x1a\x16.google.protobuf.Empty\x12=\n\x06Upload\x12\x16.makit.v1.io.FileChunk\x1a\x19.makit.v1.io.FileResponse(\x01\x12>\n\x08\x44ownload\x12\x18.makit.v1.io.FileRequest\x1a\x16.makit.v1.io.FileChunk0\x01\x62\x06proto3"
|
|
11
|
+
|
|
12
|
+
pool = ::Google::Protobuf::DescriptorPool.generated_pool
|
|
13
|
+
pool.add_serialized_file(descriptor_data)
|
|
14
|
+
|
|
15
|
+
module Makit
|
|
16
|
+
module V1
|
|
17
|
+
module Io
|
|
18
|
+
FileMetaData = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("makit.v1.io.FileMetaData").msgclass
|
|
19
|
+
File = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("makit.v1.io.File").msgclass
|
|
20
|
+
FileChunk = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("makit.v1.io.FileChunk").msgclass
|
|
21
|
+
FileRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("makit.v1.io.FileRequest").msgclass
|
|
22
|
+
FileQuery = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("makit.v1.io.FileQuery").msgclass
|
|
23
|
+
FileResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("makit.v1.io.FileResponse").msgclass
|
|
24
|
+
FileList = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("makit.v1.io.FileList").msgclass
|
|
25
|
+
end
|
|
26
|
+
end
|
|
27
|
+
end
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
2
|
+
# Source: makit/v1/io/filesystem.proto for package 'makit.v1.io'
|
|
3
|
+
# Original file comments:
|
|
4
|
+
# filesystem.proto
|
|
5
|
+
# Contains message and service definitions for filesystem operations,
|
|
6
|
+
# including file management, streaming transfers, and flexible query modes.
|
|
7
|
+
#
|
|
8
|
+
|
|
9
|
+
require 'grpc'
|
|
10
|
+
require 'makit/v1/io/filesystem_pb'
|
|
11
|
+
|
|
12
|
+
module Makit
|
|
13
|
+
module V1
|
|
14
|
+
module Io
|
|
15
|
+
module FileSystemService
|
|
16
|
+
# FileSystem service for managing files and directories
|
|
17
|
+
class Service
|
|
18
|
+
|
|
19
|
+
include ::GRPC::GenericService
|
|
20
|
+
|
|
21
|
+
self.marshal_class_method = :encode
|
|
22
|
+
self.unmarshal_class_method = :decode
|
|
23
|
+
self.service_name = 'makit.v1.io.FileSystemService'
|
|
24
|
+
|
|
25
|
+
# Retrieve a single file's content and/or metadata
|
|
26
|
+
rpc :GetFile, ::Makit::V1::Io::FileRequest, ::Makit::V1::Io::FileResponse
|
|
27
|
+
# Create or update a file
|
|
28
|
+
rpc :SaveFile, ::Makit::V1::Io::File, ::Makit::V1::Io::FileResponse
|
|
29
|
+
# Delete a file by path
|
|
30
|
+
rpc :DeleteFile, ::Makit::V1::Io::FileRequest, ::Google::Protobuf::Empty
|
|
31
|
+
# List files in a directory according to query flags
|
|
32
|
+
rpc :ListFiles, ::Makit::V1::Io::FileQuery, ::Makit::V1::Io::FileList
|
|
33
|
+
# Create a directory
|
|
34
|
+
rpc :CreateDirectory, ::Makit::V1::Io::FileRequest, ::Google::Protobuf::Empty
|
|
35
|
+
# Delete a directory
|
|
36
|
+
rpc :DeleteDirectory, ::Makit::V1::Io::FileRequest, ::Google::Protobuf::Empty
|
|
37
|
+
# Upload large files in chunks (client-streaming)
|
|
38
|
+
rpc :Upload, stream(::Makit::V1::Io::FileChunk), ::Makit::V1::Io::FileResponse
|
|
39
|
+
# Download a file in chunks (server-streaming)
|
|
40
|
+
rpc :Download, ::Makit::V1::Io::FileRequest, stream(::Makit::V1::Io::FileChunk)
|
|
41
|
+
end
|
|
42
|
+
|
|
43
|
+
Stub = Service.rpc_stub_class
|
|
44
|
+
end
|
|
45
|
+
end
|
|
46
|
+
end
|
|
47
|
+
end
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
3
|
+
# source: makit/v1/makit.v1.proto
|
|
4
|
+
|
|
5
|
+
require 'google/protobuf'
|
|
6
|
+
|
|
7
|
+
require 'google/protobuf/timestamp_pb'
|
|
8
|
+
require 'google/protobuf/duration_pb'
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
descriptor_data = "\n\x17makit/v1/makit.v1.proto\x12\x08makit.v1\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x1egoogle/protobuf/duration.proto\"/\n\x0b\x45nvironment\x12\n\n\x02os\x18\x01 \x01(\t\x12\x14\n\x0c\x61rchitecture\x18\x02 \x01(\t\"\x92\x02\n\rDotNetProject\x12\x10\n\x08template\x18\x01 \x01(\t\x12\x0c\n\x04name\x18\x02 \x01(\t\x12\x0e\n\x06output\x18\x03 \x01(\t\x12\x10\n\x08packages\x18\x04 \x03(\t\x12\x12\n\nreferences\x18\x05 \x03(\t\x12\n\n\x02os\x18\x06 \x01(\t\x12\x10\n\x08\x63ommands\x18\x07 \x03(\t\x12-\n\nbuild_args\x18\x08 \x03(\x0b\x32\x19.makit.v1.DotNetBuildArgs\x12\x31\n\x0cpublish_args\x18\t \x03(\x0b\x32\x1b.makit.v1.DotNetPublishArgs\x12+\n\ttest_args\x18\n \x03(\x0b\x32\x18.makit.v1.DotNetTestArgs\"8\n\x0f\x44otNetBuildArgs\x12\x15\n\rconfiguration\x18\x01 \x01(\t\x12\x0e\n\x06output\x18\x02 \x01(\t\":\n\x11\x44otNetPublishArgs\x12\x15\n\rconfiguration\x18\x01 \x01(\t\x12\x0e\n\x06output\x18\x02 \x01(\t\"7\n\x0e\x44otNetTestArgs\x12\x15\n\rconfiguration\x18\x01 \x01(\t\x12\x0e\n\x06output\x18\x02 \x01(\t\"\xa8\x01\n\x07Project\x12\x16\n\x0egit_remote_url\x18\x01 \x01(\t\x12\x0c\n\x04name\x18\x02 \x01(\t\x12\x11\n\tartifacts\x18\x03 \x03(\t\x12\x32\n\x10\x63ommand_requests\x18\x04 \x03(\x0b\x32\x18.makit.v1.CommandRequest\x12\x30\n\x0f\x64otnet_projects\x18\x05 \x03(\x0b\x32\x17.makit.v1.DotNetProject\"\xa5\x01\n\x0e\x43ommandRequest\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x11\n\targuments\x18\x02 \x03(\t\x12+\n\x07timeout\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x11\n\tdirectory\x18\x04 \x01(\t\x12\x0c\n\x04task\x18\x05 \x01(\t\x12\r\n\x05input\x18\x06 \x01(\x0c\x12\x15\n\rexit_on_error\x18\x07 \x01(\x08\"\x91\x02\n\x07\x43ommand\x12\n\n\x02id\x18\x01 \x01(\x03\x12\x0c\n\x04name\x18\x02 \x01(\t\x12\x11\n\targuments\x18\x03 \x03(\t\x12\x11\n\texit_code\x18\x04 \x01(\x05\x12\r\n\x05input\x18\x05 \x01(\x0c\x12\x0e\n\x06output\x18\x06 \x01(\x0c\x12\r\n\x05\x65rror\x18\x07 \x01(\x0c\x12.\n\nstarted_at\x18\x08 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12+\n\x08\x64uration\x18\t \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x0c\n\x04user\x18\n \x01(\t\x12\x0e\n\x06\x64\x65vice\x18\x0b \x01(\t\x12\n\n\x02os\x18\x0c \x01(\t\x12\x11\n\tdirectory\x18\r \x01(\t\"I\n\rConfiguration\x12\x0c\n\x04name\x18\x01 \x01(\t\x12*\n\x08\x63ommands\x18\x02 \x03(\x0b\x32\x18.makit.v1.CommandRequest\"3\n\rGitRepository\x12\x0b\n\x03url\x18\x01 \x01(\t\x12\x15\n\rrelative_path\x18\x02 \x01(\t\"h\n\x0bGitLogEntry\x12\x0e\n\x06\x63ommit\x18\x01 \x01(\t\x12\x0e\n\x06\x61uthor\x18\x02 \x01(\t\x12(\n\x04\x64\x61te\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x0f\n\x07message\x18\x04 \x01(\t\"\xc8\x01\n\nMakeResult\x12\x12\n\nrepository\x18\x01 \x01(\t\x12\x0e\n\x06\x63ommit\x18\x02 \x01(\t\x12\x0e\n\x06\x62ranch\x18\x03 \x01(\t\x12\x0b\n\x03tag\x18\x04 \x01(\t\x12\x0e\n\x06\x64\x65vice\x18\x05 \x01(\t\x12\x1a\n\x12runtime_identifier\x18\x06 \x01(\t\x12#\n\x08\x63ommands\x18\x07 \x03(\x0b\x32\x11.makit.v1.Command\x12\x14\n\x0cinitial_size\x18\x08 \x01(\x05\x12\x12\n\nfinal_size\x18\t \x01(\x05\"?\n\rDotNetNewArgs\x12\x10\n\x08template\x18\x01 \x01(\t\x12\x0c\n\x04name\x18\x02 \x01(\t\x12\x0e\n\x06output\x18\x03 \x01(\t\"^\n\rManifestEntry\x12\x0c\n\x04path\x18\x01 \x01(\t\x12\x31\n\rlast_modified\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x0c\n\x04size\x18\x03 \x01(\x03**\n\x08Language\x12\x08\n\x04RUBY\x10\x00\x12\n\n\x06\x43SHARP\x10\x01\x12\x08\n\x04RUST\x10\x02*,\n\x0bPackageType\x12\x07\n\x03GEM\x10\x00\x12\t\n\x05NUGET\x10\x01\x12\t\n\x05\x43RATE\x10\x03\x32H\n\x0e\x43ommandService\x12\x36\n\x07\x45xecute\x12\x18.makit.v1.CommandRequest\x1a\x11.makit.v1.Commandb\x06proto3"
|
|
12
|
+
|
|
13
|
+
pool = ::Google::Protobuf::DescriptorPool.generated_pool
|
|
14
|
+
pool.add_serialized_file(descriptor_data)
|
|
15
|
+
|
|
16
|
+
module Makit
|
|
17
|
+
module V1
|
|
18
|
+
Environment = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("makit.v1.Environment").msgclass
|
|
19
|
+
DotNetProject = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("makit.v1.DotNetProject").msgclass
|
|
20
|
+
DotNetBuildArgs = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("makit.v1.DotNetBuildArgs").msgclass
|
|
21
|
+
DotNetPublishArgs = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("makit.v1.DotNetPublishArgs").msgclass
|
|
22
|
+
DotNetTestArgs = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("makit.v1.DotNetTestArgs").msgclass
|
|
23
|
+
Project = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("makit.v1.Project").msgclass
|
|
24
|
+
CommandRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("makit.v1.CommandRequest").msgclass
|
|
25
|
+
Command = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("makit.v1.Command").msgclass
|
|
26
|
+
Configuration = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("makit.v1.Configuration").msgclass
|
|
27
|
+
GitRepository = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("makit.v1.GitRepository").msgclass
|
|
28
|
+
GitLogEntry = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("makit.v1.GitLogEntry").msgclass
|
|
29
|
+
MakeResult = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("makit.v1.MakeResult").msgclass
|
|
30
|
+
DotNetNewArgs = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("makit.v1.DotNetNewArgs").msgclass
|
|
31
|
+
ManifestEntry = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("makit.v1.ManifestEntry").msgclass
|
|
32
|
+
Language = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("makit.v1.Language").enummodule
|
|
33
|
+
PackageType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("makit.v1.PackageType").enummodule
|
|
34
|
+
end
|
|
35
|
+
end
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
2
|
+
# Source: makit/v1/makit.v1.proto for package 'makit.v1'
|
|
3
|
+
|
|
4
|
+
require 'grpc'
|
|
5
|
+
require 'makit/v1/makit.v1_pb'
|
|
6
|
+
|
|
7
|
+
module Makit
|
|
8
|
+
module V1
|
|
9
|
+
module CommandService
|
|
10
|
+
# Service to execute commands on devices.
|
|
11
|
+
class Service
|
|
12
|
+
|
|
13
|
+
include ::GRPC::GenericService
|
|
14
|
+
|
|
15
|
+
self.marshal_class_method = :encode
|
|
16
|
+
self.unmarshal_class_method = :decode
|
|
17
|
+
self.service_name = 'makit.v1.CommandService'
|
|
18
|
+
|
|
19
|
+
# Execute a command on a device.
|
|
20
|
+
rpc :Execute, ::Makit::V1::CommandRequest, ::Makit::V1::Command
|
|
21
|
+
end
|
|
22
|
+
|
|
23
|
+
Stub = Service.rpc_stub_class
|
|
24
|
+
end
|
|
25
|
+
end
|
|
26
|
+
end
|