users

package
v1.11.0-dbaas Latest Latest
Warning

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

Go to latest
Published: Sep 9, 2022 License: Apache-2.0 Imports: 4 Imported by: 1

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, timeout int32) (Manager, error)

func (*Manager) Close

func (u *Manager) Close() error

func (*Manager) CreateOperatorUser

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

func (*Manager) CreateReplicationUser added in v1.9.0

func (u *Manager) CreateReplicationUser(password string) error

func (*Manager) Update1100SystemUserPrivilege added in v1.10.0

func (u *Manager) Update1100SystemUserPrivilege() (err error)

Update1100SystemUserPrivilege grants system_user privilege for monitor and clustercheck users

func (*Manager) Update160MonitorUserGrant added in v1.6.0

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 added in v1.7.0

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