mirror of
https://github.com/veops/oneterm.git
synced 2025-10-04 23:12:45 +08:00
feat: add ssh server
This commit is contained in:
20
backend/pkg/proto/ssh/api/api.go
Normal file
20
backend/pkg/proto/ssh/api/api.go
Normal file
@@ -0,0 +1,20 @@
|
||||
package api
|
||||
|
||||
type Authentication interface {
|
||||
Authenticate() (token string, err error)
|
||||
}
|
||||
|
||||
type Asset interface {
|
||||
Groups() (any, error)
|
||||
Lists() (any, error)
|
||||
}
|
||||
|
||||
type Audit interface {
|
||||
NewSession(data any) error
|
||||
}
|
||||
|
||||
type Core interface {
|
||||
Authentication
|
||||
Audit
|
||||
Asset
|
||||
}
|
Reference in New Issue
Block a user