Documentation ¶
Index ¶
- Variables
- type Client
- func (c *Client) AddKeys(ctx context.Context, user string, keys ...string) ([]params.ErrorResult, error)
- func (c *Client) DeleteKeys(ctx context.Context, user string, keys ...string) ([]params.ErrorResult, error)
- func (c *Client) ImportKeys(ctx context.Context, user string, keyIds ...string) ([]params.ErrorResult, error)
- func (c *Client) ListKeys(ctx context.Context, mode ssh.ListMode, users ...string) ([]params.StringsResult, error)
- type Option
Constants ¶
This section is empty.
Variables ¶
View Source
var WithTracer = base.WithTracer
WithTracer returns an Option that configures the Client to use the supplied tracer.
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, options ...Option) *Client
NewClient returns a new keymanager client.
func (*Client) AddKeys ¶
func (c *Client) AddKeys(ctx context.Context, user string, keys ...string) ([]params.ErrorResult, error)
AddKeys adds the authorised ssh keys for the specified user.
func (*Client) DeleteKeys ¶
func (c *Client) DeleteKeys(ctx context.Context, user string, keys ...string) ([]params.ErrorResult, error)
DeleteKeys deletes the authorised ssh keys for the specified user.
func (*Client) ImportKeys ¶
func (c *Client) ImportKeys(ctx context.Context, user string, keyIds ...string) ([]params.ErrorResult, error)
ImportKeys imports the authorised ssh keys with the specified key ids for the specified user.
Click to show internal directories.
Click to hide internal directories.