keys

package
v0.0.0-...-c9ffa05 Latest Latest
Warning

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

Go to latest
Published: Feb 28, 2018 License: MIT Imports: 4 Imported by: 2

Documentation

Overview

Package keys provides methods for managing a user's ssh keys.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Delete

func Delete(c *deis.Client, keyID string) error

Delete removes a user's ssh key. The key ID will be the key comment, usually the email or user@hostname of the user. The exact keyID can be retrieved with List()

func List

func List(c *deis.Client, results int) (api.Keys, int, error)

List lists a user's ssh keys.

func New

func New(c *deis.Client, id string, pubKey string) (api.Key, error)

New adds a new ssh key for the user. This is used for authenting with the git remote for the builder. This key must be unique to the current user, or the error deis.ErrDuplicateKey will be returned.

Types

This section is empty.

Jump to

Keyboard shortcuts

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