daemonoperation

package
v0.205.2 Latest Latest
Warning

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

Go to latest
Published: Nov 8, 2026 License: Apache-2.0 Imports: 8 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Service

type Service struct {
	Client    func(context.Context, string, io.Writer) (daemonv1connect.DaemonServiceClient, error)
	RawPolicy func(string) (bool, string, error)
}

func (Service) Cancel

func (s Service) Cancel(ctx context.Context, root, id string, progress io.Writer) (*daemonv1.Operation, error)

func (Service) Get

func (s Service) Get(ctx context.Context, root, id string, progress io.Writer) (*daemonv1.Operation, error)

func (Service) RequireRawPolicy

func (service Service) RequireRawPolicy(root string) error

func (Service) Submit

func (s Service) Submit(ctx context.Context, r SubmitRequest, progress io.Writer) (*daemonv1.Operation, error)

func (Service) Wait

func (s Service) Wait(ctx context.Context, root, id, cursor string, progress io.Writer) (*daemonv1.Operation, error)

type SubmitRequest

type SubmitRequest struct {
	ProjectsRoot, Cwd, IdempotencyKey string
	Argv                              []string
	CPUUnits                          uint32
	Wait                              bool
}

Jump to

Keyboard shortcuts

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