|
-
-
-
-
- package structs
-
- import (
- "time"
- )
-
-
- type DeployKey struct {
- ID int64 `json:"id"`
- KeyID int64 `json:"key_id"`
- Key string `json:"key"`
- URL string `json:"url"`
- Title string `json:"title"`
- Fingerprint string `json:"fingerprint"`
-
- Created time.Time `json:"created_at"`
- ReadOnly bool `json:"read_only"`
- Repository *Repository `json:"repository,omitempty"`
- }
-
-
- type CreateKeyOption struct {
-
-
-
-
- Title string `json:"title" binding:"Required"`
-
-
-
-
- Key string `json:"key" binding:"Required"`
-
-
-
- ReadOnly bool `json:"read_only"`
- }
|