giosafedata

package
v0.0.0-...-3331d8c Latest Latest
Warning

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

Go to latest
Published: Mar 23, 2024 License: BSD-3-Clause, MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// ErrNotReady may occur when try to open a URL before the initialization is done.
	ErrNotReady = errors.New("some needed library was not loaded yet, make use that you are using ListenEvents()")

	// ErrInvalidURL occur when provide an invalid URL, like a non http/https URL.
	ErrInvalidURL = errors.New("given url is invalid")
)

Functions

func NewConfigFromViewEvent

func NewConfigFromViewEvent(w *app.Window, evt app.ViewEvent, title string) safedata.Config

NewConfigFromViewEvent creates a safedata.Config based on app.ViewEvent.

Types

type DeleteSecretOp

type DeleteSecretOp struct {
	Tag        event.Tag
	Identifier string
}

func (DeleteSecretOp) Add

func (o DeleteSecretOp) Add(ops *op.Ops)

type ErrorEvent

type ErrorEvent struct {
	Error error
}

ErrorEvent is issued when an error occurs.

func (ErrorEvent) ImplementsEvent

func (e ErrorEvent) ImplementsEvent()

type ListSecretOp

type ListSecretOp struct {
	Tag    event.Tag
	Buffer []safedata.Secret
}

func (ListSecretOp) Add

func (o ListSecretOp) Add(ops *op.Ops)

type ReadSecretOp

type ReadSecretOp struct {
	Tag        event.Tag
	Identifier string
}

func (ReadSecretOp) Add

func (o ReadSecretOp) Add(ops *op.Ops)

type SecretsEvent

type SecretsEvent struct {
	Secrets []safedata.Secret
}

SecretsEvent is issued as response for ReadSecretOp and ListSecretOp.

func (SecretsEvent) ImplementsEvent

func (e SecretsEvent) ImplementsEvent()

type WriteSecretOp

type WriteSecretOp struct {
	Tag    event.Tag
	Secret safedata.Secret
}

func (WriteSecretOp) Add

func (o WriteSecretOp) Add(ops *op.Ops)

Jump to

Keyboard shortcuts

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