Documentation ¶
Index ¶
- type Controller
- func (c *Controller) DiskUsage(ctx context.Context, r *controlapi.DiskUsageRequest) (*controlapi.DiskUsageResponse, error)
- func (c *Controller) ListWorkers(ctx context.Context, r *controlapi.ListWorkersRequest) (*controlapi.ListWorkersResponse, error)
- func (c *Controller) Prune(req *controlapi.PruneRequest, stream controlapi.Control_PruneServer) error
- func (c *Controller) Register(server *grpc.Server) error
- 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
- type Opt
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Controller ¶
type Controller struct {
// contains filtered or unexported fields
}
func NewController ¶
func NewController(opt Opt) (*Controller, error)
func (*Controller) DiskUsage ¶
func (c *Controller) DiskUsage(ctx context.Context, r *controlapi.DiskUsageRequest) (*controlapi.DiskUsageResponse, error)
func (*Controller) ListWorkers ¶
func (c *Controller) ListWorkers(ctx context.Context, r *controlapi.ListWorkersRequest) (*controlapi.ListWorkersResponse, error)
func (*Controller) Prune ¶
func (c *Controller) Prune(req *controlapi.PruneRequest, stream controlapi.Control_PruneServer) error
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
type Opt ¶
type Opt struct { SessionManager *session.Manager WorkerController *worker.Controller Frontends map[string]frontend.Frontend CacheKeyStorage solver.CacheKeyStorage CacheExporter *remotecache.CacheExporter CacheImporter *remotecache.CacheImporter }
Click to show internal directories.
Click to hide internal directories.