Documentation
¶
Index ¶
- func CLIUserCreate(username string, email string, firstname string, lastname string) (*types.UserResponse, error)
- func CLIUserShow(username, string) (*types.UserResponse, error)
- func CreateUser(u *types.UserRequest) (*types.UserResponse, error)
- func GetUser(username string) (*types.UserResponse, error)
- func NewUserRequest(username string, email string, firstname string, lastname string) (*types.UserRequest, error)
- type APIRequest
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CLIUserCreate ¶
func CLIUserShow ¶
func CLIUserShow(username, string) (*types.UserResponse, error)
func CreateUser ¶
func CreateUser(u *types.UserRequest) (*types.UserResponse, error)
func NewUserRequest ¶
func NewUserRequest(username string, email string, firstname string, lastname string) (*types.UserRequest, error)
NewUserRequest validates user input and returns a UserRequest struct
Types ¶
type APIRequest ¶
func NewAPIRequest ¶
func NewAPIRequest(endpoint string, method string, data types.APIRequestable) (*APIRequest, error)
Click to show internal directories.
Click to hide internal directories.