client

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Nov 17, 2026 License: Apache-2.0 Imports: 10 Imported by: ? 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

This section is empty.

Types

type RedisClient

type RedisClient struct {
	Username    string
	Password    string
	ClusterHost string
	APIPort     string
	// contains filtered or unexported fields
}

func New

func New(ctx context.Context, redisClient *RedisClient) (*RedisClient, error)

func NewClient

func NewClient(username, password, clusterHost, apiPort string, httpClient ...*uhttp.BaseHttpClient) *RedisClient

func (*RedisClient) GetRoleDetails

func (c *RedisClient) GetRoleDetails(ctx context.Context, roleUID string) (Role, annotations.Annotations, error)

func (*RedisClient) ListRoles

func (c *RedisClient) ListRoles(ctx context.Context) ([]Role, annotations.Annotations, error)

func (*RedisClient) ListUsers

func (c *RedisClient) ListUsers(ctx context.Context) ([]User, annotations.Annotations, error)

type Role

type Role struct {
	Management string `json:"management"`
	Name       string `json:"name"`
	UID        int    `json:"uid"`
}

type User

type User struct {
	AuthMethod             string        `json:"auth_method"`
	BdbsEmailAlerts        []interface{} `json:"bdbs_email_alerts"`
	CertificateSubjectLine string        `json:"certificate_subject_line"`
	ClusterEmailAlerts     bool          `json:"cluster_email_alerts"`
	Email                  string        `json:"email"`
	EmailAlerts            bool          `json:"email_alerts"`
	Name                   string        `json:"name"`
	PasswordIssueDate      time.Time     `json:"password_issue_date"`
	Role                   string        `json:"role"`
	RoleUIDs               []int         `json:"role_uids"`
	Status                 string        `json:"status"`
	UID                    int           `json:"uid"`
}

Jump to

Keyboard shortcuts

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