Documentation ¶
Index ¶
Constants ¶
View Source
const ( RolesKey = "roles" IsHiddenKey = "hideForUnauthorized" DefaultInformerResync = time.Second * 10 )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ContextKey ¶
type ContextKey int
const ( // the key type to use when adding WorkspaceAccess to a Context WorkspaceKey ContextKey = iota )
type MissingRole ¶
type Workspace ¶
type Workspace struct { Name string `json:"name"` Description string `json:"description"` // the list of required roles for access Roles [][]userpkg.Role `json:"roles,omitempty"` }
func (Workspace) UserCanSeeCustomRoles ¶
type WorkspaceClient ¶
type WorkspaceClient interface { // list the workspaces visible to a specific user ListWorkspaces() []Workspace GetNamespace() string Create(k8sclient kubernetes.Interface, cd Data) (string, error) Update(k8sclient kubernetes.Interface, cd Data) (string, error) Delete(k8sclient kubernetes.Interface, namespace string, wsName string) (string, error) }
func NewWorkspaceClient ¶
func NewWorkspaceClient(clientSet kubernetes.Interface, namespace string) WorkspaceClient
type WorkspaceClientMock ¶
func NewDefaultWorkspaceClientMock ¶
func NewDefaultWorkspaceClientMock() *WorkspaceClientMock
func (*WorkspaceClientMock) GetNamespace ¶
func (m *WorkspaceClientMock) GetNamespace() string
func (*WorkspaceClientMock) HasAccessToWorkspace ¶
func (*WorkspaceClientMock) ListWorkspaces ¶
type WorkspaceGetRequest ¶
Click to show internal directories.
Click to hide internal directories.