Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
cta
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Harbor Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
dCache
cta
Commits
0cfaa0c2
Commit
0cfaa0c2
authored
9 years ago
by
Steven Murray
Browse files
Options
Downloads
Patches
Plain Diff
Add the bootstrap method Scheduler::createAdminHostWithoutAuthorizingRequester()
parent
b5b1fd33
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
scheduler/Scheduler.cpp
+10
-0
10 additions, 0 deletions
scheduler/Scheduler.cpp
scheduler/Scheduler.hpp
+18
-2
18 additions, 2 deletions
scheduler/Scheduler.hpp
with
28 additions
and
2 deletions
scheduler/Scheduler.cpp
+
10
−
0
View file @
0cfaa0c2
...
...
@@ -158,6 +158,16 @@ void cta::Scheduler::createAdminHost(
m_db
.
createAdminHost
(
requester
,
hostName
,
comment
);
}
//------------------------------------------------------------------------------
// createAdminHostWithoutAuthorizingRequester
//------------------------------------------------------------------------------
void
cta
::
Scheduler
::
createAdminHostWithoutAuthorizingRequester
(
const
SecurityIdentity
&
requester
,
const
std
::
string
&
hostName
,
const
std
::
string
&
comment
)
{
m_db
.
createAdminHost
(
requester
,
hostName
,
comment
);
}
//------------------------------------------------------------------------------
// deleteAdminHost
//------------------------------------------------------------------------------
...
...
This diff is collapsed.
Click to expand it.
scheduler/Scheduler.hpp
+
18
−
2
View file @
0cfaa0c2
...
...
@@ -188,8 +188,7 @@ public:
/**
* Creates the specified administration host.
*
* @param requester The identity of the user requesting the creation of the
* administration host.
* @param requester The identity of the requester.
* @param hostName The network name of the administration host.
* @param comment The comment describing the administration host.
*/
...
...
@@ -198,6 +197,23 @@ public:
const
std
::
string
&
hostName
,
const
std
::
string
&
comment
);
/**
* Creates the specified administration host with performing any authorisation
* checks.
*
* This method provides a way to bootstrap the list of administration hosts.
* This method does not perform any authorizations checks therefore please
* take any necessary precautions before calling this method.
*
* @param requester The identity of the requester.
* @param hostName The network name of the administration host.
* @param comment The comment describing the administration host.
*/
void
createAdminHostWithoutAuthorizingRequester
(
const
SecurityIdentity
&
requester
,
const
std
::
string
&
hostName
,
const
std
::
string
&
comment
);
/**
* Deletes the specified administration host.
*
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment