build

package
v3.8.0 Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2021 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

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.Server, 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://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewBuildClient

func NewBuildClient(cc *grpc.ClientConn) 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"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*BuildRequest) Descriptor

func (*BuildRequest) Descriptor() ([]byte, []int)

func (*BuildRequest) GetData

func (m *BuildRequest) GetData() []byte

func (*BuildRequest) GetOptions

func (m *BuildRequest) GetOptions() *Options

func (*BuildRequest) ProtoMessage

func (*BuildRequest) ProtoMessage()

func (*BuildRequest) Reset

func (m *BuildRequest) Reset()

func (*BuildRequest) String

func (m *BuildRequest) String() string

func (*BuildRequest) XXX_DiscardUnknown

func (m *BuildRequest) XXX_DiscardUnknown()

func (*BuildRequest) XXX_Marshal

func (m *BuildRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*BuildRequest) XXX_Merge

func (m *BuildRequest) XXX_Merge(src proto.Message)

func (*BuildRequest) XXX_Size

func (m *BuildRequest) XXX_Size() int

func (*BuildRequest) XXX_Unmarshal

func (m *BuildRequest) XXX_Unmarshal(b []byte) error

type BuildServer

type BuildServer interface {
	Build(Build_BuildServer) error
}

BuildServer is the server API for Build service.

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"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*Options) Descriptor

func (*Options) Descriptor() ([]byte, []int)

func (*Options) GetArchive

func (m *Options) GetArchive() string

func (*Options) GetEntrypoint

func (m *Options) GetEntrypoint() string

func (*Options) ProtoMessage

func (*Options) ProtoMessage()

func (*Options) Reset

func (m *Options) Reset()

func (*Options) String

func (m *Options) String() string

func (*Options) XXX_DiscardUnknown

func (m *Options) XXX_DiscardUnknown()

func (*Options) XXX_Marshal

func (m *Options) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Options) XXX_Merge

func (m *Options) XXX_Merge(src proto.Message)

func (*Options) XXX_Size

func (m *Options) XXX_Size() int

func (*Options) XXX_Unmarshal

func (m *Options) XXX_Unmarshal(b []byte) error

type Result

type Result struct {
	Data                 []byte   `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*Result) Descriptor

func (*Result) Descriptor() ([]byte, []int)

func (*Result) GetData

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

func (*Result) ProtoMessage

func (*Result) ProtoMessage()

func (*Result) Reset

func (m *Result) Reset()

func (*Result) String

func (m *Result) String() string

func (*Result) XXX_DiscardUnknown

func (m *Result) XXX_DiscardUnknown()

func (*Result) XXX_Marshal

func (m *Result) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Result) XXX_Merge

func (m *Result) XXX_Merge(src proto.Message)

func (*Result) XXX_Size

func (m *Result) XXX_Size() int

func (*Result) XXX_Unmarshal

func (m *Result) XXX_Unmarshal(b []byte) error

Jump to

Keyboard shortcuts

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