deployer

package
v0.1.6 Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2026 License: MIT Imports: 12 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

Overview

Package deployer installs a key's public half on its target(s) and records the deployment. A key name maps to the host(s) that reference it (one per_service, many shared); each host's provider does the install (named adapter -> generic ssh -> manual) and the result is recorded in the inventory keyed by fingerprint.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DeployRecord

type DeployRecord struct {
	Target   string
	Provider string
	Method   string
	Verified bool
	Detail   string
	Error    bool
}

DeployRecord is one target's deploy outcome.

type DeployReport

type DeployReport struct {
	KeyName     string
	Fingerprint string
	Records     []DeployRecord
}

DeployReport summarizes a deploy run.

func (DeployReport) AnyError

func (r DeployReport) AnyError() bool

AnyError reports whether any target's deploy was attempted and failed.

func (DeployReport) Format

func (r DeployReport) Format() string

Format renders the deploy summary (mirrors DeployReport.format).

type Deployer

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

Deployer deploys keys to their targets.

func New

New builds a Deployer.

func (*Deployer) Deploy

func (d *Deployer) Deploy(selector, targetAlias string) (DeployReport, error)

Deploy installs key keyName on its target(s) (all hosts using it, or just targetAlias) and records each deployment. Mirrors Deployer.deploy.

func (*Deployer) Unattended

func (d *Deployer) Unattended(w io.Writer) *Deployer

Unattended makes the deploy run with nobody to answer a prompt, writing the output of ssh and ssh-copy-id to w. The web UI deploys this way.

Jump to

Keyboard shortcuts

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