Search bar offers the following options:
Term presence. The below example searches for documents that
must contain “foo”, might contain “bar” and must not contain “baz”:
+foo bar -baz
Wildcards. The below example searches for documents with words beginning with “foo”:
Search in specific fields. The following search matches all objects
in "twisted.mail" that matches “search”:
Possible fields: 'name', 'qname' (fully qualified name), 'docstring', and 'kind'. Last two fields are only applicable if "search in docstrings" is enabled.
Fuzzy matches. The following search matches all documents
that have a word within 1 edit distance of “foo”:
Results provided by Lunr.js
class KnownHostsFile: (source)
A structured representation of an OpenSSH-format ~/.ssh/known_hosts file.
||Create a new
||Create a new, empty KnownHostsFile.|
||Add a new
||Check for an entry with matching hostname and key.|
||Iterate over the host entries in this file.|
||Verify the given host key for the given IP and host, asking for confirmation from, and notifying, the given UI about changes to this file.|
||A list of
||A flag indicating whether the current contents of the save path will be disregarded and potentially overwritten or not. If True, this will be done. If False, entries in the save path will be read and new entries will be saved by appending rather than overwriting.|
||See savePath parameter of
def fromPath(cls, path): (source) ¶
Create a new
KnownHostsFile, potentially reading existing known hosts information from the given file.
|path:||A path object to use for both reading contents from and later saving to. If no file exists at this path, it is not an error; a |
Create a new, empty KnownHostsFile.
Unless you want to erase the current contents of savePath, you want to use
Add a new
HashedEntry to the key database.
Note that you still need to call
KnownHostsFile.save if you wish these changes to be persisted.
|hostname:||A hostname or IP address literal to associate with the new entry.|
|key:||The public key to associate with the new entry.|
Check for an entry with matching hostname and key.
|hostname:||A hostname or IP address literal to check for.|
|key:||The public key to check for.|
|True if the given hostname and key are present in this file, False if they are not.|
|if the host key found for the given hostname does not match the given key.|
Iterate over the host entries in this file.
|iterable of ||An iterable the elements of which provide |
KnownHostsFile to the path it was loaded from.
Verify the given host key for the given IP and host, asking for confirmation from, and notifying, the given UI about changes to this file.
|ui||The user interface to request an IP address from.|
|hostname||The hostname that the user requested to connect to.|
|ip||The string representation of the IP address that is actually being connected to.|
|key||The public key of the server.|
A list of
IKnownHostEntry providers which have been added to this instance in memory but not yet saved.
A flag indicating whether the current contents of the save path will be disregarded and potentially overwritten or not. If True, this will be done. If False, entries in the save path will be read and new entries will be saved by appending rather than overwriting.