juju: github.com/juju/juju/api/keymanager Index | Files

package keymanager

import "github.com/juju/juju/api/keymanager"

Index

Package Files

client.go

type Client Uses

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 Uses

func NewClient(st base.APICallCloser) *Client

NewClient returns a new keymanager client.

func (*Client) AddKeys Uses

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

AddKeys adds the authorised ssh keys for the specified user.

func (*Client) DeleteKeys Uses

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

DeleteKeys deletes the authorised ssh keys for the specified user.

func (*Client) ImportKeys Uses

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 Uses

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

ListKeys returns the authorised ssh keys for the specified users.

Package keymanager imports 3 packages (graph) and is imported by 50 packages. Updated 2018-06-28. Refresh now. Tools for package owners.