pasteword

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Dec 11, 2021 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrSecretNotFound = errors.New("secret not found")

	ErrKeychainGet = errors.New("failed to read from Keychain")
	ErrKeychainSet = errors.New("failed to write to Keychain")
	ErrKeychainDel = errors.New("failed to delete from Keychain")
)

Functions

func Read

func Read(name string) (string, error)

Read reads a password.

func TempCopy

func TempCopy(s string, ttl time.Duration) error

TempCopy copies string s into the clipboard and clears it after ttl.

func Write

func Write(name string, value string) error

Write writes password or deletes it when the new value is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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