userservice

package
v4.3.0-rc.1+incompatible Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateUser

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

CreatueUser allows one to create a PostgreSQL user in one of more PostgreSQL clusters, and provides the abilit to do the following:

- set a password or have one automatically generated - set a valid period where the account/password is activ// - setting password expirations - and more

This corresponds to the `pgo update user` command

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 deletes a PostgreSQL user from clusters

func DeleteUserHandler

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

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

func ShowUser

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

ShowUser lets the caller view details about PostgreSQL users across the PostgreSQL clusters that are queried. This includes details such as:

- when the password expires - if the user is active or not

etc.

func ShowUserHandler

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

ShowUserHandler allows one to display information about PostgreSQL uesrs that are in a PostgreSQL cluster

func UpdateUser

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

UpdateUser allows one to update a PostgreSQL user across PostgreSQL clusters, and provides the ability to perform inline various updates, including:

- resetting passwords - disabling accounts - setting password expirations - and more

This corresponds to the `pgo update user` command

func UpdateUserHandler

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

UserHandler provides a means to update a PostgreSQL user pgo update user

Types

This section is empty.

Jump to

Keyboard shortcuts

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