Versions in this module Expand all Collapse all v0 v0.5.8 Aug 23, 2022 Changes in this version + type OnePasswordMockClient struct + MockFileContents map[string][]byte + MockItemFields map[string]map[string][]*onepassword.ItemField + MockItems map[string][]onepassword.Item + MockVaults map[string][]onepassword.Vault + func NewMockClient() *OnePasswordMockClient + func (mockClient *OnePasswordMockClient) AddPredictableItemWithField(vaultName, title, label, value string) *OnePasswordMockClient + func (mockClient *OnePasswordMockClient) AddPredictableVault(name string) *OnePasswordMockClient + func (mockClient *OnePasswordMockClient) AppendItem(vaultID string, item onepassword.Item) *OnePasswordMockClient + func (mockClient *OnePasswordMockClient) AppendItemField(vaultID, itemID string, itemField onepassword.ItemField) *OnePasswordMockClient + func (mockClient *OnePasswordMockClient) AppendVault(name string, vault onepassword.Vault) *OnePasswordMockClient + func (mockClient *OnePasswordMockClient) CreateItem(item *onepassword.Item, vaultUUID string) (*onepassword.Item, error) + func (mockClient *OnePasswordMockClient) DeleteItem(item *onepassword.Item, vaultUUID string) error + func (mockClient *OnePasswordMockClient) DeleteItemByID(itemUUID, vaultQuery string) error + func (mockClient *OnePasswordMockClient) DeleteItemByTitle(title, vaultQuery string) error + func (mockClient *OnePasswordMockClient) DownloadFile(file *onepassword.File, targetDirectory string, overwrite bool) (string, error) + func (mockClient *OnePasswordMockClient) GetFile(fileUUID, itemUUID, vaultUUID string) (*onepassword.File, error) + func (mockClient *OnePasswordMockClient) GetFileContent(file *onepassword.File) ([]byte, error) + func (mockClient *OnePasswordMockClient) GetFiles(itemQuery, vaultQuery string) ([]onepassword.File, error) + func (mockClient *OnePasswordMockClient) GetItem(itemUUID, vaultUUID string) (*onepassword.Item, error) + func (mockClient *OnePasswordMockClient) GetItemByTitle(title, vaultUUID string) (*onepassword.Item, error) + func (mockClient *OnePasswordMockClient) GetItemByUUID(itemUUID, vaultUUID string) (*onepassword.Item, error) + func (mockClient *OnePasswordMockClient) GetItems(vaultUUID string) ([]onepassword.Item, error) + func (mockClient *OnePasswordMockClient) GetItemsByTitle(itemUUID, vaultUUID string) ([]onepassword.Item, error) + func (mockClient *OnePasswordMockClient) GetVault(uuid string) (*onepassword.Vault, error) + func (mockClient *OnePasswordMockClient) GetVaultByTitle(uuid string) (*onepassword.Vault, error) + func (mockClient *OnePasswordMockClient) GetVaultByUUID(uuid string) (*onepassword.Vault, error) + func (mockClient *OnePasswordMockClient) GetVaults() ([]onepassword.Vault, error) + func (mockClient *OnePasswordMockClient) GetVaultsByTitle(uuid string) ([]onepassword.Vault, error) + func (mockClient *OnePasswordMockClient) LoadStruct(config interface{}) error + func (mockClient *OnePasswordMockClient) LoadStructFromItem(config interface{}, itemQuery, vaultQuery string) error + func (mockClient *OnePasswordMockClient) LoadStructFromItemByTitle(config interface{}, itemTitle, vaultQuery string) error + func (mockClient *OnePasswordMockClient) LoadStructFromItemByUUID(config interface{}, itemUUID, vaultQuery string) error + func (mockClient *OnePasswordMockClient) SetFileContents(name string, contents []byte) *OnePasswordMockClient + func (mockClient *OnePasswordMockClient) UpdateItem(item *onepassword.Item, vaultUUID string) (*onepassword.Item, error)