예제 #1
0
파일: auth.go 프로젝트: yorkart/etcd-demo
func listRolePerm(role string, authAPI clientv3.Auth) error {
	rres, err := authAPI.RoleGet(context.TODO(), "root")
	if err != nil {
		log.Fatal("role list", err)
	}
	log.Println(rres.Perm)

	return nil
}