Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
4d37fa6
commit f3ee633
Showing
6 changed files
with
45 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
""" | ||
Bareos specific Fuse node. | ||
""" | ||
|
||
from bareos.fuse.node.directory import Directory | ||
from bareos.fuse.node.job import Job | ||
|
||
class JobsList(Directory): | ||
def __init__(self, bsock, name, selector = ''): | ||
super(JobsList, self).__init__(bsock, name) | ||
self.selector = selector | ||
|
||
def do_update(self): | ||
data = self.bsock.call("llist jobs %s" % (self.selector)) | ||
jobs = data['jobs'] | ||
for i in jobs: | ||
self.add_subnode(Job(self.bsock, i)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
""" | ||
Bareos specific Fuse node. | ||
""" | ||
|
||
from bareos.fuse.node.directory import Directory | ||
from bareos.fuse.node.job import Job | ||
|
||
class JobsName(Directory): | ||
def __init__(self, bsock, name): | ||
super(JobsName, self).__init__(bsock, "job="+str(name)) | ||
self.jobname=name | ||
|
||
def do_update(self): | ||
data = self.bsock.call("llist job=%s" % (self.jobname)) | ||
jobs = data['jobs'] | ||
for i in jobs: | ||
self.add_subnode(Job(self.bsock, i)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters