Documentation
¶
Index ¶
- type Bubble
- func (b *Bubble) AssignUserRole(role string) tea.Cmd
- func (b *Bubble) DeleteUserPermissionCmd() tea.Cmd
- func (b *Bubble) GetAvailableRoles() tea.Cmd
- func (b *Bubble) GetRolesAssignedToUser() tea.Cmd
- func (b *Bubble) GetRolesCmd() tea.Cmd
- func (b *Bubble) GetUserDetailsCmd(updateOccured bool) tea.Cmd
- func (b *Bubble) GrantUserPermissionCmd(action string, resourceType string, resource []string) tea.Cmd
- func (b Bubble) Init() tea.Cmd
- func (b *Bubble) RemoveRoleFromUser(role string) tea.Cmd
- func (b *Bubble) Reset()
- func (b *Bubble) SetCurrentUser(user string)
- func (b *Bubble) SetIsActive(active bool)
- func (b *Bubble) SetSize(width, height int)
- func (b Bubble) Update(msg tea.Msg) (Bubble, tea.Cmd)
- func (b Bubble) View() string
- type GetAssignedRolesMsg
- type GetAvailableRolesMsg
- type GetRolesMsg
- type GetUserDetailsMsg
- type State
- type Styles
- type SuccessMsg
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Bubble ¶
func (*Bubble) DeleteUserPermissionCmd ¶
func (*Bubble) GetAvailableRoles ¶
func (*Bubble) GetRolesAssignedToUser ¶
func (*Bubble) GetRolesCmd ¶
func (*Bubble) GrantUserPermissionCmd ¶
func (*Bubble) SetCurrentUser ¶
func (*Bubble) SetIsActive ¶
type GetAssignedRolesMsg ¶
type GetAssignedRolesMsg []string
type GetAvailableRolesMsg ¶
type GetAvailableRolesMsg []string
type GetRolesMsg ¶
type GetRolesMsg []string
type GetUserDetailsMsg ¶
type Styles ¶
type Styles struct {
InactiveViewportStyle lipgloss.Style
ActiveViewportStyle lipgloss.Style
// contains filtered or unexported fields
}
func DefaultStyles ¶
func DefaultStyles() (s Styles)
type SuccessMsg ¶
type SuccessMsg struct {
Message string
}
Click to show internal directories.
Click to hide internal directories.