agenthttp

package
v0.0.0-...-9190965 Latest Latest
Warning

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

Go to latest
Published: Jun 16, 2022 License: Apache-2.0 Imports: 6 Imported by: 1

Documentation

Overview

Package agenthttp contains a simple HTTP handler that, when requested, will return a snapshot of an agent's snapshot at that moment.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(a *agent.Agent) http.Handler

New creates a new http.Handler that returns snapshots for the given agent at the root path. The snapshot generated is also accompanied by the agents config that was used to create the agent at the time it was created. Secrets keys in the config are transformed into public keys.

Types

This section is empty.

Jump to

Keyboard shortcuts

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