Documentation ¶
Index ¶
- Variables
- func NewBuildEndpoints() []*api.Endpoint
- func RegisterBuildHandler(s server.Server, hdlr BuildHandler, opts ...server.HandlerOption) error
- func RegisterBuildServer(s grpc.ServiceRegistrar, srv BuildServer)
- type BuildClient
- type BuildHandler
- type BuildRequest
- func (*BuildRequest) Descriptor() ([]byte, []int)deprecated
- func (x *BuildRequest) GetData() []byte
- func (x *BuildRequest) GetOptions() *Options
- func (*BuildRequest) ProtoMessage()
- func (x *BuildRequest) ProtoReflect() protoreflect.Message
- func (x *BuildRequest) Reset()
- func (x *BuildRequest) String() string
- type BuildServer
- type BuildService
- type Build_BuildClient
- type Build_BuildServer
- type Build_BuildService
- type Build_BuildStream
- type Options
- type Result
- type UnimplementedBuildServer
- type UnsafeBuildServer
Constants ¶
This section is empty.
Variables ¶
var Build_ServiceDesc = grpc.ServiceDesc{ ServiceName: "build.Build", HandlerType: (*BuildServer)(nil), Methods: []grpc.MethodDesc{}, Streams: []grpc.StreamDesc{ { StreamName: "Build", Handler: _Build_Build_Handler, ServerStreams: true, ClientStreams: true, }, }, Metadata: "proto/build/build.proto", }
Build_ServiceDesc is the grpc.ServiceDesc for Build service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var File_proto_build_build_proto protoreflect.FileDescriptor
Functions ¶
func NewBuildEndpoints ¶
func RegisterBuildHandler ¶
func RegisterBuildHandler(s server.Server, hdlr BuildHandler, opts ...server.HandlerOption) error
func RegisterBuildServer ¶
func RegisterBuildServer(s grpc.ServiceRegistrar, srv BuildServer)
Types ¶
type BuildClient ¶
type BuildClient interface {
Build(ctx context.Context, opts ...grpc.CallOption) (Build_BuildClient, error)
}
BuildClient is the client API for Build service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewBuildClient ¶
func NewBuildClient(cc grpc.ClientConnInterface) BuildClient
type BuildHandler ¶
type BuildHandler interface {
Build(context.Context, Build_BuildStream) error
}
type BuildRequest ¶
type BuildRequest struct { Data []byte `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"` Options *Options `protobuf:"bytes,2,opt,name=options,proto3" json:"options,omitempty"` // contains filtered or unexported fields }
func (*BuildRequest) Descriptor
deprecated
func (*BuildRequest) Descriptor() ([]byte, []int)
Deprecated: Use BuildRequest.ProtoReflect.Descriptor instead.
func (*BuildRequest) GetData ¶
func (x *BuildRequest) GetData() []byte
func (*BuildRequest) GetOptions ¶
func (x *BuildRequest) GetOptions() *Options
func (*BuildRequest) ProtoMessage ¶
func (*BuildRequest) ProtoMessage()
func (*BuildRequest) ProtoReflect ¶
func (x *BuildRequest) ProtoReflect() protoreflect.Message
func (*BuildRequest) Reset ¶
func (x *BuildRequest) Reset()
func (*BuildRequest) String ¶
func (x *BuildRequest) String() string
type BuildServer ¶
type BuildServer interface { Build(Build_BuildServer) error // contains filtered or unexported methods }
BuildServer is the server API for Build service. All implementations must embed UnimplementedBuildServer for forward compatibility
type BuildService ¶
type BuildService interface {
Build(ctx context.Context, opts ...client.CallOption) (Build_BuildService, error)
}
func NewBuildService ¶
func NewBuildService(name string, c client.Client) BuildService
type Build_BuildClient ¶
type Build_BuildClient interface { Send(*BuildRequest) error Recv() (*Result, error) grpc.ClientStream }
type Build_BuildServer ¶
type Build_BuildServer interface { Send(*Result) error Recv() (*BuildRequest, error) grpc.ServerStream }
type Build_BuildService ¶
type Build_BuildStream ¶
type Options ¶
type Options struct { Archive string `protobuf:"bytes,1,opt,name=archive,proto3" json:"archive,omitempty"` Entrypoint string `protobuf:"bytes,2,opt,name=entrypoint,proto3" json:"entrypoint,omitempty"` // contains filtered or unexported fields }
func (*Options) Descriptor
deprecated
func (*Options) GetArchive ¶
func (*Options) GetEntrypoint ¶
func (*Options) ProtoMessage ¶
func (*Options) ProtoMessage()
func (*Options) ProtoReflect ¶
func (x *Options) ProtoReflect() protoreflect.Message
type Result ¶
type Result struct { Data []byte `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"` // contains filtered or unexported fields }
func (*Result) Descriptor
deprecated
func (*Result) ProtoMessage ¶
func (*Result) ProtoMessage()
func (*Result) ProtoReflect ¶
func (x *Result) ProtoReflect() protoreflect.Message
type UnimplementedBuildServer ¶
type UnimplementedBuildServer struct { }
UnimplementedBuildServer must be embedded to have forward compatible implementations.
func (UnimplementedBuildServer) Build ¶
func (UnimplementedBuildServer) Build(Build_BuildServer) error
type UnsafeBuildServer ¶ added in v3.10.4
type UnsafeBuildServer interface {
// contains filtered or unexported methods
}
UnsafeBuildServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to BuildServer will result in compilation errors.