userservice

package
v4.2.1-2+incompatible Latest Latest
Warning

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

Go to latest
Published: Jan 30, 2020 License: Apache-2.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AlterRole

func AlterRole(conn *sql.DB, username, password string) (sql.Result, error)

func CreateUser

func CreateUser(request *msgs.CreateUserRequest, pgouser string) msgs.CreateUserResponse

CreateUser ... pgo create user mycluster --username=user1 pgo create user --username=user1 --managed --all pgo create user --username=user1 --managed --selector=name=mycluster

func CreateUserHandler

func CreateUserHandler(w http.ResponseWriter, r *http.Request)

CreateUserHandler ... pgo create user

func DeleteUser

func DeleteUser(request *msgs.DeleteUserRequest, pgouser string) msgs.DeleteUserResponse

DeleteUser ...

func DeleteUserHandler

func DeleteUserHandler(w http.ResponseWriter, r *http.Request)

DeleteUserHandler ... pgo delete user someuser parameters name parameters selector returns a DeleteUserResponse

func GeneratePassword

func GeneratePassword(length int) string

GeneratePassword generate a password of a given length

func GeneratePasswordExpireDate

func GeneratePasswordExpireDate(daysFromNow int) string

GeneratePasswordExpireDate ...

func ShowUser

func ShowUser(request *msgs.ShowUserRequest) msgs.ShowUserResponse

ShowUser ...

func ShowUserHandler

func ShowUserHandler(w http.ResponseWriter, r *http.Request)

ShowUserHandler ... pgo show user parameters selector returns a ShowUserResponse

func UpdateUser

func UpdateUser(request *msgs.UpdateUserRequest, pgouser string) msgs.UpdateUserResponse
User ...

pgo user --change-password=bob --db=userdb

--expired=7 --selector=env=research --update-passwords=true
--valid-days=30

func UpdateUserHandler

func UpdateUserHandler(w http.ResponseWriter, r *http.Request)

UserHandler ... pgo user XXXX

Types

This section is empty.

Jump to

Keyboard shortcuts

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