Extensions had no supported way to call the Engine API. The configured hosts may be socket-activated or TLS-only TCP. Add the org.mobyproject.extension.daemon.api.v0 point. It returns the address of a private unix socket where the daemon serves its regular API handler. daemonapiv0.NewClient helper resolves the point and returns a *client.Client. Signed-off-by: Paweł Gronowski <pawel.gronowski@docker.com>
22 lines
493 B
Protocol Buffer
Generated
22 lines
493 B
Protocol Buffer
Generated
// Code generated by mobyextgen. DO NOT EDIT.
|
|
|
|
syntax = "proto3";
|
|
|
|
package org.mobyproject.extension.daemon.api.v0;
|
|
|
|
option go_package = "github.com/moby/moby/v2/extpoints/daemonapi/v0/protogen";
|
|
|
|
// DaemonAPI locates the Engine API endpoint the daemon serves for extensions.
|
|
// Use [NewClient] instead of calling it directly.
|
|
service DaemonAPI {
|
|
// Get returns the endpoint.
|
|
rpc Get(GetRequest) returns (GetResponse);
|
|
}
|
|
|
|
message GetRequest {
|
|
}
|
|
|
|
message GetResponse {
|
|
string host = 1;
|
|
}
|