users

package
v1.7.1 Latest Latest
Warning

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

Go to latest
Published: Feb 5, 2021 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Manager

type Manager struct {
	// contains filtered or unexported fields
}

func NewManager

func NewManager(addr string, user, pass string) (Manager, error)

func (*Manager) Close

func (u *Manager) Close() error

func (*Manager) CreateOperatorUser

func (u *Manager) CreateOperatorUser(pass string) error

func (*Manager) Update160MonitorUserGrant

func (u *Manager) Update160MonitorUserGrant(pass string) (err error)

Update160MonitorUserGrant grants SERVICE_CONNECTION_ADMIN rights to the monitor user if pxc version is 8 or more and sets the MAX_USER_CONNECTIONS parameter to 100 (empirically determined)

func (*Manager) Update170XtrabackupUser

func (u *Manager) Update170XtrabackupUser(pass string) (err error)

Update170XtrabackupUser grants all needed rights to the xtrabackup user

func (*Manager) UpdateProxyUsers

func (u *Manager) UpdateProxyUsers(proxyUsers []SysUser) error

func (*Manager) UpdateUsersPass

func (u *Manager) UpdateUsersPass(users []SysUser) error

type SysUser

type SysUser struct {
	Name  string   `yaml:"username"`
	Pass  string   `yaml:"password"`
	Hosts []string `yaml:"hosts"`
}

Jump to

Keyboard shortcuts

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