Documentation
¶
Index ¶
- Constants
- Variables
- func RegisterBuildServiceServer(s grpc.ServiceRegistrar, srv BuildServiceServer)
- type BuildRequest
- func (*BuildRequest) Descriptor() ([]byte, []int)deprecated
- func (x *BuildRequest) GetCollectPattern() string
- func (x *BuildRequest) GetEnv() []string
- func (x *BuildRequest) GetSourceCode() []byte
- func (*BuildRequest) ProtoMessage()
- func (x *BuildRequest) ProtoReflect() protoreflect.Message
- func (x *BuildRequest) Reset()
- func (x *BuildRequest) String() string
- type BuildResponse
- func (*BuildResponse) Descriptor() ([]byte, []int)deprecated
- func (x *BuildResponse) GetArtifacts() []*BuildResponse_BuildArtifact
- func (x *BuildResponse) GetError() string
- func (x *BuildResponse) GetLogs() string
- func (*BuildResponse) ProtoMessage()
- func (x *BuildResponse) ProtoReflect() protoreflect.Message
- func (x *BuildResponse) Reset()
- func (x *BuildResponse) String() string
- type BuildResponse_BuildArtifact
- func (*BuildResponse_BuildArtifact) Descriptor() ([]byte, []int)deprecated
- func (x *BuildResponse_BuildArtifact) GetContent() []byte
- func (x *BuildResponse_BuildArtifact) GetFilename() string
- func (*BuildResponse_BuildArtifact) ProtoMessage()
- func (x *BuildResponse_BuildArtifact) ProtoReflect() protoreflect.Message
- func (x *BuildResponse_BuildArtifact) Reset()
- func (x *BuildResponse_BuildArtifact) String() string
- type BuildServiceClient
- type BuildServiceServer
- type BuildService_BuildClient
- type BuildService_BuildServer
- type UnimplementedBuildServiceServer
- type UnsafeBuildServiceServer
Constants ¶
const (
BuildService_Build_FullMethodName = "/sf.remotebuild.v1.BuildService/Build"
)
Variables ¶
var BuildService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "sf.remotebuild.v1.BuildService", HandlerType: (*BuildServiceServer)(nil), Methods: []grpc.MethodDesc{}, Streams: []grpc.StreamDesc{ { StreamName: "Build", Handler: _BuildService_Build_Handler, ServerStreams: true, }, }, Metadata: "sf/remotebuild/v1/remotebuild.proto", }
BuildService_ServiceDesc is the grpc.ServiceDesc for BuildService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var File_sf_remotebuild_v1_remotebuild_proto protoreflect.FileDescriptor
Functions ¶
func RegisterBuildServiceServer ¶
func RegisterBuildServiceServer(s grpc.ServiceRegistrar, srv BuildServiceServer)
Types ¶
type BuildRequest ¶
type BuildRequest struct { // Zip file with source code to unzip in a temporary directory. SourceCode []byte `protobuf:"bytes,1,opt,name=source_code,json=sourceCode,proto3" json:"source_code,omitempty"` // Environment vars, passed to `exec.Command()` Env []string `protobuf:"bytes,2,rep,name=env,proto3" json:"env,omitempty"` // Double star glob pattern to collect after the build has succeeded CollectPattern string `protobuf:"bytes,3,opt,name=collect_pattern,json=collectPattern,proto3" json:"collect_pattern,omitempty"` // contains filtered or unexported fields }
func (*BuildRequest) Descriptor
deprecated
func (*BuildRequest) Descriptor() ([]byte, []int)
Deprecated: Use BuildRequest.ProtoReflect.Descriptor instead.
func (*BuildRequest) GetCollectPattern ¶
func (x *BuildRequest) GetCollectPattern() string
func (*BuildRequest) GetEnv ¶
func (x *BuildRequest) GetEnv() []string
func (*BuildRequest) GetSourceCode ¶
func (x *BuildRequest) GetSourceCode() []byte
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 BuildResponse ¶
type BuildResponse struct { Error string `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` Logs string `protobuf:"bytes,2,opt,name=logs,proto3" json:"logs,omitempty"` // Return only the .spkg for the output Artifacts []*BuildResponse_BuildArtifact `protobuf:"bytes,3,rep,name=artifacts,proto3" json:"artifacts,omitempty"` // contains filtered or unexported fields }
func (*BuildResponse) Descriptor
deprecated
func (*BuildResponse) Descriptor() ([]byte, []int)
Deprecated: Use BuildResponse.ProtoReflect.Descriptor instead.
func (*BuildResponse) GetArtifacts ¶
func (x *BuildResponse) GetArtifacts() []*BuildResponse_BuildArtifact
func (*BuildResponse) GetError ¶
func (x *BuildResponse) GetError() string
func (*BuildResponse) GetLogs ¶
func (x *BuildResponse) GetLogs() string
func (*BuildResponse) ProtoMessage ¶
func (*BuildResponse) ProtoMessage()
func (*BuildResponse) ProtoReflect ¶
func (x *BuildResponse) ProtoReflect() protoreflect.Message
func (*BuildResponse) Reset ¶
func (x *BuildResponse) Reset()
func (*BuildResponse) String ¶
func (x *BuildResponse) String() string
type BuildResponse_BuildArtifact ¶
type BuildResponse_BuildArtifact struct { Filename string `protobuf:"bytes,1,opt,name=filename,proto3" json:"filename,omitempty"` Content []byte `protobuf:"bytes,2,opt,name=content,proto3" json:"content,omitempty"` // contains filtered or unexported fields }
func (*BuildResponse_BuildArtifact) Descriptor
deprecated
func (*BuildResponse_BuildArtifact) Descriptor() ([]byte, []int)
Deprecated: Use BuildResponse_BuildArtifact.ProtoReflect.Descriptor instead.
func (*BuildResponse_BuildArtifact) GetContent ¶
func (x *BuildResponse_BuildArtifact) GetContent() []byte
func (*BuildResponse_BuildArtifact) GetFilename ¶
func (x *BuildResponse_BuildArtifact) GetFilename() string
func (*BuildResponse_BuildArtifact) ProtoMessage ¶
func (*BuildResponse_BuildArtifact) ProtoMessage()
func (*BuildResponse_BuildArtifact) ProtoReflect ¶
func (x *BuildResponse_BuildArtifact) ProtoReflect() protoreflect.Message
func (*BuildResponse_BuildArtifact) Reset ¶
func (x *BuildResponse_BuildArtifact) Reset()
func (*BuildResponse_BuildArtifact) String ¶
func (x *BuildResponse_BuildArtifact) String() string
type BuildServiceClient ¶
type BuildServiceClient interface {
Build(ctx context.Context, in *BuildRequest, opts ...grpc.CallOption) (BuildService_BuildClient, error)
}
BuildServiceClient is the client API for BuildService 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 NewBuildServiceClient ¶
func NewBuildServiceClient(cc grpc.ClientConnInterface) BuildServiceClient
type BuildServiceServer ¶
type BuildServiceServer interface {
Build(*BuildRequest, BuildService_BuildServer) error
}
BuildServiceServer is the server API for BuildService service. All implementations should embed UnimplementedBuildServiceServer for forward compatibility
type BuildService_BuildClient ¶
type BuildService_BuildClient interface { Recv() (*BuildResponse, error) grpc.ClientStream }
type BuildService_BuildServer ¶
type BuildService_BuildServer interface { Send(*BuildResponse) error grpc.ServerStream }
type UnimplementedBuildServiceServer ¶
type UnimplementedBuildServiceServer struct { }
UnimplementedBuildServiceServer should be embedded to have forward compatible implementations.
func (UnimplementedBuildServiceServer) Build ¶
func (UnimplementedBuildServiceServer) Build(*BuildRequest, BuildService_BuildServer) error
type UnsafeBuildServiceServer ¶
type UnsafeBuildServiceServer interface {
// contains filtered or unexported methods
}
UnsafeBuildServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to BuildServiceServer will result in compilation errors.