Documentation
¶
Index ¶
- Variables
- type 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
- type User
Constants ¶
This section is empty.
Variables ¶
View Source
var Actions = []string{
"namespace",
"namespace_read",
"namespace_write",
"app",
"app_read",
"app_write",
"app_logs",
"app_exec",
"app_portforward",
"configuration",
"configuration_read",
"configuration_write",
"service",
"service_read",
"service_write",
"service_portforward",
"gitconfig",
"gitconfig_read",
"gitconfig_write",
"export_registries_read",
}
View Source
var ErrUserNotFound error = errors.New("user not found")
Functions ¶
This section is empty.
Types ¶
type KubeClient ¶
type KubeClient struct {
// contains filtered or unexported fields
}
func NewKubeClient ¶
func NewKubeClient(kubeClient kubernetes.Interface) (k *KubeClient)
func (*KubeClient) CreateRole ¶
func (k *KubeClient) CreateRole(ctx context.Context, role Role) error
func (*KubeClient) CreateUser ¶
func (k *KubeClient) CreateUser(ctx context.Context, user User) error
func (*KubeClient) ListNamespaces ¶
func (k *KubeClient) ListNamespaces(ctx context.Context) ([]string, error)
func (*KubeClient) UpdateUser ¶
func (k *KubeClient) UpdateUser(ctx context.Context, user User) error
Click to show internal directories.
Click to hide internal directories.