shad-go/distbuild/pkg/client/build.go
2022-02-10 22:06:57 +00:00

35 lines
629 B
Go

//go:build !solution
// +build !solution
package client
import (
"context"
"go.uber.org/zap"
"gitlab.com/slon/shad-go/distbuild/pkg/build"
)
type Client struct {
}
func NewClient(
l *zap.Logger,
apiEndpoint string,
sourceDir string,
) *Client {
panic("implement me")
}
type BuildListener interface {
OnJobStdout(jobID build.ID, stdout []byte) error
OnJobStderr(jobID build.ID, stderr []byte) error
OnJobFinished(jobID build.ID) error
OnJobFailed(jobID build.ID, code int, error string) error
}
func (c *Client) Build(ctx context.Context, graph build.Graph, lsn BuildListener) error {
panic("implement me")
}