hostkeyreporter

package
v0.0.0-...-56cb166 Latest Latest
Warning

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

Go to latest
Published: Feb 19, 2025 License: AGPL-3.0 Imports: 4 Imported by: 0

Documentation

Overview

Package hostkeyreporter implements the client-side API facade used by the hostkeyreporter worker.

Index

Constants

This section is empty.

Variables

View Source
var WithTracer = base.WithTracer

WithTracer returns an Option that configures the Client to use the supplied tracer.

Functions

This section is empty.

Types

type Facade

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

Facade provides access to the HostKeyReporter API facade.

func NewFacade

func NewFacade(caller base.APICaller, options ...Option) *Facade

NewFacade creates a new client-side HostKeyReporter facade.

func (*Facade) ReportKeys

func (f *Facade) ReportKeys(ctx context.Context, machineId string, publicKeys []string) error

ReportKeys reports the public SSH host keys for a machine to the controller. The keys should be in the same format as the sshd host key files, one entry per key.

type Option

type Option = base.Option

Option is a function that can be used to configure a Client.

Jump to

Keyboard shortcuts

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