Versions in this module Expand all Collapse all v0 v0.0.1 Nov 10, 2023 Changes in this version + var Actions = []string + var ErrUserNotFound error = errors.New("user not found") + type KubeClient struct + func NewKubeClient(kubeClient kubernetes.Interface) (k *KubeClient) + func (k *KubeClient) CreateRole(ctx context.Context, role Role) error + func (k *KubeClient) CreateUser(ctx context.Context, user User) error + func (k *KubeClient) GetUser(ctx context.Context, username string) (User, error) + func (k *KubeClient) ListNamespaces(ctx context.Context) ([]string, error) + func (k *KubeClient) ListRoles(ctx context.Context) ([]Role, error) + func (k *KubeClient) ListUsers(ctx context.Context) ([]User, error) + func (k *KubeClient) UpdateUser(ctx context.Context, user User) error + type Role struct + Actions []string + Default bool + ID string + Name string + func (r Role) GetID() string + type User struct + Namespaces []string + Password string + Role string + Roles []string + Username string + func NewUser(secretName string) User + func (u User) GetID() string + func (u User) SecretName() string