зеркало из https://github.com/docker/node-sdk.git
Add license
Fixes #14 Signed-off-by: Djordje Lukic <djordje.lukic@docker.com>
This commit is contained in:
Родитель
ab174ae1ff
Коммит
bd9a9eba64
|
@ -0,0 +1,191 @@
|
|||
|
||||
Apache License
|
||||
Version 2.0, January 2004
|
||||
https://www.apache.org/licenses/
|
||||
|
||||
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
||||
|
||||
1. Definitions.
|
||||
|
||||
"License" shall mean the terms and conditions for use, reproduction,
|
||||
and distribution as defined by Sections 1 through 9 of this document.
|
||||
|
||||
"Licensor" shall mean the copyright owner or entity authorized by
|
||||
the copyright owner that is granting the License.
|
||||
|
||||
"Legal Entity" shall mean the union of the acting entity and all
|
||||
other entities that control, are controlled by, or are under common
|
||||
control with that entity. For the purposes of this definition,
|
||||
"control" means (i) the power, direct or indirect, to cause the
|
||||
direction or management of such entity, whether by contract or
|
||||
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
||||
outstanding shares, or (iii) beneficial ownership of such entity.
|
||||
|
||||
"You" (or "Your") shall mean an individual or Legal Entity
|
||||
exercising permissions granted by this License.
|
||||
|
||||
"Source" form shall mean the preferred form for making modifications,
|
||||
including but not limited to software source code, documentation
|
||||
source, and configuration files.
|
||||
|
||||
"Object" form shall mean any form resulting from mechanical
|
||||
transformation or translation of a Source form, including but
|
||||
not limited to compiled object code, generated documentation,
|
||||
and conversions to other media types.
|
||||
|
||||
"Work" shall mean the work of authorship, whether in Source or
|
||||
Object form, made available under the License, as indicated by a
|
||||
copyright notice that is included in or attached to the work
|
||||
(an example is provided in the Appendix below).
|
||||
|
||||
"Derivative Works" shall mean any work, whether in Source or Object
|
||||
form, that is based on (or derived from) the Work and for which the
|
||||
editorial revisions, annotations, elaborations, or other modifications
|
||||
represent, as a whole, an original work of authorship. For the purposes
|
||||
of this License, Derivative Works shall not include works that remain
|
||||
separable from, or merely link (or bind by name) to the interfaces of,
|
||||
the Work and Derivative Works thereof.
|
||||
|
||||
"Contribution" shall mean any work of authorship, including
|
||||
the original version of the Work and any modifications or additions
|
||||
to that Work or Derivative Works thereof, that is intentionally
|
||||
submitted to Licensor for inclusion in the Work by the copyright owner
|
||||
or by an individual or Legal Entity authorized to submit on behalf of
|
||||
the copyright owner. For the purposes of this definition, "submitted"
|
||||
means any form of electronic, verbal, or written communication sent
|
||||
to the Licensor or its representatives, including but not limited to
|
||||
communication on electronic mailing lists, source code control systems,
|
||||
and issue tracking systems that are managed by, or on behalf of, the
|
||||
Licensor for the purpose of discussing and improving the Work, but
|
||||
excluding communication that is conspicuously marked or otherwise
|
||||
designated in writing by the copyright owner as "Not a Contribution."
|
||||
|
||||
"Contributor" shall mean Licensor and any individual or Legal Entity
|
||||
on behalf of whom a Contribution has been received by Licensor and
|
||||
subsequently incorporated within the Work.
|
||||
|
||||
2. Grant of Copyright License. Subject to the terms and conditions of
|
||||
this License, each Contributor hereby grants to You a perpetual,
|
||||
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
||||
copyright license to reproduce, prepare Derivative Works of,
|
||||
publicly display, publicly perform, sublicense, and distribute the
|
||||
Work and such Derivative Works in Source or Object form.
|
||||
|
||||
3. Grant of Patent License. Subject to the terms and conditions of
|
||||
this License, each Contributor hereby grants to You a perpetual,
|
||||
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
||||
(except as stated in this section) patent license to make, have made,
|
||||
use, offer to sell, sell, import, and otherwise transfer the Work,
|
||||
where such license applies only to those patent claims licensable
|
||||
by such Contributor that are necessarily infringed by their
|
||||
Contribution(s) alone or by combination of their Contribution(s)
|
||||
with the Work to which such Contribution(s) was submitted. If You
|
||||
institute patent litigation against any entity (including a
|
||||
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
||||
or a Contribution incorporated within the Work constitutes direct
|
||||
or contributory patent infringement, then any patent licenses
|
||||
granted to You under this License for that Work shall terminate
|
||||
as of the date such litigation is filed.
|
||||
|
||||
4. Redistribution. You may reproduce and distribute copies of the
|
||||
Work or Derivative Works thereof in any medium, with or without
|
||||
modifications, and in Source or Object form, provided that You
|
||||
meet the following conditions:
|
||||
|
||||
(a) You must give any other recipients of the Work or
|
||||
Derivative Works a copy of this License; and
|
||||
|
||||
(b) You must cause any modified files to carry prominent notices
|
||||
stating that You changed the files; and
|
||||
|
||||
(c) You must retain, in the Source form of any Derivative Works
|
||||
that You distribute, all copyright, patent, trademark, and
|
||||
attribution notices from the Source form of the Work,
|
||||
excluding those notices that do not pertain to any part of
|
||||
the Derivative Works; and
|
||||
|
||||
(d) If the Work includes a "NOTICE" text file as part of its
|
||||
distribution, then any Derivative Works that You distribute must
|
||||
include a readable copy of the attribution notices contained
|
||||
within such NOTICE file, excluding those notices that do not
|
||||
pertain to any part of the Derivative Works, in at least one
|
||||
of the following places: within a NOTICE text file distributed
|
||||
as part of the Derivative Works; within the Source form or
|
||||
documentation, if provided along with the Derivative Works; or,
|
||||
within a display generated by the Derivative Works, if and
|
||||
wherever such third-party notices normally appear. The contents
|
||||
of the NOTICE file are for informational purposes only and
|
||||
do not modify the License. You may add Your own attribution
|
||||
notices within Derivative Works that You distribute, alongside
|
||||
or as an addendum to the NOTICE text from the Work, provided
|
||||
that such additional attribution notices cannot be construed
|
||||
as modifying the License.
|
||||
|
||||
You may add Your own copyright statement to Your modifications and
|
||||
may provide additional or different license terms and conditions
|
||||
for use, reproduction, or distribution of Your modifications, or
|
||||
for any such Derivative Works as a whole, provided Your use,
|
||||
reproduction, and distribution of the Work otherwise complies with
|
||||
the conditions stated in this License.
|
||||
|
||||
5. Submission of Contributions. Unless You explicitly state otherwise,
|
||||
any Contribution intentionally submitted for inclusion in the Work
|
||||
by You to the Licensor shall be under the terms and conditions of
|
||||
this License, without any additional terms or conditions.
|
||||
Notwithstanding the above, nothing herein shall supersede or modify
|
||||
the terms of any separate license agreement you may have executed
|
||||
with Licensor regarding such Contributions.
|
||||
|
||||
6. Trademarks. This License does not grant permission to use the trade
|
||||
names, trademarks, service marks, or product names of the Licensor,
|
||||
except as required for reasonable and customary use in describing the
|
||||
origin of the Work and reproducing the content of the NOTICE file.
|
||||
|
||||
7. Disclaimer of Warranty. Unless required by applicable law or
|
||||
agreed to in writing, Licensor provides the Work (and each
|
||||
Contributor provides its Contributions) on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
||||
implied, including, without limitation, any warranties or conditions
|
||||
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
||||
PARTICULAR PURPOSE. You are solely responsible for determining the
|
||||
appropriateness of using or redistributing the Work and assume any
|
||||
risks associated with Your exercise of permissions under this License.
|
||||
|
||||
8. Limitation of Liability. In no event and under no legal theory,
|
||||
whether in tort (including negligence), contract, or otherwise,
|
||||
unless required by applicable law (such as deliberate and grossly
|
||||
negligent acts) or agreed to in writing, shall any Contributor be
|
||||
liable to You for damages, including any direct, indirect, special,
|
||||
incidental, or consequential damages of any character arising as a
|
||||
result of this License or out of the use or inability to use the
|
||||
Work (including but not limited to damages for loss of goodwill,
|
||||
work stoppage, computer failure or malfunction, or any and all
|
||||
other commercial damages or losses), even if such Contributor
|
||||
has been advised of the possibility of such damages.
|
||||
|
||||
9. Accepting Warranty or Additional Liability. While redistributing
|
||||
the Work or Derivative Works thereof, You may choose to offer,
|
||||
and charge a fee for, acceptance of support, warranty, indemnity,
|
||||
or other liability obligations and/or rights consistent with this
|
||||
License. However, in accepting such obligations, You may act only
|
||||
on Your own behalf and on Your sole responsibility, not on behalf
|
||||
of any other Contributor, and only if You agree to indemnify,
|
||||
defend, and hold each Contributor harmless for any liability
|
||||
incurred by, or claims asserted against, such Contributor by reason
|
||||
of your accepting any such warranty or additional liability.
|
||||
|
||||
END OF TERMS AND CONDITIONS
|
||||
|
||||
Copyright [yyyy] [name of copyright owner]
|
||||
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
you may not use this file except in compliance with the License.
|
||||
You may obtain a copy of the License at
|
||||
|
||||
https://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
Unless required by applicable law or agreed to in writing, software
|
||||
distributed under the License is distributed on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
|
@ -0,0 +1,2 @@
|
|||
Docker CLI JavaScript SDK
|
||||
Copyright 2020 The Authors
|
|
@ -1,4 +1,19 @@
|
|||
"use strict";
|
||||
/*
|
||||
Copyright 2020 The Authors
|
||||
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
you may not use this file except in compliance with the License.
|
||||
You may obtain a copy of the License at
|
||||
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
Unless required by applicable law or agreed to in writing, software
|
||||
distributed under the License is distributed on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
*/
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
var containers_pb_1 = require("./protos/containers/v1/containers_pb");
|
||||
Object.defineProperty(exports, "ExecRequest", { enumerable: true, get: function () { return containers_pb_1.ExecRequest; } });
|
||||
|
|
|
@ -1 +1 @@
|
|||
{"version":3,"file":"containers.js","sourceRoot":"","sources":["../src/containers.ts"],"names":[],"mappings":";;AAAA,sEAe8C;AAd5C,4GAAA,WAAW,OAAA;AACX,6GAAA,YAAY,OAAA;AACZ,4GAAA,WAAW,OAAA;AACX,6GAAA,YAAY,OAAA;AACZ,4GAAA,WAAW,OAAA;AACX,6GAAA,YAAY,OAAA;AACZ,2GAAA,UAAU,OAAA;AACV,4GAAA,WAAW,OAAA;AACX,4GAAA,WAAW,OAAA;AACX,6GAAA,YAAY,OAAA;AACZ,8GAAA,aAAa,OAAA;AACb,+GAAA,cAAc,OAAA;AACd,0GAAA,SAAS,OAAA;AACT,qGAAA,IAAI,OAAA"}
|
||||
{"version":3,"file":"containers.js","sourceRoot":"","sources":["../src/containers.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;EAcE;;AAEF,sEAe8C;AAd5C,4GAAA,WAAW,OAAA;AACX,6GAAA,YAAY,OAAA;AACZ,4GAAA,WAAW,OAAA;AACX,6GAAA,YAAY,OAAA;AACZ,4GAAA,WAAW,OAAA;AACX,6GAAA,YAAY,OAAA;AACZ,2GAAA,UAAU,OAAA;AACV,4GAAA,WAAW,OAAA;AACX,4GAAA,WAAW,OAAA;AACX,6GAAA,YAAY,OAAA;AACZ,8GAAA,aAAa,OAAA;AACb,+GAAA,cAAc,OAAA;AACd,0GAAA,SAAS,OAAA;AACT,qGAAA,IAAI,OAAA"}
|
|
@ -1,4 +1,19 @@
|
|||
"use strict";
|
||||
/*
|
||||
Copyright 2020 The Authors
|
||||
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
you may not use this file except in compliance with the License.
|
||||
You may obtain a copy of the License at
|
||||
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
Unless required by applicable law or agreed to in writing, software
|
||||
distributed under the License is distributed on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
*/
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
var contexts_pb_1 = require("./protos/contexts/v1/contexts_pb");
|
||||
Object.defineProperty(exports, "ListRequest", { enumerable: true, get: function () { return contexts_pb_1.ListRequest; } });
|
||||
|
|
|
@ -1 +1 @@
|
|||
{"version":3,"file":"contexts.js","sourceRoot":"","sources":["../src/contexts.ts"],"names":[],"mappings":";;AAAA,gEAK0C;AAJxC,0GAAA,WAAW,OAAA;AACX,2GAAA,YAAY,OAAA;AACZ,gHAAA,iBAAiB,OAAA;AACjB,iHAAA,kBAAkB,OAAA"}
|
||||
{"version":3,"file":"contexts.js","sourceRoot":"","sources":["../src/contexts.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;EAcE;;AAEF,gEAK0C;AAJxC,0GAAA,WAAW,OAAA;AACX,2GAAA,YAAY,OAAA;AACZ,gHAAA,iBAAiB,OAAA;AACjB,iHAAA,kBAAkB,OAAA"}
|
|
@ -1,4 +1,19 @@
|
|||
"use strict";
|
||||
/*
|
||||
Copyright 2020 The Authors
|
||||
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
you may not use this file except in compliance with the License.
|
||||
You may obtain a copy of the License at
|
||||
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
Unless required by applicable law or agreed to in writing, software
|
||||
distributed under the License is distributed on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
*/
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.Streams = exports.Compose = exports.Contexts = exports.Containers = void 0;
|
||||
const os_1 = require("os");
|
||||
|
|
|
@ -1 +1 @@
|
|||
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;AAAA,2BAAuC;AAEvC,2CAA4C;AAC5C,kFAA6E;AAC7E,4EAAuE;AACvE,yEAAoE;AACpE,yEAAsE;AAEtE,IAAI,IAAI,GAAG,8BAA8B,CAAC;AAC1C,IAAI,aAAQ,EAAE,KAAK,OAAO,EAAE;IAC1B,MAAM,OAAO,GAAG,YAAO,EAAE,CAAC;IAC1B,IAAI,GAAG,UAAU,OAAO,gEAAgE,CAAC;CAC1F;AACD,MAAa,UAAW,SAAQ,qCAAgB;IAC9C,YAAY,UAAkB,IAAI;QAChC,KAAK,CAAC,OAAO,EAAE,qBAAW,CAAC,cAAc,EAAE,CAAC,CAAC;IAC/C,CAAC;CACF;AAJD,gCAIC;AAED,MAAa,QAAS,SAAQ,iCAAc;IAC1C,YAAY,UAAkB,IAAI;QAChC,KAAK,CAAC,OAAO,EAAE,q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Q,SAAQ,iCAAe;IAC1C,YAAY,UAAkB,IAAI;QAChC,KAAK,CAAC,OAAO,EAAE,qBAAW,CAAC,cAAc,EAAE,CAAC,CAAC;IAC/C,CAAC;CACF;AAJD,0BAIC"}
|
|
@ -1,18 +1,18 @@
|
|||
//
|
||||
// Copyright 2020 Docker, Inc.
|
||||
/*
|
||||
Copyright 2020 The Authors
|
||||
|
||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||
// you may not use this file except in compliance with the License.
|
||||
// You may obtain a copy of the License at
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
you may not use this file except in compliance with the License.
|
||||
You may obtain a copy of the License at
|
||||
|
||||
// http://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
// Unless required by applicable law or agreed to in writing, software
|
||||
// distributed under the License is distributed on an "AS IS" BASIS,
|
||||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
Unless required by applicable law or agreed to in writing, software
|
||||
distributed under the License is distributed on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
*/
|
||||
syntax = "proto3";
|
||||
|
||||
package com.docker.api.protos.compose.v1;
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
// Original file comments:
|
||||
//
|
||||
// Copyright 2020 Docker, Inc.
|
||||
// Copyright 2020 The Authors
|
||||
//
|
||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||
// you may not use this file except in compliance with the License.
|
||||
|
@ -22,50 +22,73 @@ var compose_v1_compose_pb = require('../../compose/v1/compose_pb.js');
|
|||
|
||||
function serialize_com_docker_api_protos_compose_v1_ComposeDownRequest(arg) {
|
||||
if (!(arg instanceof compose_v1_compose_pb.ComposeDownRequest)) {
|
||||
throw new Error('Expected argument of type com.docker.api.protos.compose.v1.ComposeDownRequest');
|
||||
throw new Error(
|
||||
'Expected argument of type com.docker.api.protos.compose.v1.ComposeDownRequest'
|
||||
);
|
||||
}
|
||||
return Buffer.from(arg.serializeBinary());
|
||||
}
|
||||
|
||||
function deserialize_com_docker_api_protos_compose_v1_ComposeDownRequest(buffer_arg) {
|
||||
return compose_v1_compose_pb.ComposeDownRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
||||
function deserialize_com_docker_api_protos_compose_v1_ComposeDownRequest(
|
||||
buffer_arg
|
||||
) {
|
||||
return compose_v1_compose_pb.ComposeDownRequest.deserializeBinary(
|
||||
new Uint8Array(buffer_arg)
|
||||
);
|
||||
}
|
||||
|
||||
function serialize_com_docker_api_protos_compose_v1_ComposeDownResponse(arg) {
|
||||
if (!(arg instanceof compose_v1_compose_pb.ComposeDownResponse)) {
|
||||
throw new Error('Expected argument of type com.docker.api.protos.compose.v1.ComposeDownResponse');
|
||||
throw new Error(
|
||||
'Expected argument of type com.docker.api.protos.compose.v1.ComposeDownResponse'
|
||||
);
|
||||
}
|
||||
return Buffer.from(arg.serializeBinary());
|
||||
}
|
||||
|
||||
function deserialize_com_docker_api_protos_compose_v1_ComposeDownResponse(buffer_arg) {
|
||||
return compose_v1_compose_pb.ComposeDownResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
||||
function deserialize_com_docker_api_protos_compose_v1_ComposeDownResponse(
|
||||
buffer_arg
|
||||
) {
|
||||
return compose_v1_compose_pb.ComposeDownResponse.deserializeBinary(
|
||||
new Uint8Array(buffer_arg)
|
||||
);
|
||||
}
|
||||
|
||||
function serialize_com_docker_api_protos_compose_v1_ComposeUpRequest(arg) {
|
||||
if (!(arg instanceof compose_v1_compose_pb.ComposeUpRequest)) {
|
||||
throw new Error('Expected argument of type com.docker.api.protos.compose.v1.ComposeUpRequest');
|
||||
throw new Error(
|
||||
'Expected argument of type com.docker.api.protos.compose.v1.ComposeUpRequest'
|
||||
);
|
||||
}
|
||||
return Buffer.from(arg.serializeBinary());
|
||||
}
|
||||
|
||||
function deserialize_com_docker_api_protos_compose_v1_ComposeUpRequest(buffer_arg) {
|
||||
return compose_v1_compose_pb.ComposeUpRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
||||
function deserialize_com_docker_api_protos_compose_v1_ComposeUpRequest(
|
||||
buffer_arg
|
||||
) {
|
||||
return compose_v1_compose_pb.ComposeUpRequest.deserializeBinary(
|
||||
new Uint8Array(buffer_arg)
|
||||
);
|
||||
}
|
||||
|
||||
function serialize_com_docker_api_protos_compose_v1_ComposeUpResponse(arg) {
|
||||
if (!(arg instanceof compose_v1_compose_pb.ComposeUpResponse)) {
|
||||
throw new Error('Expected argument of type com.docker.api.protos.compose.v1.ComposeUpResponse');
|
||||
throw new Error(
|
||||
'Expected argument of type com.docker.api.protos.compose.v1.ComposeUpResponse'
|
||||
);
|
||||
}
|
||||
return Buffer.from(arg.serializeBinary());
|
||||
}
|
||||
|
||||
function deserialize_com_docker_api_protos_compose_v1_ComposeUpResponse(buffer_arg) {
|
||||
return compose_v1_compose_pb.ComposeUpResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
||||
function deserialize_com_docker_api_protos_compose_v1_ComposeUpResponse(
|
||||
buffer_arg
|
||||
) {
|
||||
return compose_v1_compose_pb.ComposeUpResponse.deserializeBinary(
|
||||
new Uint8Array(buffer_arg)
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
var ComposeService = exports.ComposeService = {
|
||||
var ComposeService = (exports.ComposeService = {
|
||||
up: {
|
||||
path: '/com.docker.api.protos.compose.v1.Compose/Up',
|
||||
requestStream: false,
|
||||
|
@ -88,6 +111,6 @@ var ComposeService = exports.ComposeService = {
|
|||
responseSerialize: serialize_com_docker_api_protos_compose_v1_ComposeDownResponse,
|
||||
responseDeserialize: deserialize_com_docker_api_protos_compose_v1_ComposeDownResponse,
|
||||
},
|
||||
};
|
||||
});
|
||||
|
||||
exports.ComposeClient = grpc.makeGenericClientConstructor(ComposeService);
|
||||
|
|
|
@ -1 +1 @@
|
|||
{"version":3,"file":"compose_grpc_pb.js","sourceRoot":"","sources":["../../../../src/protos/compose/v1/compose_grpc_pb.js"],"names":[],"mappings":"AAAA,iCAAiC;AAEjC,0BAA0B;AAC1B,EAAE;AACF,+BAA+B;AAC/B,EAAE;AACF,mEAAmE;AACnE,oEAAoE;AACpE,2CAA2C;AAC3C,EAAE;AACF,kDAAkD;AAClD,EAAE;AACF,uEAAuE;AACvE,qEAAqE;AACrE,4EAA4E;AAC5E,uEAAuE;AACvE,kCAAkC;AAClC,EAAE;AACF,YAAY,CAAC;AACb,IAAI,IAAI,GAAG,OAAO,CAAC,eAAe,CAAC,CAAC;AACpC,IAAI,qBAAqB,GAAG,OAAO,CAAC,gCAAgC,CAAC,CAAC;AAEtE,SAAS,6DAA6D,CAAC,GAAG;IACxE,IAAI,CAAC,CAAC,GAAG,YAAY,qBAAqB,CAAC,kBAAkB,CAAC,EAAE;QAC9D,MAAM,IAAI,KAAK,CAAC,+EAA+E,CAAC,CAAC;KAClG;IACD,OAAO,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,eAAe,EAAE,CAAC,CAAC;AAC5C,CAAC;AAED,SAAS,+DAA+D,CAAC,UAAU;IACjF,OAAO,qBAAqB,CAAC,kBAAkB,CAAC,iBAAiB,CAAC,IAAI,UAAU,CAAC,UAAU,CAAC,CAAC,CAAC;AAChG,CAAC;AAED,SAAS,8DAA8D,CAAC,GAAG;IACzE,IAAI,CAAC,CAAC,GAAG,YAAY,qBAAqB,CAAC,mBAAmB,CAAC,EAAE;QAC/D,MAAM,IAAI,KAAK,CAAC,gFAAgF,CAAC,CAAC;KACnG;IACD,OAAO,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,eAAe,EAAE,CAAC,CAAC;AAC5C,CAAC;AAED,SAAS,gEAAgE,CAAC,UAAU;IAClF,OAAO,qBAAqB,CAAC,mBAAmB,CAAC,iBAAiB,CAAC,IAAI,UAAU,CAAC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AAc,EAAE,KAAK;QACrB,WAAW,EAAE,qBAAqB,CAAC,kBAAkB;QACrD,YAAY,EAAE,qBAAqB,CAAC,mBAAmB;QACvD,gBAAgB,EAAE,6DAA6D;QAC/E,kBAAkB,EAAE,+DAA+D;QACnF,iBAAiB,EAAE,8DAA8D;QACjF,mBAAmB,EAAE,gEAAgE;KACtF;CACF,CAAC;AAEF,OAAO,CAAC,aAAa,GAAG,IAAI,CAAC,4BAA4B,CAAC,cAAc,CAAC,CAAC"}
|
||||
{"version":3,"file":"compose_grpc_pb.js","sourceRoot":"","sources":["../../../../src/protos/compose/v1/compose_grpc_pb.js"],"names":[],"mappings":"AAAA,iCAAiC;AAEjC,0BAA0B;AAC1B,EAAE;AACF,8BAA8B;AAC9B,EAAE;AACF,mEAAmE;AACnE,oEAAoE;AACpE,2CAA2C;AAC3C,EAAE;AACF,kDAAkD;AAClD,EAAE;AACF,uEAAuE;AACvE,qEAAqE;AACrE,4EAA4E;AAC5E,uEAAuE;AACvE,kCAAkC;AAClC,EAAE;AACF,YAAY,CAAC;AACb,IAAI,IAAI,GAAG,OAAO,CAAC,eAAe,CAAC,CAAC;AACpC,IAAI,qBAAqB,GAAG,OAAO,CAAC,gCAAgC,CAAC,CAAC;AAEtE,SAAS,6DAA6D,CAAC,GAAG;IACxE,IAAI,CAAC,CAAC,GAAG,YAAY,qBAAqB,CAAC,kBAAkB,CAAC,EAAE;QAC9D,MAAM,IAAI,KAAK,CACb,+EAA+E,CAChF,CAAC;KACH;IACD,OAAO,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,eAAe,EAAE,CAAC,CAAC;AAC5C,CAAC;AAED,SAAS,+DAA+D,CACtE,UAAU;IAEV,OAAO,qBAAqB,CAAC,kBAAkB,CAAC,iBAAiB,CAC/D,IAAI,UAAU,CAAC,UAAU,CAAC,CAC3B,CAAC;AACJ,CAAC;AAED,SAAS,8DAA8D,CAAC,GAAG;IACzE,IAAI,CAAC,CAAC,GAAG,YAAY,qBAAqB,C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AAW,EAAE,qBAAqB,CAAC,gBAAgB;QACnD,YAAY,EAAE,qBAAqB,CAAC,iBAAiB;QACrD,gBAAgB,EAAE,2DAA2D;QAC7E,kBAAkB,EAAE,6DAA6D;QACjF,iBAAiB,EAAE,4DAA4D;QAC/E,mBAAmB,EAAE,8DAA8D;KACpF;IACD,IAAI,EAAE;QACJ,IAAI,EAAE,gDAAgD;QACtD,aAAa,EAAE,KAAK;QACpB,cAAc,EAAE,KAAK;QACrB,WAAW,EAAE,qBAAqB,CAAC,kBAAkB;QACrD,YAAY,EAAE,qBAAqB,CAAC,mBAAmB;QACvD,gBAAgB,EAAE,6DAA6D;QAC/E,kBAAkB,EAAE,+DAA+D;QACnF,iBAAiB,EAAE,8DAA8D;QACjF,mBAAmB,EAAE,gEAAgE;KACtF;CACF,CAAC,CAAC;AAEH,OAAO,CAAC,aAAa,GAAG,IAAI,CAAC,4BAA4B,CAAC,cAAc,CAAC,CAAC"}
|
|
@ -1,17 +1,18 @@
|
|||
//
|
||||
// Copyright 2020 Docker, Inc.
|
||||
/*
|
||||
Copyright 2020 The Authors
|
||||
|
||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||
// you may not use this file except in compliance with the License.
|
||||
// You may obtain a copy of the License at
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
you may not use this file except in compliance with the License.
|
||||
You may obtain a copy of the License at
|
||||
|
||||
// http://www.apache.org/licenses/LICENSE-2.0
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
// Unless required by applicable law or agreed to in writing, software
|
||||
// distributed under the License is distributed on an "AS IS" BASIS,
|
||||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
Unless required by applicable law or agreed to in writing, software
|
||||
distributed under the License is distributed on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
*/
|
||||
|
||||
syntax = "proto3";
|
||||
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
// Original file comments:
|
||||
//
|
||||
// Copyright 2020 Docker, Inc.
|
||||
// Copyright 2020 The Authors
|
||||
//
|
||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||
// you may not use this file except in compliance with the License.
|
||||
|
@ -22,160 +22,243 @@ var containers_v1_containers_pb = require('../../containers/v1/containers_pb.js'
|
|||
|
||||
function serialize_com_docker_api_protos_containers_v1_DeleteRequest(arg) {
|
||||
if (!(arg instanceof containers_v1_containers_pb.DeleteRequest)) {
|
||||
throw new Error('Expected argument of type com.docker.api.protos.containers.v1.DeleteRequest');
|
||||
throw new Error(
|
||||
'Expected argument of type com.docker.api.protos.containers.v1.DeleteRequest'
|
||||
);
|
||||
}
|
||||
return Buffer.from(arg.serializeBinary());
|
||||
}
|
||||
|
||||
function deserialize_com_docker_api_protos_containers_v1_DeleteRequest(buffer_arg) {
|
||||
return containers_v1_containers_pb.DeleteRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
||||
function deserialize_com_docker_api_protos_containers_v1_DeleteRequest(
|
||||
buffer_arg
|
||||
) {
|
||||
return containers_v1_containers_pb.DeleteRequest.deserializeBinary(
|
||||
new Uint8Array(buffer_arg)
|
||||
);
|
||||
}
|
||||
|
||||
function serialize_com_docker_api_protos_containers_v1_DeleteResponse(arg) {
|
||||
if (!(arg instanceof containers_v1_containers_pb.DeleteResponse)) {
|
||||
throw new Error('Expected argument of type com.docker.api.protos.containers.v1.DeleteResponse');
|
||||
throw new Error(
|
||||
'Expected argument of type com.docker.api.protos.containers.v1.DeleteResponse'
|
||||
);
|
||||
}
|
||||
return Buffer.from(arg.serializeBinary());
|
||||
}
|
||||
|
||||
function deserialize_com_docker_api_protos_containers_v1_DeleteResponse(buffer_arg) {
|
||||
return containers_v1_containers_pb.DeleteResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
||||
function deserialize_com_docker_api_protos_containers_v1_DeleteResponse(
|
||||
buffer_arg
|
||||
) {
|
||||
return containers_v1_containers_pb.DeleteResponse.deserializeBinary(
|
||||
new Uint8Array(buffer_arg)
|
||||
);
|
||||
}
|
||||
|
||||
function serialize_com_docker_api_protos_containers_v1_ExecRequest(arg) {
|
||||
if (!(arg instanceof containers_v1_containers_pb.ExecRequest)) {
|
||||
throw new Error('Expected argument of type com.docker.api.protos.containers.v1.ExecRequest');
|
||||
throw new Error(
|
||||
'Expected argument of type com.docker.api.protos.containers.v1.ExecRequest'
|
||||
);
|
||||
}
|
||||
return Buffer.from(arg.serializeBinary());
|
||||
}
|
||||
|
||||
function deserialize_com_docker_api_protos_containers_v1_ExecRequest(buffer_arg) {
|
||||
return containers_v1_containers_pb.ExecRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
||||
function deserialize_com_docker_api_protos_containers_v1_ExecRequest(
|
||||
buffer_arg
|
||||
) {
|
||||
return containers_v1_containers_pb.ExecRequest.deserializeBinary(
|
||||
new Uint8Array(buffer_arg)
|
||||
);
|
||||
}
|
||||
|
||||
function serialize_com_docker_api_protos_containers_v1_ExecResponse(arg) {
|
||||
if (!(arg instanceof containers_v1_containers_pb.ExecResponse)) {
|
||||
throw new Error('Expected argument of type com.docker.api.protos.containers.v1.ExecResponse');
|
||||
throw new Error(
|
||||
'Expected argument of type com.docker.api.protos.containers.v1.ExecResponse'
|
||||
);
|
||||
}
|
||||
return Buffer.from(arg.serializeBinary());
|
||||
}
|
||||
|
||||
function deserialize_com_docker_api_protos_containers_v1_ExecResponse(buffer_arg) {
|
||||
return containers_v1_containers_pb.ExecResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
||||
function deserialize_com_docker_api_protos_containers_v1_ExecResponse(
|
||||
buffer_arg
|
||||
) {
|
||||
return containers_v1_containers_pb.ExecResponse.deserializeBinary(
|
||||
new Uint8Array(buffer_arg)
|
||||
);
|
||||
}
|
||||
|
||||
function serialize_com_docker_api_protos_containers_v1_InspectRequest(arg) {
|
||||
if (!(arg instanceof containers_v1_containers_pb.InspectRequest)) {
|
||||
throw new Error('Expected argument of type com.docker.api.protos.containers.v1.InspectRequest');
|
||||
throw new Error(
|
||||
'Expected argument of type com.docker.api.protos.containers.v1.InspectRequest'
|
||||
);
|
||||
}
|
||||
return Buffer.from(arg.serializeBinary());
|
||||
}
|
||||
|
||||
function deserialize_com_docker_api_protos_containers_v1_InspectRequest(buffer_arg) {
|
||||
return containers_v1_containers_pb.InspectRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
||||
function deserialize_com_docker_api_protos_containers_v1_InspectRequest(
|
||||
buffer_arg
|
||||
) {
|
||||
return containers_v1_containers_pb.InspectRequest.deserializeBinary(
|
||||
new Uint8Array(buffer_arg)
|
||||
);
|
||||
}
|
||||
|
||||
function serialize_com_docker_api_protos_containers_v1_InspectResponse(arg) {
|
||||
if (!(arg instanceof containers_v1_containers_pb.InspectResponse)) {
|
||||
throw new Error('Expected argument of type com.docker.api.protos.containers.v1.InspectResponse');
|
||||
throw new Error(
|
||||
'Expected argument of type com.docker.api.protos.containers.v1.InspectResponse'
|
||||
);
|
||||
}
|
||||
return Buffer.from(arg.serializeBinary());
|
||||
}
|
||||
|
||||
function deserialize_com_docker_api_protos_containers_v1_InspectResponse(buffer_arg) {
|
||||
return containers_v1_containers_pb.InspectResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
||||
function deserialize_com_docker_api_protos_containers_v1_InspectResponse(
|
||||
buffer_arg
|
||||
) {
|
||||
return containers_v1_containers_pb.InspectResponse.deserializeBinary(
|
||||
new Uint8Array(buffer_arg)
|
||||
);
|
||||
}
|
||||
|
||||
function serialize_com_docker_api_protos_containers_v1_ListRequest(arg) {
|
||||
if (!(arg instanceof containers_v1_containers_pb.ListRequest)) {
|
||||
throw new Error('Expected argument of type com.docker.api.protos.containers.v1.ListRequest');
|
||||
throw new Error(
|
||||
'Expected argument of type com.docker.api.protos.containers.v1.ListRequest'
|
||||
);
|
||||
}
|
||||
return Buffer.from(arg.serializeBinary());
|
||||
}
|
||||
|
||||
function deserialize_com_docker_api_protos_containers_v1_ListRequest(buffer_arg) {
|
||||
return containers_v1_containers_pb.ListRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
||||
function deserialize_com_docker_api_protos_containers_v1_ListRequest(
|
||||
buffer_arg
|
||||
) {
|
||||
return containers_v1_containers_pb.ListRequest.deserializeBinary(
|
||||
new Uint8Array(buffer_arg)
|
||||
);
|
||||
}
|
||||
|
||||
function serialize_com_docker_api_protos_containers_v1_ListResponse(arg) {
|
||||
if (!(arg instanceof containers_v1_containers_pb.ListResponse)) {
|
||||
throw new Error('Expected argument of type com.docker.api.protos.containers.v1.ListResponse');
|
||||
throw new Error(
|
||||
'Expected argument of type com.docker.api.protos.containers.v1.ListResponse'
|
||||
);
|
||||
}
|
||||
return Buffer.from(arg.serializeBinary());
|
||||
}
|
||||
|
||||
function deserialize_com_docker_api_protos_containers_v1_ListResponse(buffer_arg) {
|
||||
return containers_v1_containers_pb.ListResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
||||
function deserialize_com_docker_api_protos_containers_v1_ListResponse(
|
||||
buffer_arg
|
||||
) {
|
||||
return containers_v1_containers_pb.ListResponse.deserializeBinary(
|
||||
new Uint8Array(buffer_arg)
|
||||
);
|
||||
}
|
||||
|
||||
function serialize_com_docker_api_protos_containers_v1_LogsRequest(arg) {
|
||||
if (!(arg instanceof containers_v1_containers_pb.LogsRequest)) {
|
||||
throw new Error('Expected argument of type com.docker.api.protos.containers.v1.LogsRequest');
|
||||
throw new Error(
|
||||
'Expected argument of type com.docker.api.protos.containers.v1.LogsRequest'
|
||||
);
|
||||
}
|
||||
return Buffer.from(arg.serializeBinary());
|
||||
}
|
||||
|
||||
function deserialize_com_docker_api_protos_containers_v1_LogsRequest(buffer_arg) {
|
||||
return containers_v1_containers_pb.LogsRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
||||
function deserialize_com_docker_api_protos_containers_v1_LogsRequest(
|
||||
buffer_arg
|
||||
) {
|
||||
return containers_v1_containers_pb.LogsRequest.deserializeBinary(
|
||||
new Uint8Array(buffer_arg)
|
||||
);
|
||||
}
|
||||
|
||||
function serialize_com_docker_api_protos_containers_v1_LogsResponse(arg) {
|
||||
if (!(arg instanceof containers_v1_containers_pb.LogsResponse)) {
|
||||
throw new Error('Expected argument of type com.docker.api.protos.containers.v1.LogsResponse');
|
||||
throw new Error(
|
||||
'Expected argument of type com.docker.api.protos.containers.v1.LogsResponse'
|
||||
);
|
||||
}
|
||||
return Buffer.from(arg.serializeBinary());
|
||||
}
|
||||
|
||||
function deserialize_com_docker_api_protos_containers_v1_LogsResponse(buffer_arg) {
|
||||
return containers_v1_containers_pb.LogsResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
||||
function deserialize_com_docker_api_protos_containers_v1_LogsResponse(
|
||||
buffer_arg
|
||||
) {
|
||||
return containers_v1_containers_pb.LogsResponse.deserializeBinary(
|
||||
new Uint8Array(buffer_arg)
|
||||
);
|
||||
}
|
||||
|
||||
function serialize_com_docker_api_protos_containers_v1_RunRequest(arg) {
|
||||
if (!(arg instanceof containers_v1_containers_pb.RunRequest)) {
|
||||
throw new Error('Expected argument of type com.docker.api.protos.containers.v1.RunRequest');
|
||||
throw new Error(
|
||||
'Expected argument of type com.docker.api.protos.containers.v1.RunRequest'
|
||||
);
|
||||
}
|
||||
return Buffer.from(arg.serializeBinary());
|
||||
}
|
||||
|
||||
function deserialize_com_docker_api_protos_containers_v1_RunRequest(buffer_arg) {
|
||||
return containers_v1_containers_pb.RunRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
||||
function deserialize_com_docker_api_protos_containers_v1_RunRequest(
|
||||
buffer_arg
|
||||
) {
|
||||
return containers_v1_containers_pb.RunRequest.deserializeBinary(
|
||||
new Uint8Array(buffer_arg)
|
||||
);
|
||||
}
|
||||
|
||||
function serialize_com_docker_api_protos_containers_v1_RunResponse(arg) {
|
||||
if (!(arg instanceof containers_v1_containers_pb.RunResponse)) {
|
||||
throw new Error('Expected argument of type com.docker.api.protos.containers.v1.RunResponse');
|
||||
throw new Error(
|
||||
'Expected argument of type com.docker.api.protos.containers.v1.RunResponse'
|
||||
);
|
||||
}
|
||||
return Buffer.from(arg.serializeBinary());
|
||||
}
|
||||
|
||||
function deserialize_com_docker_api_protos_containers_v1_RunResponse(buffer_arg) {
|
||||
return containers_v1_containers_pb.RunResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
||||
function deserialize_com_docker_api_protos_containers_v1_RunResponse(
|
||||
buffer_arg
|
||||
) {
|
||||
return containers_v1_containers_pb.RunResponse.deserializeBinary(
|
||||
new Uint8Array(buffer_arg)
|
||||
);
|
||||
}
|
||||
|
||||
function serialize_com_docker_api_protos_containers_v1_StopRequest(arg) {
|
||||
if (!(arg instanceof containers_v1_containers_pb.StopRequest)) {
|
||||
throw new Error('Expected argument of type com.docker.api.protos.containers.v1.StopRequest');
|
||||
throw new Error(
|
||||
'Expected argument of type com.docker.api.protos.containers.v1.StopRequest'
|
||||
);
|
||||
}
|
||||
return Buffer.from(arg.serializeBinary());
|
||||
}
|
||||
|
||||
function deserialize_com_docker_api_protos_containers_v1_StopRequest(buffer_arg) {
|
||||
return containers_v1_containers_pb.StopRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
||||
function deserialize_com_docker_api_protos_containers_v1_StopRequest(
|
||||
buffer_arg
|
||||
) {
|
||||
return containers_v1_containers_pb.StopRequest.deserializeBinary(
|
||||
new Uint8Array(buffer_arg)
|
||||
);
|
||||
}
|
||||
|
||||
function serialize_com_docker_api_protos_containers_v1_StopResponse(arg) {
|
||||
if (!(arg instanceof containers_v1_containers_pb.StopResponse)) {
|
||||
throw new Error('Expected argument of type com.docker.api.protos.containers.v1.StopResponse');
|
||||
throw new Error(
|
||||
'Expected argument of type com.docker.api.protos.containers.v1.StopResponse'
|
||||
);
|
||||
}
|
||||
return Buffer.from(arg.serializeBinary());
|
||||
}
|
||||
|
||||
function deserialize_com_docker_api_protos_containers_v1_StopResponse(buffer_arg) {
|
||||
return containers_v1_containers_pb.StopResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
||||
function deserialize_com_docker_api_protos_containers_v1_StopResponse(
|
||||
buffer_arg
|
||||
) {
|
||||
return containers_v1_containers_pb.StopResponse.deserializeBinary(
|
||||
new Uint8Array(buffer_arg)
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
var ContainersService = exports.ContainersService = {
|
||||
var ContainersService = (exports.ContainersService = {
|
||||
list: {
|
||||
path: '/com.docker.api.protos.containers.v1.Containers/List',
|
||||
requestStream: false,
|
||||
|
@ -253,6 +336,6 @@ var ContainersService = exports.ContainersService = {
|
|||
responseSerialize: serialize_com_docker_api_protos_containers_v1_InspectResponse,
|
||||
responseDeserialize: deserialize_com_docker_api_protos_containers_v1_InspectResponse,
|
||||
},
|
||||
};
|
||||
});
|
||||
|
||||
exports.ContainersClient = grpc.makeGenericClientConstructor(ContainersService);
|
||||
|
|
Различия файлов скрыты, потому что одна или несколько строк слишком длинны
|
@ -1,17 +1,18 @@
|
|||
//
|
||||
// Copyright 2020 Docker, Inc.
|
||||
/*
|
||||
Copyright 2020 The Authors
|
||||
|
||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||
// you may not use this file except in compliance with the License.
|
||||
// You may obtain a copy of the License at
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
you may not use this file except in compliance with the License.
|
||||
You may obtain a copy of the License at
|
||||
|
||||
// http://www.apache.org/licenses/LICENSE-2.0
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
// Unless required by applicable law or agreed to in writing, software
|
||||
// distributed under the License is distributed on an "AS IS" BASIS,
|
||||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
Unless required by applicable law or agreed to in writing, software
|
||||
distributed under the License is distributed on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
*/
|
||||
|
||||
syntax = "proto3";
|
||||
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
// Original file comments:
|
||||
//
|
||||
// Copyright 2020 Docker, Inc.
|
||||
// Copyright 2020 The Authors
|
||||
//
|
||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||
// you may not use this file except in compliance with the License.
|
||||
|
@ -22,52 +22,71 @@ var contexts_v1_contexts_pb = require('../../contexts/v1/contexts_pb.js');
|
|||
|
||||
function serialize_com_docker_api_protos_context_v1_ListRequest(arg) {
|
||||
if (!(arg instanceof contexts_v1_contexts_pb.ListRequest)) {
|
||||
throw new Error('Expected argument of type com.docker.api.protos.context.v1.ListRequest');
|
||||
throw new Error(
|
||||
'Expected argument of type com.docker.api.protos.context.v1.ListRequest'
|
||||
);
|
||||
}
|
||||
return Buffer.from(arg.serializeBinary());
|
||||
}
|
||||
|
||||
function deserialize_com_docker_api_protos_context_v1_ListRequest(buffer_arg) {
|
||||
return contexts_v1_contexts_pb.ListRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
||||
return contexts_v1_contexts_pb.ListRequest.deserializeBinary(
|
||||
new Uint8Array(buffer_arg)
|
||||
);
|
||||
}
|
||||
|
||||
function serialize_com_docker_api_protos_context_v1_ListResponse(arg) {
|
||||
if (!(arg instanceof contexts_v1_contexts_pb.ListResponse)) {
|
||||
throw new Error('Expected argument of type com.docker.api.protos.context.v1.ListResponse');
|
||||
throw new Error(
|
||||
'Expected argument of type com.docker.api.protos.context.v1.ListResponse'
|
||||
);
|
||||
}
|
||||
return Buffer.from(arg.serializeBinary());
|
||||
}
|
||||
|
||||
function deserialize_com_docker_api_protos_context_v1_ListResponse(buffer_arg) {
|
||||
return contexts_v1_contexts_pb.ListResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
||||
return contexts_v1_contexts_pb.ListResponse.deserializeBinary(
|
||||
new Uint8Array(buffer_arg)
|
||||
);
|
||||
}
|
||||
|
||||
function serialize_com_docker_api_protos_context_v1_SetCurrentRequest(arg) {
|
||||
if (!(arg instanceof contexts_v1_contexts_pb.SetCurrentRequest)) {
|
||||
throw new Error('Expected argument of type com.docker.api.protos.context.v1.SetCurrentRequest');
|
||||
throw new Error(
|
||||
'Expected argument of type com.docker.api.protos.context.v1.SetCurrentRequest'
|
||||
);
|
||||
}
|
||||
return Buffer.from(arg.serializeBinary());
|
||||
}
|
||||
|
||||
function deserialize_com_docker_api_protos_context_v1_SetCurrentRequest(buffer_arg) {
|
||||
return contexts_v1_contexts_pb.SetCurrentRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
||||
function deserialize_com_docker_api_protos_context_v1_SetCurrentRequest(
|
||||
buffer_arg
|
||||
) {
|
||||
return contexts_v1_contexts_pb.SetCurrentRequest.deserializeBinary(
|
||||
new Uint8Array(buffer_arg)
|
||||
);
|
||||
}
|
||||
|
||||
function serialize_com_docker_api_protos_context_v1_SetCurrentResponse(arg) {
|
||||
if (!(arg instanceof contexts_v1_contexts_pb.SetCurrentResponse)) {
|
||||
throw new Error('Expected argument of type com.docker.api.protos.context.v1.SetCurrentResponse');
|
||||
throw new Error(
|
||||
'Expected argument of type com.docker.api.protos.context.v1.SetCurrentResponse'
|
||||
);
|
||||
}
|
||||
return Buffer.from(arg.serializeBinary());
|
||||
}
|
||||
|
||||
function deserialize_com_docker_api_protos_context_v1_SetCurrentResponse(buffer_arg) {
|
||||
return contexts_v1_contexts_pb.SetCurrentResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
||||
function deserialize_com_docker_api_protos_context_v1_SetCurrentResponse(
|
||||
buffer_arg
|
||||
) {
|
||||
return contexts_v1_contexts_pb.SetCurrentResponse.deserializeBinary(
|
||||
new Uint8Array(buffer_arg)
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
var ContextsService = exports.ContextsService = {
|
||||
var ContextsService = (exports.ContextsService = {
|
||||
// Sets the current request for all calls
|
||||
setCurrent: {
|
||||
setCurrent: {
|
||||
path: '/com.docker.api.protos.context.v1.Contexts/SetCurrent',
|
||||
requestStream: false,
|
||||
responseStream: false,
|
||||
|
@ -79,7 +98,7 @@ setCurrent: {
|
|||
responseDeserialize: deserialize_com_docker_api_protos_context_v1_SetCurrentResponse,
|
||||
},
|
||||
// Returns the list of existing contexts
|
||||
list: {
|
||||
list: {
|
||||
path: '/com.docker.api.protos.context.v1.Contexts/List',
|
||||
requestStream: false,
|
||||
responseStream: false,
|
||||
|
@ -90,6 +109,6 @@ list: {
|
|||
responseSerialize: serialize_com_docker_api_protos_context_v1_ListResponse,
|
||||
responseDeserialize: deserialize_com_docker_api_protos_context_v1_ListResponse,
|
||||
},
|
||||
};
|
||||
});
|
||||
|
||||
exports.ContextsClient = grpc.makeGenericClientConstructor(ContextsService);
|
||||
|
|
|
@ -1 +1 @@
|
|||
{"version":3,"file":"contexts_grpc_pb.js","sourceRoot":"","sources":["../../../../src/protos/contexts/v1/contexts_grpc_pb.js"],"names":[],"mappings":"AAAA,iCAAiC;AAEjC,0BAA0B;AAC1B,EAAE;AACF,+BAA+B;AAC/B,EAAE;AACF,mEAAmE;AACnE,oEAAoE;AACpE,2CAA2C;AAC3C,EAAE;AACF,kDAAkD;AAClD,EAAE;AACF,uEAAuE;AACvE,qEAAqE;AACrE,4EAA4E;AAC5E,uEAAuE;AACvE,kCAAkC;AAClC,EAAE;AACF,YAAY,CAAC;AACb,IAAI,IAAI,GAAG,OAAO,CAAC,eAAe,CAAC,CAAC;AACpC,IAAI,uBAAuB,GAAG,OAAO,CAAC,kCAAkC,CAAC,CAAC;AAE1E,SAAS,sDAAsD,CAAC,GAAG;IACjE,IAAI,CAAC,CAAC,GAAG,YAAY,uBAAuB,CAAC,WAAW,CAAC,EAAE;QACzD,MAAM,IAAI,KAAK,CAAC,wEAAwE,CAAC,CAAC;KAC3F;IACD,OAAO,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,eAAe,EAAE,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AC,kBAAkB,CAAC,iBAAiB,CAAC,IAAI,UAAU,CAAC,UAAU,CAAC,CAAC,CAAC;AAClG,CAAC;AAGD,IAAI,eAAe,GAAG,OAAO,CAAC,eAAe,GAAG;IAC9C,yCAAyC;IAC3C,UAAU,EAAE;QACR,IAAI,EAAE,uDAAuD;QAC7D,aAAa,EAAE,KAAK;QACpB,cAAc,EAAE,KAAK;QACrB,WAAW,EAAE,uBAAuB,CAAC,iBAAiB;QACtD,YAAY,EAAE,uBAAuB,CAAC,kBAAkB;QACxD,gBAAgB,EAAE,4DAA4D;QAC9E,kBAAkB,EAAE,8DAA8D;QAClF,iBAAiB,EAAE,6DAA6D;QAChF,mBAAmB,EAAE,+DAA+D;KACrF;IACD,wCAAwC;IAC1C,IAAI,EAAE;QACF,IAAI,EAAE,iDAAiD;QACvD,aAAa,EAAE,KAAK;QACpB,cAAc,EAAE,KAAK;QACrB,WAAW,EAAE,uBAAuB,CAAC,WAAW;QAChD,YAAY,EAAE,uBAAuB,CAAC,YAAY;QAClD,gBAAgB,EAAE,sDAAsD;QACxE,kBAAkB,EAAE,wDAAwD;QAC5E,iBAAiB,EAAE,uDAAuD;QAC1E,mBAAmB,EAAE,yDAAyD;KAC/E;CACF,CAAC;AAEF,OAAO,CAAC,cAAc,GAAG,IAAI,CAAC,4BAA4B,CAAC,eAAe,CAAC,CAAC"}
|
||||
{"version":3,"file":"contexts_grpc_pb.js","sourceRoot":"","sources":["../../../../src/protos/contexts/v1/contexts_grpc_pb.js"],"names":[],"mappings":"AAAA,iCAAiC;AAEjC,0BAA0B;AAC1B,EAAE;AACF,8BAA8B;AAC9B,EAAE;AACF,mEAAmE;AACnE,oEAAoE;AACpE,2CAA2C;AAC3C,EAAE;AACF,kDAAkD;AAClD,EAAE;AACF,uEAAuE;AACvE,qEAAqE;AACrE,4EAA4E;AAC5E,uEAAuE;AACvE,kCAAkC;AAClC,EAAE;AACF,YAAY,CAAC;AACb,IAAI,IAAI,GAAG,OAAO,CAAC,eA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
|
||||
|
||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||
// you may not use this file except in compliance with the License.
|
||||
// You may obtain a copy of the License at
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
you may not use this file except in compliance with the License.
|
||||
You may obtain a copy of the License at
|
||||
|
||||
// http://www.apache.org/licenses/LICENSE-2.0
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
// Unless required by applicable law or agreed to in writing, software
|
||||
// distributed under the License is distributed on an "AS IS" BASIS,
|
||||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
Unless required by applicable law or agreed to in writing, software
|
||||
distributed under the License is distributed on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
*/
|
||||
|
||||
syntax = "proto3";
|
||||
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
// Original file comments:
|
||||
//
|
||||
// Copyright 2020 Docker, Inc.
|
||||
// Copyright 2020 The Authors
|
||||
//
|
||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||
// you may not use this file except in compliance with the License.
|
||||
|
@ -29,11 +29,12 @@ function serialize_google_protobuf_Any(arg) {
|
|||
}
|
||||
|
||||
function deserialize_google_protobuf_Any(buffer_arg) {
|
||||
return google_protobuf_any_pb.Any.deserializeBinary(new Uint8Array(buffer_arg));
|
||||
return google_protobuf_any_pb.Any.deserializeBinary(
|
||||
new Uint8Array(buffer_arg)
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
var StreamingService = exports.StreamingService = {
|
||||
var StreamingService = (exports.StreamingService = {
|
||||
newStream: {
|
||||
path: '/com.docker.api.protos.streams.v1.Streaming/NewStream',
|
||||
requestStream: true,
|
||||
|
@ -45,6 +46,6 @@ var StreamingService = exports.StreamingService = {
|
|||
responseSerialize: serialize_google_protobuf_Any,
|
||||
responseDeserialize: deserialize_google_protobuf_Any,
|
||||
},
|
||||
};
|
||||
});
|
||||
|
||||
exports.StreamingClient = grpc.makeGenericClientConstructor(StreamingService);
|
||||
|
|
|
@ -1 +1 @@
|
|||
{"version":3,"file":"streams_grpc_pb.js","sourceRoot":"","sources":["../../../../src/protos/streams/v1/streams_grpc_pb.js"],"names":[],"mappings":"AAAA,iCAAiC;AAEjC,0BAA0B;AAC1B,EAAE;AACF,+BAA+B;AAC/B,EAAE;AACF,mEAAmE;AACnE,oEAAoE;AACpE,2CAA2C;AAC3C,EAAE;AACF,kDAAkD;AAClD,EAAE;AACF,uEAAuE;AACvE,qEAAqE;AACrE,4EAA4E;AAC5E,uEAAuE;AACvE,kCAAkC;AAClC,EAAE;AACF,YAAY,CAAC;AACb,IAAI,IAAI,GAAG,OAAO,CAAC,eAAe,CAAC,CAAC;AACpC,IAAI,qBAAqB,GAAG,OAAO,CAAC,gCAAgC,CAAC,CAAC;AACtE,IAAI,sBAAsB,GAAG,OAAO,CAAC,2CAA2C,CAAC,CAAC;AAElF,SAAS,6BAA6B,CAAC,GAAG;IACxC,IAAI,CAAC,CAAC,GAAG,YAAY,sBAAsB,CAAC,GAAG,CAAC,EAAE;QAChD,MAAM,IAAI,KAAK,CAAC,+CAA+C,CAAC,CAAC;KAClE;IACD,OAAO,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,eAAe,EAAE,CAAC,CAAC;AAC5C,CAAC;AAED,SAAS,+BAA+B,CAAC,UAAU;IACjD,OAAO,sBAAsB,CAAC,GAAG,CAAC,iBAAiB,CAAC,IAAI,UAAU,CAAC,UAAU,CAAC,CAAC,CAAC;AAClF,CAAC;AAGD,IAAI,gBAAgB,GAAG,OAAO,CAAC,gBAAgB,GAAG;IAChD,SAAS,EAAE;QACT,IAAI,EAAE,uDAAuD;QAC7D,aAAa,EAAE,IAAI;QACnB,cAAc,EAAE,IAAI;QACpB,WAAW,EAAE,sBAAsB,CAAC,GAAG;QACvC,YAAY,EAAE,sBAAsB,CAAC,GAAG;QACxC,gBAAgB,EAAE,6BAA6B;QAC/C,kBAAkB,EAAE,+BAA+B;QACnD,iBAAiB,EAAE,6BAA6B;QAChD,mBAAmB,EAAE,+BAA+B;KACrD;CACF,CAAC;AAEF,OAAO,CAAC,eAAe,GAAG,IAAI,CAAC,4BAA4B,CAAC,gBAAgB,CAAC,CAAC"}
|
||||
{"version":3,"file":"streams_grpc_pb.js","sourceRoot":"","sources":["../../../../src/protos/streams/v1/streams_grpc_pb.js"],"names":[],"mappings":"AAAA,iCAAiC;AAEjC,0BAA0B;AAC1B,EAAE;AACF,8BAA8B;AAC9B,EAAE;AACF,mEAAmE;AACnE,oEAAoE;AACpE,2CAA2C;AAC3C,EAAE;AACF,kDAAkD;AAClD,EAAE;AACF,uEAAuE;AACvE,qEAAqE;AACrE,4EAA4E;AAC5E,uEAAuE;AACvE,kCAAkC;AAClC,EAAE;AACF,YAAY,CAAC;AACb,IAAI,IAAI,GAAG,OAAO,CAAC,eAAe,CAAC,CAAC;AACpC,IAAI,qBAAqB,GAAG,OAAO,CAAC,gCAAgC,CAAC,CAAC;AACtE,IAAI,sBAAsB,GAAG,OAAO,CAAC,2CAA2C,CAAC,CAAC;AAElF,SAAS,6BAA6B,CAAC,GAAG;IACxC,IAAI,CAAC,CAAC,GAAG,YAAY,sBAAsB,CAAC,GAAG,CAAC,EAAE;QAChD,MAAM,IAAI,KAAK,CAAC,+CAA+C,CAAC,CAAC;KAClE;IACD,OAAO,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,eAAe,EAAE,CAAC,CAAC;AAC5C,CAAC;AAED,SAAS,+BAA+B,CAAC,UAAU;IACjD,OAAO,sBAAsB,CAAC,GAAG,CAAC,iBAAiB,CACjD,IAAI,UAAU,CAAC,UAAU,CAAC,CAC3B,CAAC;AACJ,CAAC;AAED,IAAI,gBAAgB,GAAG,CAAC,OAAO,CAAC,gBAAgB,GAAG;IACjD,SAAS,EAAE;QACT,IAAI,EAAE,uDAAuD;QAC7D,aAAa,EAAE,IAAI;QACnB,cAAc,EAAE,IAAI;QACpB,WAAW,EAAE,sBAAsB,CAAC,GAAG;QACvC,YAAY,EAAE,sBAAsB,CAAC,GAAG;QACxC,gBAAgB,EAAE,6BAA6B;QAC/C,kBAAkB,EAAE,+BAA+B;QACnD,iBAAiB,EAAE,6BAA6B;QAChD,mBAAmB,EAAE,+BAA+B;KACrD;CACF,CAAC,CAAC;AAEH,OAAO,CAAC,eAAe,GAAG,IAAI,CAAC,4BAA4B,CAAC,gBAAgB,CAAC,CAAC"}
|
|
@ -1,4 +1,19 @@
|
|||
"use strict";
|
||||
/*
|
||||
Copyright 2020 The Authors
|
||||
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
you may not use this file except in compliance with the License.
|
||||
You may obtain a copy of the License at
|
||||
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
Unless required by applicable law or agreed to in writing, software
|
||||
distributed under the License is distributed on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
*/
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.BytesMessage = void 0;
|
||||
const tslib_1 = require("tslib");
|
||||
|
|
|
@ -1 +1 @@
|
|||
{"version":3,"file":"streams.js","sourceRoot":"","sources":["../src/streams.ts"],"names":[],"mappings":";;;;AAAA,+DAAgF;AAChF,uGAAiF;AAEjF,MAAa,YAAa,SAAQ,yBAAc;IAC9C,KAAK;QACH,MAAM,GAAG,GAAG,IAAI,sBAAsB,CAAC,GAAG,EAAE,CAAC;QAC7C,GAAG,CAAC,IAAI,CAAC,IAAI,CAAC,eAAe,EAAE,EAAE,IAAI,CAAC,IAAI,EAAE,CAAC,CAAC;QAC9C,OAAO,GAAG,CAAC;IACb,CAAC;IAED,MAAM,CAAC,OAAO,CAAC,GAA+B;QAC5C,OAAQ,GAAG,CAAC,MAAM,CAChB,yBAAc,CAAC,iBAAiB,EAChC,+CAA+C,CACpB,CAAC;IAChC,CAAC;IAED,IAAI;QACF,OAAO,mEAAmE,CAAC;IAC7E,CAAC;CACF;AAjBD,oCAiBC"}
|
||||
{"version":3,"file":"streams.js","sourceRoot":"","sources":["../src/streams.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;EAcE;;;;AAEF,+DAAgF;AAChF,uGAAiF;AAEjF,MAAa,YAAa,SAAQ,yBAAc;IAC9C,KAAK;QACH,MAAM,GAAG,GAAG,IAAI,sBAAsB,CAAC,GAAG,EAAE,CAAC;QAC7C,GAAG,CAAC,IAAI,CAAC,IAAI,CAAC,eAAe,EAAE,EAAE,IAAI,CAAC,IAAI,EAAE,CAAC,CAAC;QAC9C,OAAO,GAAG,CAAC;IACb,CAAC;IAED,MAAM,CAAC,OAAO,CAAC,GAA+B;QAC5C,OAAQ,GAAG,CAAC,MAAM,CAChB,yBAAc,CAAC,iBAAiB,EAChC,+CAA+C,CACpB,CAAC;IAChC,CAAC;IAED,IAAI;QACF,OAAO,mEAAmE,CAAC;IAC7E,CAAC;CACF;AAjBD,oCAiBC"}
|
|
@ -1,3 +1,19 @@
|
|||
/*
|
||||
Copyright 2020 The Authors
|
||||
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
you may not use this file except in compliance with the License.
|
||||
You may obtain a copy of the License at
|
||||
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
Unless required by applicable law or agreed to in writing, software
|
||||
distributed under the License is distributed on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
*/
|
||||
|
||||
import * as grpc from '@grpc/grpc-js';
|
||||
|
||||
import { ListRequest, ListResponse } from '../src/contexts';
|
||||
|
|
|
@ -1,3 +1,19 @@
|
|||
/*
|
||||
Copyright 2020 The Authors
|
||||
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
you may not use this file except in compliance with the License.
|
||||
You may obtain a copy of the License at
|
||||
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
Unless required by applicable law or agreed to in writing, software
|
||||
distributed under the License is distributed on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
*/
|
||||
|
||||
import * as grpc from '@grpc/grpc-js';
|
||||
import * as readline from 'readline';
|
||||
|
||||
|
|
|
@ -1,3 +1,19 @@
|
|||
/*
|
||||
Copyright 2020 The Authors
|
||||
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
you may not use this file except in compliance with the License.
|
||||
You may obtain a copy of the License at
|
||||
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
Unless required by applicable law or agreed to in writing, software
|
||||
distributed under the License is distributed on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
*/
|
||||
|
||||
import * as grpc from '@grpc/grpc-js';
|
||||
|
||||
import { ListRequest, ListResponse } from '../src/containers';
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"version": "0.1.0",
|
||||
"license": "MIT",
|
||||
"license": "Apache-2.0",
|
||||
"main": "dist/index.js",
|
||||
"typings": "dist/index.d.ts",
|
||||
"files": [
|
||||
|
|
|
@ -1,3 +1,19 @@
|
|||
/*
|
||||
Copyright 2020 The Authors
|
||||
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
you may not use this file except in compliance with the License.
|
||||
You may obtain a copy of the License at
|
||||
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
Unless required by applicable law or agreed to in writing, software
|
||||
distributed under the License is distributed on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
*/
|
||||
|
||||
export {
|
||||
ExecRequest,
|
||||
ExecResponse,
|
||||
|
|
|
@ -1,3 +1,19 @@
|
|||
/*
|
||||
Copyright 2020 The Authors
|
||||
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
you may not use this file except in compliance with the License.
|
||||
You may obtain a copy of the License at
|
||||
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
Unless required by applicable law or agreed to in writing, software
|
||||
distributed under the License is distributed on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
*/
|
||||
|
||||
export {
|
||||
ListRequest,
|
||||
ListResponse,
|
||||
|
|
16
src/index.ts
16
src/index.ts
|
@ -1,3 +1,19 @@
|
|||
/*
|
||||
Copyright 2020 The Authors
|
||||
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
you may not use this file except in compliance with the License.
|
||||
You may obtain a copy of the License at
|
||||
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
Unless required by applicable law or agreed to in writing, software
|
||||
distributed under the License is distributed on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
*/
|
||||
|
||||
import { homedir, platform } from 'os';
|
||||
|
||||
import { credentials } from '@grpc/grpc-js';
|
||||
|
|
|
@ -1,18 +1,18 @@
|
|||
//
|
||||
// Copyright 2020 Docker, Inc.
|
||||
/*
|
||||
Copyright 2020 The Authors
|
||||
|
||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||
// you may not use this file except in compliance with the License.
|
||||
// You may obtain a copy of the License at
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
you may not use this file except in compliance with the License.
|
||||
You may obtain a copy of the License at
|
||||
|
||||
// http://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
// Unless required by applicable law or agreed to in writing, software
|
||||
// distributed under the License is distributed on an "AS IS" BASIS,
|
||||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
Unless required by applicable law or agreed to in writing, software
|
||||
distributed under the License is distributed on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
*/
|
||||
syntax = "proto3";
|
||||
|
||||
package com.docker.api.protos.compose.v1;
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
// Original file comments:
|
||||
//
|
||||
// Copyright 2020 Docker, Inc.
|
||||
// Copyright 2020 The Authors
|
||||
//
|
||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||
// you may not use this file except in compliance with the License.
|
||||
|
@ -22,50 +22,73 @@ var compose_v1_compose_pb = require('../../compose/v1/compose_pb.js');
|
|||
|
||||
function serialize_com_docker_api_protos_compose_v1_ComposeDownRequest(arg) {
|
||||
if (!(arg instanceof compose_v1_compose_pb.ComposeDownRequest)) {
|
||||
throw new Error('Expected argument of type com.docker.api.protos.compose.v1.ComposeDownRequest');
|
||||
throw new Error(
|
||||
'Expected argument of type com.docker.api.protos.compose.v1.ComposeDownRequest'
|
||||
);
|
||||
}
|
||||
return Buffer.from(arg.serializeBinary());
|
||||
}
|
||||
|
||||
function deserialize_com_docker_api_protos_compose_v1_ComposeDownRequest(buffer_arg) {
|
||||
return compose_v1_compose_pb.ComposeDownRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
||||
function deserialize_com_docker_api_protos_compose_v1_ComposeDownRequest(
|
||||
buffer_arg
|
||||
) {
|
||||
return compose_v1_compose_pb.ComposeDownRequest.deserializeBinary(
|
||||
new Uint8Array(buffer_arg)
|
||||
);
|
||||
}
|
||||
|
||||
function serialize_com_docker_api_protos_compose_v1_ComposeDownResponse(arg) {
|
||||
if (!(arg instanceof compose_v1_compose_pb.ComposeDownResponse)) {
|
||||
throw new Error('Expected argument of type com.docker.api.protos.compose.v1.ComposeDownResponse');
|
||||
throw new Error(
|
||||
'Expected argument of type com.docker.api.protos.compose.v1.ComposeDownResponse'
|
||||
);
|
||||
}
|
||||
return Buffer.from(arg.serializeBinary());
|
||||
}
|
||||
|
||||
function deserialize_com_docker_api_protos_compose_v1_ComposeDownResponse(buffer_arg) {
|
||||
return compose_v1_compose_pb.ComposeDownResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
||||
function deserialize_com_docker_api_protos_compose_v1_ComposeDownResponse(
|
||||
buffer_arg
|
||||
) {
|
||||
return compose_v1_compose_pb.ComposeDownResponse.deserializeBinary(
|
||||
new Uint8Array(buffer_arg)
|
||||
);
|
||||
}
|
||||
|
||||
function serialize_com_docker_api_protos_compose_v1_ComposeUpRequest(arg) {
|
||||
if (!(arg instanceof compose_v1_compose_pb.ComposeUpRequest)) {
|
||||
throw new Error('Expected argument of type com.docker.api.protos.compose.v1.ComposeUpRequest');
|
||||
throw new Error(
|
||||
'Expected argument of type com.docker.api.protos.compose.v1.ComposeUpRequest'
|
||||
);
|
||||
}
|
||||
return Buffer.from(arg.serializeBinary());
|
||||
}
|
||||
|
||||
function deserialize_com_docker_api_protos_compose_v1_ComposeUpRequest(buffer_arg) {
|
||||
return compose_v1_compose_pb.ComposeUpRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
||||
function deserialize_com_docker_api_protos_compose_v1_ComposeUpRequest(
|
||||
buffer_arg
|
||||
) {
|
||||
return compose_v1_compose_pb.ComposeUpRequest.deserializeBinary(
|
||||
new Uint8Array(buffer_arg)
|
||||
);
|
||||
}
|
||||
|
||||
function serialize_com_docker_api_protos_compose_v1_ComposeUpResponse(arg) {
|
||||
if (!(arg instanceof compose_v1_compose_pb.ComposeUpResponse)) {
|
||||
throw new Error('Expected argument of type com.docker.api.protos.compose.v1.ComposeUpResponse');
|
||||
throw new Error(
|
||||
'Expected argument of type com.docker.api.protos.compose.v1.ComposeUpResponse'
|
||||
);
|
||||
}
|
||||
return Buffer.from(arg.serializeBinary());
|
||||
}
|
||||
|
||||
function deserialize_com_docker_api_protos_compose_v1_ComposeUpResponse(buffer_arg) {
|
||||
return compose_v1_compose_pb.ComposeUpResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
||||
function deserialize_com_docker_api_protos_compose_v1_ComposeUpResponse(
|
||||
buffer_arg
|
||||
) {
|
||||
return compose_v1_compose_pb.ComposeUpResponse.deserializeBinary(
|
||||
new Uint8Array(buffer_arg)
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
var ComposeService = exports.ComposeService = {
|
||||
var ComposeService = (exports.ComposeService = {
|
||||
up: {
|
||||
path: '/com.docker.api.protos.compose.v1.Compose/Up',
|
||||
requestStream: false,
|
||||
|
@ -88,6 +111,6 @@ var ComposeService = exports.ComposeService = {
|
|||
responseSerialize: serialize_com_docker_api_protos_compose_v1_ComposeDownResponse,
|
||||
responseDeserialize: deserialize_com_docker_api_protos_compose_v1_ComposeDownResponse,
|
||||
},
|
||||
};
|
||||
});
|
||||
|
||||
exports.ComposeClient = grpc.makeGenericClientConstructor(ComposeService);
|
||||
|
|
|
@ -1,17 +1,18 @@
|
|||
//
|
||||
// Copyright 2020 Docker, Inc.
|
||||
/*
|
||||
Copyright 2020 The Authors
|
||||
|
||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||
// you may not use this file except in compliance with the License.
|
||||
// You may obtain a copy of the License at
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
you may not use this file except in compliance with the License.
|
||||
You may obtain a copy of the License at
|
||||
|
||||
// http://www.apache.org/licenses/LICENSE-2.0
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
// Unless required by applicable law or agreed to in writing, software
|
||||
// distributed under the License is distributed on an "AS IS" BASIS,
|
||||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
Unless required by applicable law or agreed to in writing, software
|
||||
distributed under the License is distributed on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
*/
|
||||
|
||||
syntax = "proto3";
|
||||
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
// Original file comments:
|
||||
//
|
||||
// Copyright 2020 Docker, Inc.
|
||||
// Copyright 2020 The Authors
|
||||
//
|
||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||
// you may not use this file except in compliance with the License.
|
||||
|
@ -22,160 +22,243 @@ var containers_v1_containers_pb = require('../../containers/v1/containers_pb.js'
|
|||
|
||||
function serialize_com_docker_api_protos_containers_v1_DeleteRequest(arg) {
|
||||
if (!(arg instanceof containers_v1_containers_pb.DeleteRequest)) {
|
||||
throw new Error('Expected argument of type com.docker.api.protos.containers.v1.DeleteRequest');
|
||||
throw new Error(
|
||||
'Expected argument of type com.docker.api.protos.containers.v1.DeleteRequest'
|
||||
);
|
||||
}
|
||||
return Buffer.from(arg.serializeBinary());
|
||||
}
|
||||
|
||||
function deserialize_com_docker_api_protos_containers_v1_DeleteRequest(buffer_arg) {
|
||||
return containers_v1_containers_pb.DeleteRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
||||
function deserialize_com_docker_api_protos_containers_v1_DeleteRequest(
|
||||
buffer_arg
|
||||
) {
|
||||
return containers_v1_containers_pb.DeleteRequest.deserializeBinary(
|
||||
new Uint8Array(buffer_arg)
|
||||
);
|
||||
}
|
||||
|
||||
function serialize_com_docker_api_protos_containers_v1_DeleteResponse(arg) {
|
||||
if (!(arg instanceof containers_v1_containers_pb.DeleteResponse)) {
|
||||
throw new Error('Expected argument of type com.docker.api.protos.containers.v1.DeleteResponse');
|
||||
throw new Error(
|
||||
'Expected argument of type com.docker.api.protos.containers.v1.DeleteResponse'
|
||||
);
|
||||
}
|
||||
return Buffer.from(arg.serializeBinary());
|
||||
}
|
||||
|
||||
function deserialize_com_docker_api_protos_containers_v1_DeleteResponse(buffer_arg) {
|
||||
return containers_v1_containers_pb.DeleteResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
||||
function deserialize_com_docker_api_protos_containers_v1_DeleteResponse(
|
||||
buffer_arg
|
||||
) {
|
||||
return containers_v1_containers_pb.DeleteResponse.deserializeBinary(
|
||||
new Uint8Array(buffer_arg)
|
||||
);
|
||||
}
|
||||
|
||||
function serialize_com_docker_api_protos_containers_v1_ExecRequest(arg) {
|
||||
if (!(arg instanceof containers_v1_containers_pb.ExecRequest)) {
|
||||
throw new Error('Expected argument of type com.docker.api.protos.containers.v1.ExecRequest');
|
||||
throw new Error(
|
||||
'Expected argument of type com.docker.api.protos.containers.v1.ExecRequest'
|
||||
);
|
||||
}
|
||||
return Buffer.from(arg.serializeBinary());
|
||||
}
|
||||
|
||||
function deserialize_com_docker_api_protos_containers_v1_ExecRequest(buffer_arg) {
|
||||
return containers_v1_containers_pb.ExecRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
||||
function deserialize_com_docker_api_protos_containers_v1_ExecRequest(
|
||||
buffer_arg
|
||||
) {
|
||||
return containers_v1_containers_pb.ExecRequest.deserializeBinary(
|
||||
new Uint8Array(buffer_arg)
|
||||
);
|
||||
}
|
||||
|
||||
function serialize_com_docker_api_protos_containers_v1_ExecResponse(arg) {
|
||||
if (!(arg instanceof containers_v1_containers_pb.ExecResponse)) {
|
||||
throw new Error('Expected argument of type com.docker.api.protos.containers.v1.ExecResponse');
|
||||
throw new Error(
|
||||
'Expected argument of type com.docker.api.protos.containers.v1.ExecResponse'
|
||||
);
|
||||
}
|
||||
return Buffer.from(arg.serializeBinary());
|
||||
}
|
||||
|
||||
function deserialize_com_docker_api_protos_containers_v1_ExecResponse(buffer_arg) {
|
||||
return containers_v1_containers_pb.ExecResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
||||
function deserialize_com_docker_api_protos_containers_v1_ExecResponse(
|
||||
buffer_arg
|
||||
) {
|
||||
return containers_v1_containers_pb.ExecResponse.deserializeBinary(
|
||||
new Uint8Array(buffer_arg)
|
||||
);
|
||||
}
|
||||
|
||||
function serialize_com_docker_api_protos_containers_v1_InspectRequest(arg) {
|
||||
if (!(arg instanceof containers_v1_containers_pb.InspectRequest)) {
|
||||
throw new Error('Expected argument of type com.docker.api.protos.containers.v1.InspectRequest');
|
||||
throw new Error(
|
||||
'Expected argument of type com.docker.api.protos.containers.v1.InspectRequest'
|
||||
);
|
||||
}
|
||||
return Buffer.from(arg.serializeBinary());
|
||||
}
|
||||
|
||||
function deserialize_com_docker_api_protos_containers_v1_InspectRequest(buffer_arg) {
|
||||
return containers_v1_containers_pb.InspectRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
||||
function deserialize_com_docker_api_protos_containers_v1_InspectRequest(
|
||||
buffer_arg
|
||||
) {
|
||||
return containers_v1_containers_pb.InspectRequest.deserializeBinary(
|
||||
new Uint8Array(buffer_arg)
|
||||
);
|
||||
}
|
||||
|
||||
function serialize_com_docker_api_protos_containers_v1_InspectResponse(arg) {
|
||||
if (!(arg instanceof containers_v1_containers_pb.InspectResponse)) {
|
||||
throw new Error('Expected argument of type com.docker.api.protos.containers.v1.InspectResponse');
|
||||
throw new Error(
|
||||
'Expected argument of type com.docker.api.protos.containers.v1.InspectResponse'
|
||||
);
|
||||
}
|
||||
return Buffer.from(arg.serializeBinary());
|
||||
}
|
||||
|
||||
function deserialize_com_docker_api_protos_containers_v1_InspectResponse(buffer_arg) {
|
||||
return containers_v1_containers_pb.InspectResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
||||
function deserialize_com_docker_api_protos_containers_v1_InspectResponse(
|
||||
buffer_arg
|
||||
) {
|
||||
return containers_v1_containers_pb.InspectResponse.deserializeBinary(
|
||||
new Uint8Array(buffer_arg)
|
||||
);
|
||||
}
|
||||
|
||||
function serialize_com_docker_api_protos_containers_v1_ListRequest(arg) {
|
||||
if (!(arg instanceof containers_v1_containers_pb.ListRequest)) {
|
||||
throw new Error('Expected argument of type com.docker.api.protos.containers.v1.ListRequest');
|
||||
throw new Error(
|
||||
'Expected argument of type com.docker.api.protos.containers.v1.ListRequest'
|
||||
);
|
||||
}
|
||||
return Buffer.from(arg.serializeBinary());
|
||||
}
|
||||
|
||||
function deserialize_com_docker_api_protos_containers_v1_ListRequest(buffer_arg) {
|
||||
return containers_v1_containers_pb.ListRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
||||
function deserialize_com_docker_api_protos_containers_v1_ListRequest(
|
||||
buffer_arg
|
||||
) {
|
||||
return containers_v1_containers_pb.ListRequest.deserializeBinary(
|
||||
new Uint8Array(buffer_arg)
|
||||
);
|
||||
}
|
||||
|
||||
function serialize_com_docker_api_protos_containers_v1_ListResponse(arg) {
|
||||
if (!(arg instanceof containers_v1_containers_pb.ListResponse)) {
|
||||
throw new Error('Expected argument of type com.docker.api.protos.containers.v1.ListResponse');
|
||||
throw new Error(
|
||||
'Expected argument of type com.docker.api.protos.containers.v1.ListResponse'
|
||||
);
|
||||
}
|
||||
return Buffer.from(arg.serializeBinary());
|
||||
}
|
||||
|
||||
function deserialize_com_docker_api_protos_containers_v1_ListResponse(buffer_arg) {
|
||||
return containers_v1_containers_pb.ListResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
||||
function deserialize_com_docker_api_protos_containers_v1_ListResponse(
|
||||
buffer_arg
|
||||
) {
|
||||
return containers_v1_containers_pb.ListResponse.deserializeBinary(
|
||||
new Uint8Array(buffer_arg)
|
||||
);
|
||||
}
|
||||
|
||||
function serialize_com_docker_api_protos_containers_v1_LogsRequest(arg) {
|
||||
if (!(arg instanceof containers_v1_containers_pb.LogsRequest)) {
|
||||
throw new Error('Expected argument of type com.docker.api.protos.containers.v1.LogsRequest');
|
||||
throw new Error(
|
||||
'Expected argument of type com.docker.api.protos.containers.v1.LogsRequest'
|
||||
);
|
||||
}
|
||||
return Buffer.from(arg.serializeBinary());
|
||||
}
|
||||
|
||||
function deserialize_com_docker_api_protos_containers_v1_LogsRequest(buffer_arg) {
|
||||
return containers_v1_containers_pb.LogsRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
||||
function deserialize_com_docker_api_protos_containers_v1_LogsRequest(
|
||||
buffer_arg
|
||||
) {
|
||||
return containers_v1_containers_pb.LogsRequest.deserializeBinary(
|
||||
new Uint8Array(buffer_arg)
|
||||
);
|
||||
}
|
||||
|
||||
function serialize_com_docker_api_protos_containers_v1_LogsResponse(arg) {
|
||||
if (!(arg instanceof containers_v1_containers_pb.LogsResponse)) {
|
||||
throw new Error('Expected argument of type com.docker.api.protos.containers.v1.LogsResponse');
|
||||
throw new Error(
|
||||
'Expected argument of type com.docker.api.protos.containers.v1.LogsResponse'
|
||||
);
|
||||
}
|
||||
return Buffer.from(arg.serializeBinary());
|
||||
}
|
||||
|
||||
function deserialize_com_docker_api_protos_containers_v1_LogsResponse(buffer_arg) {
|
||||
return containers_v1_containers_pb.LogsResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
||||
function deserialize_com_docker_api_protos_containers_v1_LogsResponse(
|
||||
buffer_arg
|
||||
) {
|
||||
return containers_v1_containers_pb.LogsResponse.deserializeBinary(
|
||||
new Uint8Array(buffer_arg)
|
||||
);
|
||||
}
|
||||
|
||||
function serialize_com_docker_api_protos_containers_v1_RunRequest(arg) {
|
||||
if (!(arg instanceof containers_v1_containers_pb.RunRequest)) {
|
||||
throw new Error('Expected argument of type com.docker.api.protos.containers.v1.RunRequest');
|
||||
throw new Error(
|
||||
'Expected argument of type com.docker.api.protos.containers.v1.RunRequest'
|
||||
);
|
||||
}
|
||||
return Buffer.from(arg.serializeBinary());
|
||||
}
|
||||
|
||||
function deserialize_com_docker_api_protos_containers_v1_RunRequest(buffer_arg) {
|
||||
return containers_v1_containers_pb.RunRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
||||
function deserialize_com_docker_api_protos_containers_v1_RunRequest(
|
||||
buffer_arg
|
||||
) {
|
||||
return containers_v1_containers_pb.RunRequest.deserializeBinary(
|
||||
new Uint8Array(buffer_arg)
|
||||
);
|
||||
}
|
||||
|
||||
function serialize_com_docker_api_protos_containers_v1_RunResponse(arg) {
|
||||
if (!(arg instanceof containers_v1_containers_pb.RunResponse)) {
|
||||
throw new Error('Expected argument of type com.docker.api.protos.containers.v1.RunResponse');
|
||||
throw new Error(
|
||||
'Expected argument of type com.docker.api.protos.containers.v1.RunResponse'
|
||||
);
|
||||
}
|
||||
return Buffer.from(arg.serializeBinary());
|
||||
}
|
||||
|
||||
function deserialize_com_docker_api_protos_containers_v1_RunResponse(buffer_arg) {
|
||||
return containers_v1_containers_pb.RunResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
||||
function deserialize_com_docker_api_protos_containers_v1_RunResponse(
|
||||
buffer_arg
|
||||
) {
|
||||
return containers_v1_containers_pb.RunResponse.deserializeBinary(
|
||||
new Uint8Array(buffer_arg)
|
||||
);
|
||||
}
|
||||
|
||||
function serialize_com_docker_api_protos_containers_v1_StopRequest(arg) {
|
||||
if (!(arg instanceof containers_v1_containers_pb.StopRequest)) {
|
||||
throw new Error('Expected argument of type com.docker.api.protos.containers.v1.StopRequest');
|
||||
throw new Error(
|
||||
'Expected argument of type com.docker.api.protos.containers.v1.StopRequest'
|
||||
);
|
||||
}
|
||||
return Buffer.from(arg.serializeBinary());
|
||||
}
|
||||
|
||||
function deserialize_com_docker_api_protos_containers_v1_StopRequest(buffer_arg) {
|
||||
return containers_v1_containers_pb.StopRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
||||
function deserialize_com_docker_api_protos_containers_v1_StopRequest(
|
||||
buffer_arg
|
||||
) {
|
||||
return containers_v1_containers_pb.StopRequest.deserializeBinary(
|
||||
new Uint8Array(buffer_arg)
|
||||
);
|
||||
}
|
||||
|
||||
function serialize_com_docker_api_protos_containers_v1_StopResponse(arg) {
|
||||
if (!(arg instanceof containers_v1_containers_pb.StopResponse)) {
|
||||
throw new Error('Expected argument of type com.docker.api.protos.containers.v1.StopResponse');
|
||||
throw new Error(
|
||||
'Expected argument of type com.docker.api.protos.containers.v1.StopResponse'
|
||||
);
|
||||
}
|
||||
return Buffer.from(arg.serializeBinary());
|
||||
}
|
||||
|
||||
function deserialize_com_docker_api_protos_containers_v1_StopResponse(buffer_arg) {
|
||||
return containers_v1_containers_pb.StopResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
||||
function deserialize_com_docker_api_protos_containers_v1_StopResponse(
|
||||
buffer_arg
|
||||
) {
|
||||
return containers_v1_containers_pb.StopResponse.deserializeBinary(
|
||||
new Uint8Array(buffer_arg)
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
var ContainersService = exports.ContainersService = {
|
||||
var ContainersService = (exports.ContainersService = {
|
||||
list: {
|
||||
path: '/com.docker.api.protos.containers.v1.Containers/List',
|
||||
requestStream: false,
|
||||
|
@ -253,6 +336,6 @@ var ContainersService = exports.ContainersService = {
|
|||
responseSerialize: serialize_com_docker_api_protos_containers_v1_InspectResponse,
|
||||
responseDeserialize: deserialize_com_docker_api_protos_containers_v1_InspectResponse,
|
||||
},
|
||||
};
|
||||
});
|
||||
|
||||
exports.ContainersClient = grpc.makeGenericClientConstructor(ContainersService);
|
||||
|
|
|
@ -1,17 +1,18 @@
|
|||
//
|
||||
// Copyright 2020 Docker, Inc.
|
||||
/*
|
||||
Copyright 2020 The Authors
|
||||
|
||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||
// you may not use this file except in compliance with the License.
|
||||
// You may obtain a copy of the License at
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
you may not use this file except in compliance with the License.
|
||||
You may obtain a copy of the License at
|
||||
|
||||
// http://www.apache.org/licenses/LICENSE-2.0
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
// Unless required by applicable law or agreed to in writing, software
|
||||
// distributed under the License is distributed on an "AS IS" BASIS,
|
||||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
Unless required by applicable law or agreed to in writing, software
|
||||
distributed under the License is distributed on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
*/
|
||||
|
||||
syntax = "proto3";
|
||||
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
// Original file comments:
|
||||
//
|
||||
// Copyright 2020 Docker, Inc.
|
||||
// Copyright 2020 The Authors
|
||||
//
|
||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||
// you may not use this file except in compliance with the License.
|
||||
|
@ -22,52 +22,71 @@ var contexts_v1_contexts_pb = require('../../contexts/v1/contexts_pb.js');
|
|||
|
||||
function serialize_com_docker_api_protos_context_v1_ListRequest(arg) {
|
||||
if (!(arg instanceof contexts_v1_contexts_pb.ListRequest)) {
|
||||
throw new Error('Expected argument of type com.docker.api.protos.context.v1.ListRequest');
|
||||
throw new Error(
|
||||
'Expected argument of type com.docker.api.protos.context.v1.ListRequest'
|
||||
);
|
||||
}
|
||||
return Buffer.from(arg.serializeBinary());
|
||||
}
|
||||
|
||||
function deserialize_com_docker_api_protos_context_v1_ListRequest(buffer_arg) {
|
||||
return contexts_v1_contexts_pb.ListRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
||||
return contexts_v1_contexts_pb.ListRequest.deserializeBinary(
|
||||
new Uint8Array(buffer_arg)
|
||||
);
|
||||
}
|
||||
|
||||
function serialize_com_docker_api_protos_context_v1_ListResponse(arg) {
|
||||
if (!(arg instanceof contexts_v1_contexts_pb.ListResponse)) {
|
||||
throw new Error('Expected argument of type com.docker.api.protos.context.v1.ListResponse');
|
||||
throw new Error(
|
||||
'Expected argument of type com.docker.api.protos.context.v1.ListResponse'
|
||||
);
|
||||
}
|
||||
return Buffer.from(arg.serializeBinary());
|
||||
}
|
||||
|
||||
function deserialize_com_docker_api_protos_context_v1_ListResponse(buffer_arg) {
|
||||
return contexts_v1_contexts_pb.ListResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
||||
return contexts_v1_contexts_pb.ListResponse.deserializeBinary(
|
||||
new Uint8Array(buffer_arg)
|
||||
);
|
||||
}
|
||||
|
||||
function serialize_com_docker_api_protos_context_v1_SetCurrentRequest(arg) {
|
||||
if (!(arg instanceof contexts_v1_contexts_pb.SetCurrentRequest)) {
|
||||
throw new Error('Expected argument of type com.docker.api.protos.context.v1.SetCurrentRequest');
|
||||
throw new Error(
|
||||
'Expected argument of type com.docker.api.protos.context.v1.SetCurrentRequest'
|
||||
);
|
||||
}
|
||||
return Buffer.from(arg.serializeBinary());
|
||||
}
|
||||
|
||||
function deserialize_com_docker_api_protos_context_v1_SetCurrentRequest(buffer_arg) {
|
||||
return contexts_v1_contexts_pb.SetCurrentRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
||||
function deserialize_com_docker_api_protos_context_v1_SetCurrentRequest(
|
||||
buffer_arg
|
||||
) {
|
||||
return contexts_v1_contexts_pb.SetCurrentRequest.deserializeBinary(
|
||||
new Uint8Array(buffer_arg)
|
||||
);
|
||||
}
|
||||
|
||||
function serialize_com_docker_api_protos_context_v1_SetCurrentResponse(arg) {
|
||||
if (!(arg instanceof contexts_v1_contexts_pb.SetCurrentResponse)) {
|
||||
throw new Error('Expected argument of type com.docker.api.protos.context.v1.SetCurrentResponse');
|
||||
throw new Error(
|
||||
'Expected argument of type com.docker.api.protos.context.v1.SetCurrentResponse'
|
||||
);
|
||||
}
|
||||
return Buffer.from(arg.serializeBinary());
|
||||
}
|
||||
|
||||
function deserialize_com_docker_api_protos_context_v1_SetCurrentResponse(buffer_arg) {
|
||||
return contexts_v1_contexts_pb.SetCurrentResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
||||
function deserialize_com_docker_api_protos_context_v1_SetCurrentResponse(
|
||||
buffer_arg
|
||||
) {
|
||||
return contexts_v1_contexts_pb.SetCurrentResponse.deserializeBinary(
|
||||
new Uint8Array(buffer_arg)
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
var ContextsService = exports.ContextsService = {
|
||||
var ContextsService = (exports.ContextsService = {
|
||||
// Sets the current request for all calls
|
||||
setCurrent: {
|
||||
setCurrent: {
|
||||
path: '/com.docker.api.protos.context.v1.Contexts/SetCurrent',
|
||||
requestStream: false,
|
||||
responseStream: false,
|
||||
|
@ -79,7 +98,7 @@ setCurrent: {
|
|||
responseDeserialize: deserialize_com_docker_api_protos_context_v1_SetCurrentResponse,
|
||||
},
|
||||
// Returns the list of existing contexts
|
||||
list: {
|
||||
list: {
|
||||
path: '/com.docker.api.protos.context.v1.Contexts/List',
|
||||
requestStream: false,
|
||||
responseStream: false,
|
||||
|
@ -90,6 +109,6 @@ list: {
|
|||
responseSerialize: serialize_com_docker_api_protos_context_v1_ListResponse,
|
||||
responseDeserialize: deserialize_com_docker_api_protos_context_v1_ListResponse,
|
||||
},
|
||||
};
|
||||
});
|
||||
|
||||
exports.ContextsClient = grpc.makeGenericClientConstructor(ContextsService);
|
||||
|
|
|
@ -1,17 +1,18 @@
|
|||
//
|
||||
// Copyright 2020 Docker, Inc.
|
||||
/*
|
||||
Copyright 2020 The Authors
|
||||
|
||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||
// you may not use this file except in compliance with the License.
|
||||
// You may obtain a copy of the License at
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
you may not use this file except in compliance with the License.
|
||||
You may obtain a copy of the License at
|
||||
|
||||
// http://www.apache.org/licenses/LICENSE-2.0
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
// Unless required by applicable law or agreed to in writing, software
|
||||
// distributed under the License is distributed on an "AS IS" BASIS,
|
||||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
Unless required by applicable law or agreed to in writing, software
|
||||
distributed under the License is distributed on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
*/
|
||||
|
||||
syntax = "proto3";
|
||||
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
// Original file comments:
|
||||
//
|
||||
// Copyright 2020 Docker, Inc.
|
||||
// Copyright 2020 The Authors
|
||||
//
|
||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||
// you may not use this file except in compliance with the License.
|
||||
|
@ -29,11 +29,12 @@ function serialize_google_protobuf_Any(arg) {
|
|||
}
|
||||
|
||||
function deserialize_google_protobuf_Any(buffer_arg) {
|
||||
return google_protobuf_any_pb.Any.deserializeBinary(new Uint8Array(buffer_arg));
|
||||
return google_protobuf_any_pb.Any.deserializeBinary(
|
||||
new Uint8Array(buffer_arg)
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
var StreamingService = exports.StreamingService = {
|
||||
var StreamingService = (exports.StreamingService = {
|
||||
newStream: {
|
||||
path: '/com.docker.api.protos.streams.v1.Streaming/NewStream',
|
||||
requestStream: true,
|
||||
|
@ -45,6 +46,6 @@ var StreamingService = exports.StreamingService = {
|
|||
responseSerialize: serialize_google_protobuf_Any,
|
||||
responseDeserialize: deserialize_google_protobuf_Any,
|
||||
},
|
||||
};
|
||||
});
|
||||
|
||||
exports.StreamingClient = grpc.makeGenericClientConstructor(StreamingService);
|
||||
|
|
|
@ -1,3 +1,19 @@
|
|||
/*
|
||||
Copyright 2020 The Authors
|
||||
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
you may not use this file except in compliance with the License.
|
||||
You may obtain a copy of the License at
|
||||
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
Unless required by applicable law or agreed to in writing, software
|
||||
distributed under the License is distributed on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
*/
|
||||
|
||||
import { BytesMessage as PbBytesMessage } from './protos/streams/v1/streams_pb';
|
||||
import * as google_protobuf_any_pb from 'google-protobuf/google/protobuf/any_pb';
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче