keyupdater

package
v0.0.0-...-b0bff92 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

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 NewKeyUpdaterAPI

func NewKeyUpdaterAPI(
	st *state.State,
	resources facade.Resources,
	authorizer facade.Authorizer,
) (*KeyUpdaterAPI, error)

NewKeyUpdaterAPI creates a new server-side keyupdater 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