installations

package
v0.2.10 Latest Latest
Warning

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

Go to latest
Published: Nov 23, 2026 License: Apache-2.0 Imports: 9 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 Queue

type Queue struct {

	// Working, when set, brackets every installation while it runs. Short
	// plugin commands share the supervisor and are not counted as work.
	Working func() func()
	// contains filtered or unexported fields
}

func New

func New(owner *tasks.Supervisor, node protocol.NodeID, closed <-chan struct{}) *Queue

func (*Queue) Dismiss

func (queue *Queue) Dismiss(caller protocol.NodeID, request protocol.RequestID, plugin *protocol.PluginContext) error

func (*Queue) Read

func (queue *Queue) Read(caller protocol.NodeID, requests []protocol.RequestID, plugin *protocol.PluginContext) ([]protocol.InstallationTask, error)

func (*Queue) Submit

func (queue *Queue) Submit(caller protocol.NodeID, request protocol.Request, resource protocol.InstallationResource, observe bool, work func(context.Context, Report) link.Response) error

func (*Queue) Subscribe

func (queue *Queue) Subscribe(caller protocol.NodeID) link.Subscription

func (*Queue) SubscribeFor

func (queue *Queue) SubscribeFor(caller protocol.NodeID, requests []protocol.RequestID, scope protocol.PluginContext) (link.Subscription, error)

Jump to

Keyboard shortcuts

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