Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AddOption ¶
type AddOption struct { // Title of the key to add // // required: true // unique: true //Title string `json:"title" binding:"Required"` //// An armored SSH key to add //// //// required: true //// unique: true //Key string `json:"key" binding:"Required"` //// Describe if the key has only read access or read/write //// //// required: false Name string `binding:"Required;name;MaxSize(40)"` //Email string `binding:"Required;MaxSize(254)"` Password string `binding:"MaxSize(255)"` Retype string }
CreateKeyOption options when creating a key
type DeleteOption ¶
type DeleteOption struct { // Title of the key to add // // required: true // unique: true //Title string `json:"title" binding:"Required"` //// An armored SSH key to add //// //// required: true //// unique: true //Key string `json:"key" binding:"Required"` //// Describe if the key has only read access or read/write //// //// required: false Id int64 `binding:"Required;Username;MaxSize(40)"` }
type LoginOption ¶
type LoginOption struct { // Title of the key to add // // required: true // unique: true //Title string `json:"title" binding:"Required"` //// An armored SSH key to add //// //// required: true //// unique: true //Key string `json:"key" binding:"Required"` //// Describe if the key has only read access or read/write //// //// required: false //ReadOnly bool `json:"read_only"` Name string `binding:"Required;name;MaxSize(40)"` //Email string `binding:"Required;MaxSize(254)"` Password string `binding:"MaxSize(255)"` }
CreateKeyOption options when creating a key
Click to show internal directories.
Click to hide internal directories.