juju: github.com/juju/juju/apiserver/facades/client/keymanager Index | Files | Directories

package keymanager

import "github.com/juju/juju/apiserver/facades/client/keymanager"

Index

Package Files

keymanager.go

Variables

var RunSSHImportId = runSSHImportId

Override for testing

type KeyManager Uses

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 Uses

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

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

func NewKeyManagerAPI Uses

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

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

func (*KeyManagerAPI) AddKeys Uses

func (api *KeyManagerAPI) AddKeys(arg params.ModifyUserSSHKeys) (params.ErrorResults, error)

AddKeys adds new authorised ssh keys for the specified user.

func (*KeyManagerAPI) DeleteKeys Uses

func (api *KeyManagerAPI) DeleteKeys(arg params.ModifyUserSSHKeys) (params.ErrorResults, error)

DeleteKeys deletes the authorised ssh keys for the specified user.

func (*KeyManagerAPI) ImportKeys Uses

func (api *KeyManagerAPI) ImportKeys(arg params.ModifyUserSSHKeys) (params.ErrorResults, error)

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

func (*KeyManagerAPI) ListKeys Uses

func (api *KeyManagerAPI) ListKeys(arg params.ListSSHKeys) (params.StringsResults, error)

ListKeys returns the authorised ssh keys for the specified users.

Directories

PathSynopsis
testing

Package keymanager imports 14 packages (graph) and is imported by 3 packages. Updated 2019-08-23. Refresh now. Tools for package owners.