shad-go/distbuild/pkg/client/build.go
2022-03-15 23:49:56 +03:00

34 lines
609 B
Go

//go: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")
}