Documentation ¶
Index ¶
- type Controller
- func (c *Controller) Close() error
- func (c *Controller) DiskUsage(ctx context.Context, r *controlapi.DiskUsageRequest) (*controlapi.DiskUsageResponse, error)
- func (c *Controller) Export(ctx context.Context, req *tracev1.ExportTraceServiceRequest) (*tracev1.ExportTraceServiceResponse, error)
- func (c *Controller) Info(ctx context.Context, r *controlapi.InfoRequest) (*controlapi.InfoResponse, error)
- func (c *Controller) ListWorkers(ctx context.Context, r *controlapi.ListWorkersRequest) (*controlapi.ListWorkersResponse, error)
- func (c *Controller) ListenBuildHistory(req *controlapi.BuildHistoryRequest, ...) error
- func (c *Controller) Prune(req *controlapi.PruneRequest, stream controlapi.Control_PruneServer) error
- func (c *Controller) Register(server *grpc.Server)
- func (c *Controller) Session(stream controlapi.Control_SessionServer) error
- func (c *Controller) Solve(ctx context.Context, req *controlapi.SolveRequest) (*controlapi.SolveResponse, error)
- func (c *Controller) Status(req *controlapi.StatusRequest, stream controlapi.Control_StatusServer) error
- func (c *Controller) UpdateBuildHistory(ctx context.Context, req *controlapi.UpdateBuildHistoryRequest) (*controlapi.UpdateBuildHistoryResponse, error)
- type Opt
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Controller ¶
type Controller struct { *tracev1.UnimplementedTraceServiceServer // contains filtered or unexported fields }
func NewController ¶
func NewController(opt Opt) (*Controller, error)
func (*Controller) Close ¶ added in v0.11.0
func (c *Controller) Close() error
func (*Controller) DiskUsage ¶
func (c *Controller) DiskUsage(ctx context.Context, r *controlapi.DiskUsageRequest) (*controlapi.DiskUsageResponse, error)
func (*Controller) Export ¶ added in v0.9.0
func (c *Controller) Export(ctx context.Context, req *tracev1.ExportTraceServiceRequest) (*tracev1.ExportTraceServiceResponse, error)
func (*Controller) Info ¶ added in v0.11.0
func (c *Controller) Info(ctx context.Context, r *controlapi.InfoRequest) (*controlapi.InfoResponse, error)
func (*Controller) ListWorkers ¶
func (c *Controller) ListWorkers(ctx context.Context, r *controlapi.ListWorkersRequest) (*controlapi.ListWorkersResponse, error)
func (*Controller) ListenBuildHistory ¶ added in v0.11.0
func (c *Controller) ListenBuildHistory(req *controlapi.BuildHistoryRequest, srv controlapi.Control_ListenBuildHistoryServer) error
func (*Controller) Prune ¶
func (c *Controller) Prune(req *controlapi.PruneRequest, stream controlapi.Control_PruneServer) error
func (*Controller) Register ¶
func (c *Controller) Register(server *grpc.Server)
func (*Controller) Session ¶
func (c *Controller) Session(stream controlapi.Control_SessionServer) error
func (*Controller) Solve ¶
func (c *Controller) Solve(ctx context.Context, req *controlapi.SolveRequest) (*controlapi.SolveResponse, error)
func (*Controller) Status ¶
func (c *Controller) Status(req *controlapi.StatusRequest, stream controlapi.Control_StatusServer) error
func (*Controller) UpdateBuildHistory ¶ added in v0.11.0
func (c *Controller) UpdateBuildHistory(ctx context.Context, req *controlapi.UpdateBuildHistoryRequest) (*controlapi.UpdateBuildHistoryResponse, error)
type Opt ¶
type Opt struct { SessionManager *session.Manager WorkerController *worker.Controller Frontends map[string]frontend.Frontend CacheManager solver.CacheManager ResolveCacheExporterFuncs map[string]remotecache.ResolveCacheExporterFunc ResolveCacheImporterFuncs map[string]remotecache.ResolveCacheImporterFunc Entitlements []string TraceCollector sdktrace.SpanExporter HistoryDB *bbolt.DB LeaseManager *leaseutil.Manager ContentStore *containerdsnapshot.Store HistoryConfig *config.HistoryConfig }
Click to show internal directories.
Click to hide internal directories.