Documentation ¶
Index ¶
- func AlarmDisarm(m *clientv3.AlarmMember) error
- func AlarmList() error
- func AuthDisable() error
- func AuthEnable() error
- func AuthStatus() error
- func Delete(key string, opts ...clientv3.OpOption) error
- func Get(key string, opts ...clientv3.OpOption) error
- func HashKV() error
- func LeaseGrant(ttl int64) error
- func LeaseKeepAlive(id int64) error
- func LeaseKeepAliveOnce(id int64) error
- func LeaseList() error
- func LeaseRevoke(id int64) error
- func LeaseTimeToLive(id int64, opts ...clientv3.LeaseOption) error
- func MemberAdd(peerAddrs []string) error
- func MemberAddLearner(peerAddrs []string) error
- func MemberList() error
- func MemberPromote(id uint64) error
- func MemberRemove(id uint64) error
- func MemberUpdate(id uint64, peerAddrs []string) error
- func MoveLeader(id uint64) error
- func Mutex(ttl int64, pfx string) (*concurrency.Mutex, error)
- func Put(key, val string, opts ...clientv3.OpOption) error
- func RoleAdd(role string) error
- func RoleDelete(role string) error
- func RoleGet(role string) error
- func RoleGrantPermission(role string, key, rangeEnd string, permType clientv3.PermissionType) error
- func RoleList() error
- func RoleRevokePermission(role string, key, rangeEnd string) error
- func SnapshotSave(cfg clientv3.Config, dbPath string) error
- func Status() error
- func Txn(cmp []clientv3.Cmp, success []clientv3.Op, fail []clientv3.Op) error
- func UserAdd(name, password string) error
- func UserAddWithOptions(name, password string, options *clientv3.UserAddOptions) error
- func UserChangePasswd(name, password string) error
- func UserDelete(name string) error
- func UserGet(name string) error
- func UserGrantRole(name, role string) error
- func UserList() error
- func UserRevokeRole(name, role string) error
- func Watch(key string, opts ...clientv3.OpOption)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LeaseTimeToLive ¶
func LeaseTimeToLive(id int64, opts ...clientv3.LeaseOption) error
LeaseTimeToLive 租约信息
func RoleGrantPermission ¶
func RoleGrantPermission(role string, key, rangeEnd string, permType clientv3.PermissionType) error
RoleGrantPermission 赋予角色权限
func RoleRevokePermission ¶
RoleRevokePermission 撤销角色权限
func UserAddWithOptions ¶
func UserAddWithOptions(name, password string, options *clientv3.UserAddOptions) error
UserAddWithOptions 使用选项添加用户
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.