userservice

package
v4.3.3+incompatible Latest Latest
Warning

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

Go to latest
Published: Aug 17, 2020 License: Apache-2.0 Imports: 17 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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