user

package
v0.0.0-...-495e01f Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 12, 2023 License: Apache-2.0 Imports: 0 Imported by: 0

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

type UserLoginInfo

type UserLoginInfo struct {
	ID        int64  `json:"id"`
	Name      string `json:"name"`
	Token     string `json:"token"`
	MfaStatus string `json:"mfaStatus"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL