secdialogs

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Mar 1, 2025 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SecretCreateDialog

type SecretCreateDialog struct {
	*tview.Box
	// contains filtered or unexported fields
}

SecretCreateDialog implements secret create dialog.

func NewSecretCreateDialog

func NewSecretCreateDialog() *SecretCreateDialog

NewSecretCreateDialog returns new secret create dialog primitive.

func (*SecretCreateDialog) Display

func (d *SecretCreateDialog) Display()

Display displays this primitive.

func (*SecretCreateDialog) Draw

func (d *SecretCreateDialog) Draw(screen tcell.Screen)

Draw draws this primitive into the screen.

func (*SecretCreateDialog) Focus

func (d *SecretCreateDialog) Focus(delegate func(p tview.Primitive))

Focus is called when this primitive receives focus.

func (*SecretCreateDialog) GetCreateOptions

func (d *SecretCreateDialog) GetCreateOptions() *secrets.SecretCreateOptions

GetCreateOptions returns secret create options.

func (*SecretCreateDialog) HasFocus

func (d *SecretCreateDialog) HasFocus() bool

HasFocus returns whether or not this primitive has focus.

func (*SecretCreateDialog) Hide

func (d *SecretCreateDialog) Hide()

Hide stops displaying this primitive.

func (*SecretCreateDialog) InputHandler

func (d *SecretCreateDialog) InputHandler() func(event *tcell.EventKey, setFocus func(p tview.Primitive))

InputHandler returns input handler function for this primitive.

func (*SecretCreateDialog) IsDisplay

func (d *SecretCreateDialog) IsDisplay() bool

IsDisplay returns true if primitive is shown.

func (*SecretCreateDialog) SetCancelFunc

func (d *SecretCreateDialog) SetCancelFunc(handler func()) *SecretCreateDialog

SetCancelFunc sets form cancel button selected function.

func (*SecretCreateDialog) SetCreateFunc

func (d *SecretCreateDialog) SetCreateFunc(handler func()) *SecretCreateDialog

SetCreateFunc sets form create button selected function.

func (*SecretCreateDialog) SetRect

func (d *SecretCreateDialog) SetRect(x, y, width, height int)

SetRect set rects for this primitive.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳