Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
slapos.core
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Xiaowu Zhang
slapos.core
Commits
aafb86eb
Commit
aafb86eb
authored
Oct 16, 2012
by
Łukasz Nowak
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Expose bindings for certificate manipulation.
parent
3cb292c5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
0 deletions
+17
-0
slapos/slap/slap.py
slapos/slap/slap.py
+17
-0
No files found.
slapos/slap/slap.py
View file @
aafb86eb
...
@@ -286,6 +286,12 @@ class Computer(SlapDocument):
...
@@ -286,6 +286,12 @@ class Computer(SlapDocument):
'computer_id'
:
self
.
_computer_id
,
'computer_id'
:
self
.
_computer_id
,
'message'
:
message
})
'message'
:
message
})
def
getCertificateDict
(
self
):
return
{
'key'
:
getattr
(
self
,
'_key'
,
None
),
'certificate'
:
getattr
(
self
,
'_certificate'
,
None
)
}
def
_syncComputerPartitionInformation
(
func
):
def
_syncComputerPartitionInformation
(
func
):
"""
"""
Synchronize computer partition object with server information
Synchronize computer partition object with server information
...
@@ -681,6 +687,17 @@ class slap:
...
@@ -681,6 +687,17 @@ class slap:
computer
=
xml_marshaller
.
loads
(
xml
)
computer
=
xml_marshaller
.
loads
(
xml
)
return
computer
return
computer
def
revokeComputerCertificate
(
self
,
computer_id
):
self
.
_connection_helper
.
POST
(
'/revokeComputerCertificate'
,
{
'computer_id'
:
computer_id
})
def
getComputerCertificate
(
self
,
computer_id
):
self
.
_connection_helper
.
POST
(
'/getComputerCertificate'
,
{
'computer_id'
:
computer_id
})
xml
=
self
.
_connection_helper
.
response
.
read
()
computer
=
xml_marshaller
.
loads
(
xml
)
return
computer
def
registerComputer
(
self
,
computer_guid
):
def
registerComputer
(
self
,
computer_guid
):
"""
"""
Registers connected representation of computer and
Registers connected representation of computer and
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment