Safe Haskell | None |
---|---|
Language | Haskell2010 |
- data SSHKey = SSHKey {
- _keyId :: !Int
- _keyFingerprint :: !Text
- _keyPublicKey :: !Text
- _keyName :: !Text
- getSSHKeys :: (Error e, MonadError e m, MonadIO m) => Config -> m [SSHKey]
- getSSHKey :: (Error e, MonadError e m, MonadIO m) => Text -> Config -> m SSHKey
- createSSHKey :: (Error e, MonadError e m, MonadIO m) => Text -> Text -> Config -> m SSHKey
- renameSSHKey :: (Error e, MonadError e m, MonadIO m) => Text -> Text -> Config -> m SSHKey
- deleteSSHKey :: (Error e, MonadError e m, MonadIO m) => Text -> Config -> m ()
- keyId :: Lens' SSHKey Int
- keyFingerprint :: Lens' SSHKey Text
- keyPublicKey :: Lens' SSHKey Text
- keyName :: Lens' SSHKey Text
Documentation
An SSH public key stored by Digital Ocean
SSHKey | |
|
SSHKey Actions
getSSHKeys :: (Error e, MonadError e m, MonadIO m) => Config -> m [SSHKey] Source
Returns all SSH keys associated with the account
getSSHKey :: (Error e, MonadError e m, MonadIO m) => Text -> Config -> m SSHKey Source
Returns the ssh key with the given id or fingerprint
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
renameSSHKey :: (Error e, MonadError e m, MonadIO m) => Text -> Text -> Config -> m SSHKey Source
Renames an existing SSH key
deleteSSHKey :: (Error e, MonadError e m, MonadIO m) => Text -> Config -> m () Source
Deletes an SSH key