Documentation ¶
Index ¶
Constants ¶
View Source
const KeepAliveMessage = "\u200B" // Zero width space
Variables ¶
View Source
var ( ErrBuildFail = status.Errorf(codes.Unknown, "Build returned a non zero value") ErrInvalidBuildName = status.Errorf(codes.InvalidArgument, "Invalid Build Name") )
Functions ¶
This section is empty.
Types ¶
type BuildOperations ¶
type BuildOperations struct {
// contains filtered or unexported fields
}
func NewBuildOperations ¶
func NewBuildOperations(s storage.Storage, a app.Operations, e exec.Operations, k K8sOperations, o *Options) *BuildOperations
func (*BuildOperations) Create ¶
func (ops *BuildOperations) Create(ctx context.Context, appName, buildName string, u *database.User, tarBall io.ReadSeeker, runApp bool) (io.ReadCloser, <-chan error)
func (*BuildOperations) CreateByOpts ¶
func (ops *BuildOperations) CreateByOpts(ctx context.Context, opts *CreateOptions) error
type CreateOptions ¶
type CreateOptions struct { App *app.App BuildName string SlugIn string SlugDest string TarBall io.ReadSeeker Stream io.Writer }
CreateOptions define arguments of method `CreateByOpts`
type FakeOperations ¶
type FakeOperations struct { }
func NewFakeOperations ¶
func NewFakeOperations() *FakeOperations
func (*FakeOperations) Create ¶
func (f *FakeOperations) Create(ctx context.Context, appName string, buildName string, u *database.User, tarBall io.ReadSeeker, runApp bool) (io.ReadCloser, <-chan error)
func (*FakeOperations) CreateByOpts ¶
func (f *FakeOperations) CreateByOpts(ctx context.Context, opt *CreateOptions) error
type K8sOperations ¶
type Operations ¶
type Operations interface { CreateByOpts(ctx context.Context, opts *CreateOptions) error Create(ctx context.Context, appName, buildName string, u *database.User, tarBall io.ReadSeeker, runApp bool) (io.ReadCloser, <-chan error) }
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
func NewService ¶
func NewService(ops Operations, keepAliveTimeout time.Duration) *Service
func (*Service) RegisterService ¶
Click to show internal directories.
Click to hide internal directories.