2020-06-18 16:13:24 +02:00
|
|
|
//
|
2020-09-22 12:13:00 +02:00
|
|
|
// Copyright 2020 Docker Compose CLI authors
|
2020-06-18 16:13:24 +02:00
|
|
|
|
|
|
|
// 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.
|
2020-05-01 10:49:35 +02:00
|
|
|
|
2020-04-29 22:12:58 +02:00
|
|
|
syntax = "proto3";
|
|
|
|
|
2020-05-26 10:20:13 +02:00
|
|
|
package com.docker.api.protos.context.v1;
|
2020-04-29 22:12:58 +02:00
|
|
|
|
2020-08-21 17:24:53 +02:00
|
|
|
option go_package = "github.com/docker/compose-cli/protos/context/v1;v1";
|
2020-04-29 22:12:58 +02:00
|
|
|
|
2020-05-26 10:20:13 +02:00
|
|
|
service Contexts {
|
2020-06-06 22:30:04 +02:00
|
|
|
// Sets the current request for all calls
|
|
|
|
rpc SetCurrent(SetCurrentRequest) returns (SetCurrentResponse);
|
2020-04-29 22:12:58 +02:00
|
|
|
// Returns the list of existing contexts
|
2020-05-26 10:20:13 +02:00
|
|
|
rpc List(ListRequest) returns (ListResponse);
|
2020-04-29 22:12:58 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
message Context {
|
|
|
|
string name = 1;
|
2020-06-06 22:30:04 +02:00
|
|
|
string contextType = 2;
|
|
|
|
bool current = 3;
|
2020-11-04 17:22:43 +01:00
|
|
|
string description = 4;
|
|
|
|
oneof Endpoint {
|
|
|
|
DockerEndpoint docker_endpoint = 5;
|
|
|
|
AciEndpoint aci_endpoint = 6;
|
|
|
|
EcsEndpoint ecs_endpoint = 7;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
message DockerEndpoint {
|
|
|
|
string host = 1;
|
|
|
|
}
|
|
|
|
|
|
|
|
message AciEndpoint {
|
|
|
|
string region = 1;
|
|
|
|
string resource_group = 2;
|
|
|
|
string subscription_id = 3;
|
|
|
|
}
|
|
|
|
|
|
|
|
message EcsEndpoint {
|
|
|
|
string profile = 1;
|
|
|
|
bool from_environment = 2;
|
2020-04-29 22:12:58 +02:00
|
|
|
}
|
|
|
|
|
2020-06-06 22:30:04 +02:00
|
|
|
message SetCurrentRequest {
|
|
|
|
string name = 1;
|
|
|
|
}
|
2020-04-30 12:42:11 +02:00
|
|
|
|
2020-06-06 22:30:04 +02:00
|
|
|
message SetCurrentResponse {
|
|
|
|
}
|
|
|
|
|
|
|
|
message ListRequest {
|
2020-04-30 12:42:11 +02:00
|
|
|
}
|
|
|
|
|
2020-05-26 10:20:13 +02:00
|
|
|
message ListResponse {
|
2020-04-29 22:12:58 +02:00
|
|
|
repeated Context contexts = 1;
|
|
|
|
}
|