implemented simple ssh dual control
This commit is contained in:
parent
690613cab8
commit
60012be942
12 changed files with 446 additions and 20 deletions
|
|
@ -9,9 +9,12 @@ import (
|
|||
)
|
||||
|
||||
const (
|
||||
keyID = schema.KeyPath + core.IDRoute
|
||||
keyReqID = schema.KeyPath + core.IDRoute + core.AIDRoute
|
||||
reqID = schema.ReqPath + core.IDRoute
|
||||
keyID = schema.KeyPath + core.IDRoute
|
||||
keyReqID = schema.KeyPath + core.IDRoute + core.AIDRoute
|
||||
reqID = schema.ReqPath + core.IDRoute
|
||||
accessID = schema.AccessPath + core.IDRoute
|
||||
access = schema.AccessPath + core.HostRoute + core.UserRoute
|
||||
accessAID = schema.AccessPath + core.HostRoute + core.UserRoute + core.AIDRoute
|
||||
)
|
||||
|
||||
var Routes = []types.Route{
|
||||
|
|
@ -50,4 +53,25 @@ var Routes = []types.Route{
|
|||
Handler: local(reqHandler),
|
||||
Methods: []string{"PUT", "DELETE"},
|
||||
},
|
||||
// SSH
|
||||
{
|
||||
Path: accessID,
|
||||
Handler: local(accessReqHandler),
|
||||
Methods: []string{"PUT", "DELETE"},
|
||||
},
|
||||
{
|
||||
Path: schema.AccessPath,
|
||||
Handler: local(accessListHandler),
|
||||
Methods: []string{"GET"},
|
||||
},
|
||||
{
|
||||
Path: access,
|
||||
Handler: accessHandler,
|
||||
Methods: []string{"GET"},
|
||||
},
|
||||
{
|
||||
Path: accessAID,
|
||||
Handler: accessHandler,
|
||||
Methods: []string{"GET"},
|
||||
},
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue