keymanager

package
v0.0.0-...-2608902 Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2016 License: AGPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	base.ClientFacade
	// contains filtered or unexported fields
}

Client provides access to the keymanager, used to add/delete/list authorised ssh keys.

func NewClient

func NewClient(st base.APICallCloser) *Client

NewClient returns a new keymanager client.

func (*Client) AddKeys

func (c *Client) AddKeys(user string, keys ...string) ([]params.ErrorResult, error)

AddKeys adds the authorised ssh keys for the specified user.

func (*Client) DeleteKeys

func (c *Client) DeleteKeys(user string, keys ...string) ([]params.ErrorResult, error)

DeleteKeys deletes the authorised ssh keys for the specified user.

func (*Client) ImportKeys

func (c *Client) ImportKeys(user string, keyIds ...string) ([]params.ErrorResult, error)

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

func (*Client) ListKeys

func (c *Client) ListKeys(mode ssh.ListMode, users ...string) ([]params.StringsResult, error)

ListKeys returns the authorised ssh keys for the specified users.

Jump to

Keyboard shortcuts

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