Skip to content

Commit af51b13

Browse files
committed
chore: add mutagen gRPC client
1 parent 8bc8be7 commit af51b13

File tree

55 files changed

+7945
-102
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

55 files changed

+7945
-102
lines changed

.gitattributes

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1-
nix/create-dmg/package-lock.json -diff
1+
**/*.pb.swift linguist-generated=true
2+
**/*.grpc.swift linguist-generated=true

Coder-Desktop/VPNLib/FileSync/MutagenSDK/filesystem_behavior_probe_mode.pb.swift

Lines changed: 109 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
/*
2+
* This file was taken from
3+
* https://github.com/mutagen-io/mutagen/tree/v0.18.1/pkg/filesystem/behavior/probe_mode.proto
4+
*
5+
* MIT License
6+
*
7+
* Copyright (c) 2016-present Docker, Inc.
8+
*
9+
* Permission is hereby granted, free of charge, to any person obtaining a copy
10+
* of this software and associated documentation files (the "Software"), to deal
11+
* in the Software without restriction, including without limitation the rights
12+
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
13+
* copies of the Software, and to permit persons to whom the Software is
14+
* furnished to do so, subject to the following conditions:
15+
*
16+
* The above copyright notice and this permission notice shall be included in all
17+
* copies or substantial portions of the Software.
18+
*
19+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
20+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
21+
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
22+
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
23+
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
24+
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
25+
* SOFTWARE.
26+
*/
27+
28+
syntax = "proto3";
29+
30+
package behavior;
31+
32+
option go_package = "github.com/mutagen-io/mutagen/pkg/filesystem/behavior";
33+
34+
// ProbeMode specifies the mode for filesystem probing.
35+
enum ProbeMode {
36+
// ProbeMode_ProbeModeDefault represents an unspecified probe mode. It
37+
// should be converted to one of the following values based on the desired
38+
// default behavior.
39+
ProbeModeDefault = 0;
40+
// ProbeMode_ProbeModeProbe specifies that filesystem behavior should be
41+
// determined using temporary files or, if possible, a "fast-path" mechanism
42+
// (such as filesystem format detection) that provides quick but certain
43+
// determination of filesystem behavior.
44+
ProbeModeProbe = 1;
45+
// ProbeMode_ProbeModeAssume specifies that filesystem behavior should be
46+
// assumed based on the underlying platform. This is not as accurate as
47+
// ProbeMode_ProbeModeProbe.
48+
ProbeModeAssume = 2;
49+
}

Coder-Desktop/VPNLib/FileSync/MutagenSDK/selection_selection.pb.swift

Lines changed: 119 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
/*
2+
* This file was taken from
3+
* https://github.com/mutagen-io/mutagen/tree/v0.18.1/pkg/selection/selection.proto
4+
*
5+
* MIT License
6+
*
7+
* Copyright (c) 2016-present Docker, Inc.
8+
*
9+
* Permission is hereby granted, free of charge, to any person obtaining a copy
10+
* of this software and associated documentation files (the "Software"), to deal
11+
* in the Software without restriction, including without limitation the rights
12+
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
13+
* copies of the Software, and to permit persons to whom the Software is
14+
* furnished to do so, subject to the following conditions:
15+
*
16+
* The above copyright notice and this permission notice shall be included in all
17+
* copies or substantial portions of the Software.
18+
*
19+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
20+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
21+
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
22+
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
23+
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
24+
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
25+
* SOFTWARE.
26+
*/
27+
28+
syntax = "proto3";
29+
30+
package selection;
31+
32+
option go_package = "github.com/mutagen-io/mutagen/pkg/selection";
33+
34+
// Selection encodes a selection mechanism that can be used to select a
35+
// collection of sessions. It should have exactly one member set.
36+
message Selection {
37+
// All, if true, indicates that all sessions should be selected.
38+
bool all = 1;
39+
// Specifications is a list of session specifications. Each element may be
40+
// either a session identifier or name (or a prefix thereof). If non-empty,
41+
// it indicates that these specifications should be used to select sessions.
42+
repeated string specifications = 2;
43+
// LabelSelector is a label selector specification. If present (non-empty),
44+
// it indicates that this selector should be used to select sessions.
45+
string labelSelector = 3;
46+
}

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy