bw

package
v0.0.0-...-71090b4 Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetModule

func GetModule() common.Module

Types

type BW

type BW struct {
	Name        string
	Description string
	Slug        string
	// contains filtered or unexported fields
}

func (*BW) GetDescription

func (m *BW) GetDescription() string

func (*BW) GetLastRun

func (m *BW) GetLastRun() string

func (*BW) GetName

func (m *BW) GetName() string

func (*BW) GetRunInterval

func (m *BW) GetRunInterval() int64

func (*BW) GetRunIntervalOnBattery

func (m *BW) GetRunIntervalOnBattery() int64

func (*BW) GetSlug

func (m *BW) GetSlug() string

func (*BW) GetWaybarOutput

func (m *BW) GetWaybarOutput() (*common.WaybarOutput, error)

func (*BW) IsEnabled

func (m *BW) IsEnabled() bool

func (*BW) Run

func (m *BW) Run() error

func (*BW) RunCommand

func (m *BW) RunCommand(name string, args []string) error

func (*BW) SaveLastRun

func (m *BW) SaveLastRun()

func (*BW) SuspendOnBattery

func (m *BW) SuspendOnBattery() bool

func (*BW) WriteOutput

func (m *BW) WriteOutput() error

type Item

type Item struct {
	Object         string      `json:"object"`
	Id             string      `json:"id"`
	OrganizationId interface{} `json:"organizationId"`
	FolderId       string      `json:"folderId"`
	Type           int         `json:"type"`
	Name           string      `json:"name"`
	Favorite       bool        `json:"favorite"`
	Login          struct {
		Uris []struct {
			Match interface{} `json:"match"`
			URI   string      `json:"uri"`
		} `json:"uris"`
		Username             string      `json:"username"`
		Password             interface{} `json:"password"`
		PasswordRevisionDate interface{} `json:"passwordRevisionDate"`
	} `json:"login"`
	CollectionIds []interface{} `json:"collectionIds"`
	RevisionDate  time.Time     `json:"revisionDate"`
}

func GetItems

func GetItems() ([]*Item, error)

func (*Item) GetTOTP

func (item *Item) GetTOTP() (string, error)

func (*Item) ToWofi

func (item *Item) ToWofi() []string

Jump to

Keyboard shortcuts

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