Files
Paweł Gronowski fca6d1f16d extpoints: Let extensions use a regular Engine API client
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>
2026-11-04 19:47:55 +01:00

166 lines
5.7 KiB
Go
Generated

// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.36.12
// protoc (unknown)
// source: extpoints/daemonapi/v0/daemon_api.proto
package protogen
import (
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
reflect "reflect"
sync "sync"
unsafe "unsafe"
)
const (
// Verify that this generated code is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
// Verify that runtime/protoimpl is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
)
type GetRequest struct {
state protoimpl.MessageState `protogen:"open.v1"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *GetRequest) Reset() {
*x = GetRequest{}
mi := &file_extpoints_daemonapi_v0_daemon_api_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *GetRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*GetRequest) ProtoMessage() {}
func (x *GetRequest) ProtoReflect() protoreflect.Message {
mi := &file_extpoints_daemonapi_v0_daemon_api_proto_msgTypes[0]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use GetRequest.ProtoReflect.Descriptor instead.
func (*GetRequest) Descriptor() ([]byte, []int) {
return file_extpoints_daemonapi_v0_daemon_api_proto_rawDescGZIP(), []int{0}
}
type GetResponse struct {
state protoimpl.MessageState `protogen:"open.v1"`
Host string `protobuf:"bytes,1,opt,name=host,proto3" json:"host,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *GetResponse) Reset() {
*x = GetResponse{}
mi := &file_extpoints_daemonapi_v0_daemon_api_proto_msgTypes[1]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *GetResponse) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*GetResponse) ProtoMessage() {}
func (x *GetResponse) ProtoReflect() protoreflect.Message {
mi := &file_extpoints_daemonapi_v0_daemon_api_proto_msgTypes[1]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use GetResponse.ProtoReflect.Descriptor instead.
func (*GetResponse) Descriptor() ([]byte, []int) {
return file_extpoints_daemonapi_v0_daemon_api_proto_rawDescGZIP(), []int{1}
}
func (x *GetResponse) GetHost() string {
if x != nil {
return x.Host
}
return ""
}
var File_extpoints_daemonapi_v0_daemon_api_proto protoreflect.FileDescriptor
const file_extpoints_daemonapi_v0_daemon_api_proto_rawDesc = "" +
"\n" +
"'extpoints/daemonapi/v0/daemon_api.proto\x12'org.mobyproject.extension.daemon.api.v0\"\f\n" +
"\n" +
"GetRequest\"!\n" +
"\vGetResponse\x12\x12\n" +
"\x04host\x18\x01 \x01(\tR\x04host2}\n" +
"\tDaemonAPI\x12p\n" +
"\x03Get\x123.org.mobyproject.extension.daemon.api.v0.GetRequest\x1a4.org.mobyproject.extension.daemon.api.v0.GetResponseB9Z7github.com/moby/moby/v2/extpoints/daemonapi/v0/protogenb\x06proto3"
var (
file_extpoints_daemonapi_v0_daemon_api_proto_rawDescOnce sync.Once
file_extpoints_daemonapi_v0_daemon_api_proto_rawDescData []byte
)
func file_extpoints_daemonapi_v0_daemon_api_proto_rawDescGZIP() []byte {
file_extpoints_daemonapi_v0_daemon_api_proto_rawDescOnce.Do(func() {
file_extpoints_daemonapi_v0_daemon_api_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_extpoints_daemonapi_v0_daemon_api_proto_rawDesc), len(file_extpoints_daemonapi_v0_daemon_api_proto_rawDesc)))
})
return file_extpoints_daemonapi_v0_daemon_api_proto_rawDescData
}
var file_extpoints_daemonapi_v0_daemon_api_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
var file_extpoints_daemonapi_v0_daemon_api_proto_goTypes = []any{
(*GetRequest)(nil), // 0: org.mobyproject.extension.daemon.api.v0.GetRequest
(*GetResponse)(nil), // 1: org.mobyproject.extension.daemon.api.v0.GetResponse
}
var file_extpoints_daemonapi_v0_daemon_api_proto_depIdxs = []int32{
0, // 0: org.mobyproject.extension.daemon.api.v0.DaemonAPI.Get:input_type -> org.mobyproject.extension.daemon.api.v0.GetRequest
1, // 1: org.mobyproject.extension.daemon.api.v0.DaemonAPI.Get:output_type -> org.mobyproject.extension.daemon.api.v0.GetResponse
1, // [1:2] is the sub-list for method output_type
0, // [0:1] is the sub-list for method input_type
0, // [0:0] is the sub-list for extension type_name
0, // [0:0] is the sub-list for extension extendee
0, // [0:0] is the sub-list for field type_name
}
func init() { file_extpoints_daemonapi_v0_daemon_api_proto_init() }
func file_extpoints_daemonapi_v0_daemon_api_proto_init() {
if File_extpoints_daemonapi_v0_daemon_api_proto != nil {
return
}
type x struct{}
out := protoimpl.TypeBuilder{
File: protoimpl.DescBuilder{
GoPackagePath: reflect.TypeFor[x]().PkgPath(),
RawDescriptor: unsafe.Slice(unsafe.StringData(file_extpoints_daemonapi_v0_daemon_api_proto_rawDesc), len(file_extpoints_daemonapi_v0_daemon_api_proto_rawDesc)),
NumEnums: 0,
NumMessages: 2,
NumExtensions: 0,
NumServices: 1,
},
GoTypes: file_extpoints_daemonapi_v0_daemon_api_proto_goTypes,
DependencyIndexes: file_extpoints_daemonapi_v0_daemon_api_proto_depIdxs,
MessageInfos: file_extpoints_daemonapi_v0_daemon_api_proto_msgTypes,
}.Build()
File_extpoints_daemonapi_v0_daemon_api_proto = out.File
file_extpoints_daemonapi_v0_daemon_api_proto_goTypes = nil
file_extpoints_daemonapi_v0_daemon_api_proto_depIdxs = nil
}