2022-02-10 22:06:57 +00:00
|
|
|
//go:build !solution
|
2020-04-05 13:24:48 +00:00
|
|
|
// +build !solution
|
|
|
|
|
2020-03-10 12:08:59 +00:00
|
|
|
package client
|
|
|
|
|
|
|
|
import (
|
|
|
|
"context"
|
|
|
|
|
2020-03-11 22:46:45 +00:00
|
|
|
"go.uber.org/zap"
|
|
|
|
|
2020-03-10 12:08:59 +00:00
|
|
|
"gitlab.com/slon/shad-go/distbuild/pkg/build"
|
|
|
|
)
|
|
|
|
|
|
|
|
type Client struct {
|
2020-03-29 16:24:18 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func NewClient(
|
|
|
|
l *zap.Logger,
|
|
|
|
apiEndpoint string,
|
|
|
|
sourceDir string,
|
|
|
|
) *Client {
|
2020-04-05 13:24:48 +00:00
|
|
|
panic("implement me")
|
2020-03-10 12:08:59 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
type BuildListener interface {
|
|
|
|
OnJobStdout(jobID build.ID, stdout []byte) error
|
2020-03-11 22:46:45 +00:00
|
|
|
OnJobStderr(jobID build.ID, stderr []byte) error
|
2020-03-10 12:08:59 +00:00
|
|
|
|
|
|
|
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 {
|
2020-04-05 13:24:48 +00:00
|
|
|
panic("implement me")
|
2020-03-10 12:08:59 +00:00
|
|
|
}
|