server

package
v2.9.4 Latest Latest
Warning

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

Go to latest
Published: Apr 8, 2024 License: Apache-2.0 Imports: 65 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewDebugServer

func NewDebugServer(env Env) debug.DebugServer

NewDebugServer creates a new server that serves the debug api over GRPC

func NewDumpFS added in v2.7.0

func NewDumpFS(mountPath string) *dumpFS

Types

type DumpFS added in v2.7.0

type DumpFS interface {
	Write(string, func(io.Writer) error) error
	WithPrefix(string) DumpFS
}

type Env added in v2.8.0

type Env struct {
	DB                   *pachsql.DB
	SidecarClient        *client.APIClient
	Name                 string
	GetLokiClient        func() (*loki.Client, error)
	GetKubeClient        func() kubernetes.Interface
	GetDynamicKubeClient func() dynamic.Interface
	Config               pachconfig.Configuration
	TaskService          task.Service

	GetPachClient func(context.Context) *client.APIClient
}

type Worker added in v2.8.0

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

func NewWorker added in v2.8.0

func NewWorker(env WorkerEnv) *Worker

func (*Worker) Run added in v2.8.0

func (w *Worker) Run(ctx context.Context) error

type WorkerEnv added in v2.8.0

type WorkerEnv struct {
	PFS         pfs.APIClient
	TaskService task.Service
}

Directories

Path Synopsis
Package debugstar lets parts of the debug dump machinery be used by Starlark scripts.
Package debugstar lets parts of the debug dump machinery be used by Starlark scripts.

Jump to

Keyboard shortcuts

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