shad-go/distbuild/pkg/client/build.go
Sergey Paramoshkin dc939b6ed1
update repo
2023-10-02 22:32:41 +03:00

33 lines
619 B
Go

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