build

package
v3.10.5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 14, 2022 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
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)

View Source
var File_proto_build_build_proto protoreflect.FileDescriptor

Functions

func NewBuildEndpoints

func NewBuildEndpoints() []*api.Endpoint

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_BuildService interface {
	Context() context.Context
	SendMsg(interface{}) error
	RecvMsg(interface{}) error
	Close() error
	Send(*BuildRequest) error
	Recv() (*Result, error)
}

type Build_BuildStream

type Build_BuildStream interface {
	Context() context.Context
	SendMsg(interface{}) error
	RecvMsg(interface{}) error
	Close() error
	Send(*Result) error
	Recv() (*BuildRequest, error)
}

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) Descriptor() ([]byte, []int)

Deprecated: Use Options.ProtoReflect.Descriptor instead.

func (*Options) GetArchive

func (x *Options) GetArchive() string

func (*Options) GetEntrypoint

func (x *Options) GetEntrypoint() string

func (*Options) ProtoMessage

func (*Options) ProtoMessage()

func (*Options) ProtoReflect

func (x *Options) ProtoReflect() protoreflect.Message

func (*Options) Reset

func (x *Options) Reset()

func (*Options) String

func (x *Options) String() string

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) Descriptor() ([]byte, []int)

Deprecated: Use Result.ProtoReflect.Descriptor instead.

func (*Result) GetData

func (x *Result) GetData() []byte

func (*Result) ProtoMessage

func (*Result) ProtoMessage()

func (*Result) ProtoReflect

func (x *Result) ProtoReflect() protoreflect.Message

func (*Result) Reset

func (x *Result) Reset()

func (*Result) String

func (x *Result) String() string

type UnimplementedBuildServer

type UnimplementedBuildServer struct {
}

UnimplementedBuildServer must be embedded to have forward compatible implementations.

func (UnimplementedBuildServer) Build

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL