DigitalOcean-0.1.1.0: A client library for the DigitalOcean API

Safe HaskellNone
LanguageHaskell2010

Net.DigitalOcean.SSHKeys

Contents

Synopsis

Documentation

data SSHKey Source

An SSH public key stored by Digital Ocean

Constructors

SSHKey 

SSHKey Actions

getSSHKeys :: (Error e, MonadError e m, MonadIO m) => Config -> m [SSHKey] Source

Returns all SSH keys associated with the account

DO documentation

getSSHKey :: (Error e, MonadError e m, MonadIO m) => Text -> Config -> m SSHKey Source

Returns the ssh key with the given id or fingerprint

DO documentation

createSSHKey :: (Error e, MonadError e m, MonadIO m) => Text -> Text -> Config -> m SSHKey Source

Creates a new SSH key with the given name and contents

DO documentation

renameSSHKey :: (Error e, MonadError e m, MonadIO m) => Text -> Text -> Config -> m SSHKey Source

Renames an existing SSH key

DO documentation

deleteSSHKey :: (Error e, MonadError e m, MonadIO m) => Text -> Config -> m () Source

Deletes an SSH key

DO documentation

Lens Accessors