hostkeyreporter

package
v0.0.0-...-9ec3720 Latest Latest
Warning

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

Go to latest
Published: Apr 6, 2021 License: AGPL-3.0 Imports: 7 Imported by: 0

Documentation

Overview

Package hostkeyreporter implements the API facade used by the hostkeyreporter worker.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Backend

type Backend interface {
	SetSSHHostKeys(names.MachineTag, state.SSHHostKeys) error
}

Backend defines the State API used by the hostkeyreporter facade.

type Facade

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

Facade implements the API required by the hostkeyreporter worker.

func New

func New(backend Backend, _ facade.Resources, authorizer facade.Authorizer) (*Facade, error)

New returns a new API facade for the hostkeyreporter worker.

func NewFacade

func NewFacade(st *state.State, res facade.Resources, auth facade.Authorizer) (*Facade, error)

NewFacade wraps New to express the supplied *state.State as a Backend.

func (*Facade) ReportKeys

func (facade *Facade) ReportKeys(args params.SSHHostKeySet) (params.ErrorResults, error)

ReportKeys sets the SSH host keys for one or more entities.

Jump to

Keyboard shortcuts

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