Documentation ¶
Index ¶
- func CreateDocument(op OpFunc, input DocumentUpsert) (string, error)
- func CreateVault(op OpFunc, input CreateVaultMutation) (string, error)
- func DeleteDocument(op OpFunc, input Query) error
- func EditDocument(op OpFunc, input DocumentUpsert) (string, error)
- func GetDocument(op OpFunc, input Query) (string, error)
- func GetItem(op OpFunc, input Query) (string, error)
- func GetVault(op OpFunc, input Query) (string, error)
- func Op(stdin string, args []string) (string, error)
- func ShouldClearSessionAndRetry(err error) bool
- func Signin(op OpFunc) (string, error)
- type Context
- type CreateVaultMutation
- type DocumentUpsert
- type OpFunc
- type Query
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateDocument ¶
func CreateDocument(op OpFunc, input DocumentUpsert) (string, error)
CreateDocument creates a new 1Passord document and returns the created login's uuid on success.
func CreateVault ¶
func CreateVault(op OpFunc, input CreateVaultMutation) (string, error)
CreateVault creates a new 1Passord vault and returns the newly created vault's uuid on success.
func DeleteDocument ¶
DeleteDocument deletes any document by uuid, name, etc.
func EditDocument ¶
func EditDocument(op OpFunc, input DocumentUpsert) (string, error)
EditDocument edits a 1Passord document by uuid, name, etc. and returns the edited login's uuid on success.
func GetDocument ¶
GetDocument wraps "op get document" and captures stdout/stderr
func ShouldClearSessionAndRetry ¶
ShouldClearSessionAndRetry
Types ¶
type CreateVaultMutation ¶
type DocumentUpsert ¶
Click to show internal directories.
Click to hide internal directories.