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.