keymanager

package
v0.0.0-...-a002913 Latest Latest
Warning

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

Go to latest
Published: Oct 2, 2015 License: AGPL-3.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var RunSSHImportId = runSSHImportId

Override for testing

Functions

This section is empty.

Types

type KeyManager

type KeyManager interface {
	ListKeys(arg params.ListSSHKeys) (params.StringsResults, error)
	AddKeys(arg params.ModifyUserSSHKeys) (params.ErrorResults, error)
	DeleteKeys(arg params.ModifyUserSSHKeys) (params.ErrorResults, error)
	ImportKeys(arg params.ModifyUserSSHKeys) (params.ErrorResults, error)
}

KeyManager defines the methods on the keymanager API end point.

type KeyManagerAPI

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

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

func NewKeyManagerAPI

func NewKeyManagerAPI(st *state.State, resources *common.Resources, authorizer common.Authorizer) (*KeyManagerAPI, error)

NewKeyManagerAPI creates a new server-side keyupdater API end point.

func (*KeyManagerAPI) AddKeys

AddKeys adds new authorised ssh keys for the specified user.

func (*KeyManagerAPI) DeleteKeys

DeleteKeys deletes the authorised ssh keys for the specified user.

func (*KeyManagerAPI) ImportKeys

ImportKeys imports new authorised ssh keys from the specified key ids for the specified user.

func (*KeyManagerAPI) ListKeys

ListKeys returns the authorised ssh keys for the specified users.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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