Help us shape the future of Go! Take the 2026 Go Developer Survey

control

package
v0.34.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 7, 2026 License: Apache-2.0 Imports: 60 Imported by: 191

Documentation

Index

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 (*Controller) Export added in v0.9.0

func (*Controller) Info added in v0.11.0

func (*Controller) ListenBuildHistory added in v0.11.0

func (*Controller) Prune

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 (*Controller) Status

func (*Controller) UpdateBuildHistory added in v0.11.0

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
	MeterProvider             metric.MeterProvider
	HistoryDB                 db.DB
	CacheStore                *bboltcachestorage.Store
	LeaseManager              *leaseutil.Manager
	ContentStore              *containerdsnapshot.Store
	HistoryConfig             *config.HistoryConfig
	ProxyNetwork              bool
	GarbageCollect            func(context.Context) error
	GracefulStop              <-chan struct{}
	ProvenanceEnv             map[string]any
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL