File tree Expand file tree Collapse file tree 3 files changed +29
-0
lines changed Expand file tree Collapse file tree 3 files changed +29
-0
lines changed Original file line number Diff line number Diff line change 1+ module github.com/st2projects/ssh-sentinel-core
2+
3+ go 1.18
Original file line number Diff line number Diff line change 1+ package model
2+
3+ type KeySignRequest struct {
4+ Username string `json:"username"`
5+ APIKey string `json:"api_key"`
6+ Principals []string `json:"principals"`
7+ Key string `json:"key"`
8+ }
Original file line number Diff line number Diff line change 1+ package model
2+
3+ type KeySignResponse struct {
4+ Success bool `json:"success"`
5+ Message any `json:"message"`
6+ SignedKey string `json:"signedKey"`
7+ NotBefore uint64 `json:"notBefore"`
8+ NotAfter uint64 `json:"notAfter"`
9+ }
10+
11+ func NewKeySignResponse (success bool , message any ) * KeySignResponse {
12+ return & KeySignResponse {
13+ success ,
14+ message ,
15+ "" ,
16+ 0 ,
17+ 0 }
18+ }
You can’t perform that action at this time.
0 commit comments