host

package
v0.2.13 Latest Latest
Warning

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

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

View Source
var ArtifactRoot string

Functions

func ConfigureNetwork

func ConfigureNetwork(ctx context.Context, endpoint *link.Link, address link.EndpointAddress, id protocol.RequestID, selected protocol.NetworkSelection) error

func StopProcess

func StopProcess(ctx context.Context, pid uint32, startedAtSecs uint64, force bool) error

StopProcess signals one process that the detailed metrics listed. The start time is part of its identity, so a reused process ID is refused. Operating system permissions decide whether the signal is delivered.

Types

type DeploymentOptions

type DeploymentOptions struct {
	ProgramRoot string
	Profile     string
	ServicePath string
	CommandPath string
	Release     identity.HostRelease
}

type Installations

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

func NewInstallations

func NewInstallations(options DeploymentOptions) *Installations

func (*Installations) Begin

func (owner *Installations) Begin(ctx context.Context, caller protocol.NodeID, request protocol.Request) (context.Context, func(), error)

func (*Installations) Cancel

func (owner *Installations) Cancel(caller protocol.NodeID, request protocol.RequestID, plugin *protocol.PluginContext) error

func (*Installations) Execute

func (owner *Installations) Execute(ctx context.Context, connection *cryptossh.Client, endpoint *link.Link, caller protocol.NodeID, request protocol.RequestID, expected *protocol.NodeID, selection *protocol.NetworkSelection) (protocol.SshOutcome, error)

func (*Installations) Progress

func (owner *Installations) Progress(caller protocol.NodeID, request protocol.RequestID, stage string)

func (*Installations) Read

type Sampler

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

func NewSampler

func NewSampler() *Sampler

func (*Sampler) Inspect

func (sampler *Sampler) Inspect(ctx context.Context, node protocol.NodeID) (protocol.HostInfo, error)

func (*Sampler) Sample

func (sampler *Sampler) Sample(ctx context.Context, node protocol.NodeID, detailed bool) (protocol.HostMetricsSample, error)

Jump to

Keyboard shortcuts

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