server

package
v0.9.11 Latest Latest
Warning

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

Go to latest
Published: Feb 20, 2024 License: Apache-2.0 Imports: 50 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BuildkitController

type BuildkitController struct {
	BuildkitControllerOpts
	*tracev1.UnimplementedTraceServiceServer // needed for grpc service register to not complain
	// contains filtered or unexported fields
}

func NewBuildkitController

func NewBuildkitController(opts BuildkitControllerOpts) (*BuildkitController, error)

func (*BuildkitController) Close

func (e *BuildkitController) Close() error

func (*BuildkitController) DiskUsage

func (*BuildkitController) Info

func (*BuildkitController) ListWorkers

func (*BuildkitController) ListenBuildHistory

func (*BuildkitController) LogMetrics

func (e *BuildkitController) LogMetrics(l *logrus.Entry) *logrus.Entry

func (*BuildkitController) Prune

func (*BuildkitController) Register

func (e *BuildkitController) Register(server *grpc.Server)

func (*BuildkitController) Session

func (e *BuildkitController) Session(stream controlapi.Control_SessionServer) (rerr error)

func (*BuildkitController) Solve

Solve is currently only used for triggering upstream remote cache exports on a dagger server

func (*BuildkitController) Status

type BuildkitControllerOpts

type BuildkitControllerOpts struct {
	WorkerController       *bkworker.Controller
	SessionManager         *session.Manager
	CacheManager           solver.CacheManager
	ContentStore           *containerdsnapshot.Store
	LeaseManager           *leaseutil.Manager
	Entitlements           []string
	EngineName             string
	Frontends              map[string]frontend.Frontend
	TraceCollector         trace.SpanExporter
	UpstreamCacheExporters map[string]remotecache.ResolveCacheExporterFunc
	UpstreamCacheImporters map[string]remotecache.ResolveCacheImporterFunc
	DNSConfig              *oci.DNSConfig
}

type DaggerServer

type DaggerServer struct {
	// contains filtered or unexported fields
}

func NewDaggerServer

func NewDaggerServer(
	ctx context.Context,
	bkClient *buildkit.Client,
	worker bkworker.Worker,
	caller bksession.Caller,
	serverID string,
	secretStore *core.SecretStore,
	authProvider *auth.RegistryAuthProvider,
	rootLabels []pipeline.Label,
	cloudToken string,
	doNotTrack bool,
) (*DaggerServer, error)

func (*DaggerServer) Close

func (srv *DaggerServer) Close()

func (*DaggerServer) HTTPHandlerForClient

func (srv *DaggerServer) HTTPHandlerForClient(clientMetadata *engine.ClientMetadata, conn net.Conn, lg *logrus.Entry) (http.Handler, <-chan struct{}, error)

func (*DaggerServer) LogMetrics

func (srv *DaggerServer) LogMetrics(l *logrus.Entry) *logrus.Entry

func (*DaggerServer) ServeClientConn

func (srv *DaggerServer) ServeClientConn(
	ctx context.Context,
	clientMetadata *engine.ClientMetadata,
	conn net.Conn,
) error

func (*DaggerServer) Wait

func (srv *DaggerServer) Wait(ctx context.Context) error

Jump to

Keyboard shortcuts

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