Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetItem ¶
func GetItem(itemName string, opts ...Options) (*onepassword.Item, error)
GetItem gets a 1password item from the 1password connect api server. Options may be passed through the opts parameter.
func LoadItem ¶
LoadItem loads an item and unmarshalls it into `i`. This is equivalent to calling GetItem followed by an UnmarshallItem into `i`.
func UnmarshallItem ¶
func UnmarshallItem(item *onepassword.Item, i interface{}) error
UnmarshallItem unmarshalls item into `i`. `i` must be a pointer to a struct. The struct should contain exported fields of type int or string that contain the tag "opfield" with the name of the field to be put in the field.
Types ¶
Click to show internal directories.
Click to hide internal directories.