/
left76
/
cli
Обзор
Документация
Войти
/
left76
/
cli
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
CI/CD
Аналитика
Безопасность
master
vendor/github.com/docker/swarmkit/api/resource.proto
34 строки
1 KB
Sebastiaan van Stijn
bump moby/moby and dependencies to 14ce1f1cf48e9859223c6311de58aec4dc0f046c
29 сен 2017, 18:44
Не верифицирован
29 сен 2017, 18:44
98dbfee
Код
Авторство
О чём код?
syntax = "proto3"; package docker.swarmkit.v1; import "github.com/docker/swarmkit/api/types.proto"; import "gogoproto/gogo.proto"; import "github.com/docker/swarmkit/protobuf/plugin/plugin.proto"; // Allocator is the API provided by a manager group for agents to control the allocation of certain entities. // // API methods on this service are used only by agent nodes. service ResourceAllocator { rpc AttachNetwork(AttachNetworkRequest) returns (AttachNetworkResponse) { option (docker.protobuf.plugin.tls_authorization) = { roles: "swarm-worker" roles: "swarm-manager" }; }; rpc DetachNetwork(DetachNetworkRequest) returns (DetachNetworkResponse) { option (docker.protobuf.plugin.tls_authorization) = { roles: "swarm-worker" roles: "swarm-manager" }; }; } message AttachNetworkRequest { NetworkAttachmentConfig config = 1; string container_id = 2; } message AttachNetworkResponse { string attachment_id = 1; } message DetachNetworkRequest { string attachment_id = 1; } message DetachNetworkResponse {}