mirror of
https://github.com/kellyjonbrazil/jc.git
synced 2025-06-19 00:17:51 +02:00
update docs
This commit is contained in:
@ -51,6 +51,7 @@ pydocmd simple jc.parsers.systemctl_lj+ > ../docs/parsers/systemctl_lj.md
|
||||
pydocmd simple jc.parsers.systemctl_ls+ > ../docs/parsers/systemctl_ls.md
|
||||
pydocmd simple jc.parsers.systemctl_luf+ > ../docs/parsers/systemctl_luf.md
|
||||
pydocmd simple jc.parsers.timedatectl+ > ../docs/parsers/timedatectl.md
|
||||
pydocmd simple jc.parsers.tracepath+ > ../docs/parsers/tracepath.md
|
||||
pydocmd simple jc.parsers.traceroute+ > ../docs/parsers/traceroute.md
|
||||
pydocmd simple jc.parsers.uname+ > ../docs/parsers/uname.md
|
||||
pydocmd simple jc.parsers.uptime+ > ../docs/parsers/uptime.md
|
||||
|
@ -101,20 +101,6 @@ Abstraction of a traceroute result.
|
||||
Hop(self, idx)
|
||||
```
|
||||
|
||||
Abstraction of a hop in a traceroute.
|
||||
|
||||
## Probe
|
||||
```python
|
||||
Probe(self, name=None, ip=None, asn=None, rtt=None, annotation=None)
|
||||
```
|
||||
|
||||
Abstraction of a probe in a traceroute.
|
||||
|
||||
## loads
|
||||
```python
|
||||
loads(data)
|
||||
```
|
||||
Parser entry point. Parses the output of a traceroute execution
|
||||
## process
|
||||
```python
|
||||
process(proc_data)
|
||||
|
@ -160,10 +160,6 @@ class Traceroute(object):
|
||||
|
||||
|
||||
class Hop(object):
|
||||
"""
|
||||
Abstraction of a hop in a traceroute.
|
||||
"""
|
||||
|
||||
def __init__(self, idx):
|
||||
self.idx = idx # Hop count, starting at 1 (usually)
|
||||
self.probes = [] # Series of Probe instances
|
||||
@ -191,10 +187,6 @@ class Hop(object):
|
||||
|
||||
|
||||
class Probe(object):
|
||||
"""
|
||||
Abstraction of a probe in a traceroute.
|
||||
"""
|
||||
|
||||
def __init__(self, name=None, ip=None, asn=None, rtt=None, annotation=None):
|
||||
self.name = name
|
||||
self.ip = ip
|
||||
@ -217,8 +209,6 @@ class Probe(object):
|
||||
|
||||
|
||||
def loads(data):
|
||||
"""Parser entry point. Parses the output of a traceroute execution"""
|
||||
|
||||
lines = data.splitlines()
|
||||
|
||||
# Get headers
|
||||
|
Reference in New Issue
Block a user