33 lines
618 B
Go
33 lines
618 B
Go
//go:build !solution
|
|
|
|
package client
|
|
|
|
import (
|
|
"context"
|
|
|
|
"go.uber.org/zap"
|
|
|
|
"gitlab.com/manytask/itmo-go/public/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")
|
|
}
|