app

package
v1.7.1 Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2024 License: MIT Imports: 25 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DMenuCommandRofi DMenuCommand = "rofi"
	DMenuCommandWofi              = "wofi"
	DMenuCommandNoop              = "noop"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type App

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

func Newapp

func Newapp(opts ...AppOption) *App

func (*App) DMenu

func (p *App) DMenu() error

func (*App) Fzf

func (p *App) Fzf() error

func (*App) GetSortedDataSources

func (p *App) GetSortedDataSources() ([]storage.DataSource, error)

func (*App) List

func (p *App) List(w io.Writer) error

func (*App) Sync

func (p *App) Sync() error

func (*App) WipeCache

func (p *App) WipeCache() error

type AppOption

type AppOption func(*App)

func WithAccount

func WithAccount(account string) AppOption

func WithBlacklist

func WithBlacklist(patterns []string) AppOption

func WithCommand

func WithCommand(command DMenuCommand) AppOption

func WithDbPath

func WithDbPath(dbPath string) AppOption

func WithPasswordCommand added in v1.6.1

func WithPasswordCommand(command PasswordCommand) AppOption

func WithVerbose

func WithVerbose(verbose bool) AppOption

type DMenuCommand

type DMenuCommand string

func (DMenuCommand) String

func (d DMenuCommand) String() string

type PasswordCommand added in v1.6.1

type PasswordCommand string

PasswordCommand represents the method used to prompt the user for a password.

const (
	PasswordCommandZenity PasswordCommand = "zenity" // Use Zenity GUI prompt for password.
	PasswordCommandCLI    PasswordCommand = "cli"    // Use CLI prompt for password.
)

Constants representing the different password command methods.

type Resource

type Resource struct {
	Address          string `json:"address,omitempty"`
	Connected        bool   `json:"connected"`
	ConnectionStatus string `json:"connection_status"`
	Hostname         string `json:"hostname"`
	ID               string `json:"id"`
	Message          string `json:"message"`
	Name             string `json:"name"`
	Tags             string `json:"tags"`
	Type             string `json:"type"`
	WebURL           string `json:"web_url,omitempty"`
}

Resource represents the details of a resource.

type ResourceType

type ResourceType string

ResourceType represents the type of resource.

const (
	TypeRedis        ResourceType = "redis"
	TypePostgres     ResourceType = "postgres"
	TypeAmazonEKS    ResourceType = "amazoneks"
	TypeAmazonES     ResourceType = "amazones"
	TypeAthena       ResourceType = "athena"
	TypeHTTPNoAuth   ResourceType = "httpNoAuth"
	TypeAmazonMQAMQP ResourceType = "amazonmq-amqp-091"
	TypeRawTCP       ResourceType = "rawtcp"
)

Resource type constants.

Jump to

Keyboard shortcuts

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