helper

package
v0.0.0-...-3430a5a Latest Latest
Warning

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

Go to latest
Published: Nov 26, 2024 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateACL

func GenerateACL(ctx context.Context, client *kubernetes.Clientset, namespace, name string) (ret []string, err error)

func GetConfigmap

func GetConfigmap(ctx context.Context, client *kubernetes.Clientset, namespace, name string) (*corev1.ConfigMap, error)

func GetSecret

func GetSecret(ctx context.Context, client *kubernetes.Clientset, namespace, name string) (*corev1.Secret, error)

func GetUserPassword

func GetUserPassword(ctx context.Context, client *kubernetes.Clientset, namespace, name, username, secretName string) (string, error)

GetUserPassword

func LoadACLUsersFromConfigmap

func LoadACLUsersFromConfigmap(ctx context.Context, clientset *kubernetes.Clientset, cm *v1.ConfigMap) ([]*user.User, error)

LoadACLUsersFromConfigmap load acls from configmap

func NewCommand

func NewCommand(ctx context.Context) *cli.Command

func Ping

func Ping(ctx context.Context, addr string, authInfo redis.AuthInfo) error

Ping

Types

This section is empty.

Jump to

Keyboard shortcuts

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