daemonoperation

package
v0.182.6 Latest Latest
Warning

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

Go to latest
Published: Oct 6, 2026 License: Apache-2.0 Imports: 8 Imported by: 0

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