keyupdater

package
v0.0.0-...-e653fdf Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2024 License: AGPL-3.0 Imports: 10 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Register

func Register(registry facade.FacadeRegistry)

Register is called to expose a package of facades onto a given registry.

Types

type KeyUpdater

type KeyUpdater interface {
	AuthorisedKeys(args params.Entities) (params.StringsResults, error)
	WatchAuthorisedKeys(args params.Entities) (params.NotifyWatchResults, error)
}

KeyUpdater defines the methods on the keyupdater API end point.

type KeyUpdaterAPI

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

KeyUpdaterAPI implements the KeyUpdater interface and is the concrete implementation of the api end point.

func (*KeyUpdaterAPI) AuthorisedKeys

func (api *KeyUpdaterAPI) AuthorisedKeys(arg params.Entities) (params.StringsResults, error)

AuthorisedKeys reports the authorised ssh keys for the specified machines. The current implementation relies on global authorised keys being stored in the model config. This will change as new user management and authorisation functionality is added.

func (*KeyUpdaterAPI) WatchAuthorisedKeys

func (api *KeyUpdaterAPI) WatchAuthorisedKeys(arg params.Entities) (params.NotifyWatchResults, error)

WatchAuthorisedKeys starts a watcher to track changes to the authorised ssh keys for the specified machines. The current implementation relies on global authorised keys being stored in the model config. This will change as new user management and authorisation functionality is added.

Jump to

Keyboard shortcuts

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