rolelist

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jul 1, 2022 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Bubble

type Bubble struct {
	State State

	Styles Styles
	// contains filtered or unexported fields
}

func New

func New(stardogClient stardog.Client) Bubble

func (*Bubble) CreateRoleCmd

func (b *Bubble) CreateRoleCmd(rolename string) tea.Cmd

func (*Bubble) DeleteRoleCmd

func (b *Bubble) DeleteRoleCmd() tea.Cmd

func (*Bubble) ForceDeleteRoleCmd

func (b *Bubble) ForceDeleteRoleCmd() tea.Cmd

func (*Bubble) GetRoles

func (b *Bubble) GetRoles() []list.Item

func (*Bubble) GetRolesCmd

func (b *Bubble) GetRolesCmd() tea.Cmd

func (*Bubble) GetSelectedRole

func (b *Bubble) GetSelectedRole() string

func (Bubble) Init

func (b Bubble) Init() tea.Cmd

func (*Bubble) IsFilterActive

func (b *Bubble) IsFilterActive() bool

func (*Bubble) Reset

func (b *Bubble) Reset()

func (*Bubble) SetIsActive

func (b *Bubble) SetIsActive(active bool)

func (*Bubble) SetListTitleBackgroundColor

func (b *Bubble) SetListTitleBackgroundColor(color lipgloss.AdaptiveColor)

func (*Bubble) SetListTitleForegroundColor

func (b *Bubble) SetListTitleForegroundColor(color lipgloss.AdaptiveColor)

func (*Bubble) SetSize

func (b *Bubble) SetSize(width, height int)

func (Bubble) Update

func (b Bubble) Update(msg tea.Msg) (Bubble, tea.Cmd)

func (Bubble) View

func (b Bubble) View() string

type GetRolesMsg

type GetRolesMsg []list.Item

type Item

type Item struct {
	// contains filtered or unexported fields
}

func (Item) Description

func (i Item) Description() string

func (Item) FilterValue

func (i Item) FilterValue() string

func (Item) Title

func (i Item) Title() string

type State

type State int
const (
	IdleState State = iota
	AddRoleState
)

type Styles

type Styles struct {
	InactiveListStyle lipgloss.Style
	ActiveListStyle   lipgloss.Style
	// contains filtered or unexported fields
}

func DefaultStyles

func DefaultStyles() (s Styles)

type SuccessMsg

type SuccessMsg struct {
	Message string
}

Jump to

Keyboard shortcuts

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