Documentation ¶
Index ¶
- Variables
- type TestClient
- func (m *TestClient) CreateItem(item *onepassword.Item, vaultQuery string) (*onepassword.Item, error)
- func (m *TestClient) DeleteItem(item *onepassword.Item, vaultQuery string) error
- func (m *TestClient) DeleteItemByID(itemUUID string, vaultQuery string) error
- func (m *TestClient) DeleteItemByTitle(title string, vaultQuery string) error
- func (m *TestClient) DownloadFile(file *onepassword.File, targetDirectory string, overwrite bool) (string, error)
- func (m *TestClient) GetFile(uuid string, itemQuery string, vaultQuery string) (*onepassword.File, error)
- func (m *TestClient) GetFileContent(file *onepassword.File) ([]byte, error)
- func (m *TestClient) GetFiles(itemQuery string, vaultQuery string) ([]onepassword.File, error)
- func (m *TestClient) GetItem(itemQuery string, vaultQuery string) (*onepassword.Item, error)
- func (m *TestClient) GetItemByTitle(title string, vaultQuery string) (*onepassword.Item, error)
- func (m *TestClient) GetItemByUUID(uuid string, vaultQuery string) (*onepassword.Item, error)
- func (m *TestClient) GetItems(vaultQuery string) ([]onepassword.Item, error)
- func (m *TestClient) GetItemsByTitle(title string, vaultQuery string) ([]onepassword.Item, error)
- func (m *TestClient) GetVault(vaultQuery string) (*onepassword.Vault, error)
- func (m *TestClient) GetVaultByTitle(title string) (*onepassword.Vault, error)
- func (m *TestClient) GetVaultByUUID(uuid string) (*onepassword.Vault, error)
- func (m *TestClient) GetVaults() ([]onepassword.Vault, error)
- func (m *TestClient) GetVaultsByTitle(title string) ([]onepassword.Vault, error)
- func (m *TestClient) LoadStruct(config interface{}) error
- func (m *TestClient) LoadStructFromItem(config interface{}, itemQuery string, vaultQuery string) error
- func (m *TestClient) LoadStructFromItemByTitle(config interface{}, itemTitle string, vaultQuery string) error
- func (m *TestClient) LoadStructFromItemByUUID(config interface{}, itemUUID string, vaultQuery string) error
- func (m *TestClient) UpdateItem(item *onepassword.Item, vaultQuery string) (*onepassword.Item, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var ( DoGetVaultsFunc func() ([]onepassword.Vault, error) DoGetVaultsByTitleFunc func(title string) ([]onepassword.Vault, error) DoGetVaultFunc func(uuid string) (*onepassword.Vault, error) DoGetVaultByUUIDFunc func(uuid string) (*onepassword.Vault, error) DoGetVaultByTitleFunc func(title string) (*onepassword.Vault, error) DoGetItemFunc func(itemQuery string, vaultQuery string) (*onepassword.Item, error) DoGetItemByUUIDFunc func(uuid string, vaultQuery string) (*onepassword.Item, error) DoGetItemByTitleFunc func(title string, vaultQuery string) (*onepassword.Item, error) DoGetItemsFunc func(vaultQuery string) ([]onepassword.Item, error) DoGetItemsByTitleFunc func(title string, vaultQuery string) ([]onepassword.Item, error) DoCreateItemFunc func(item *onepassword.Item, vaultQuery string) (*onepassword.Item, error) DoUpdateItemFunc func(item *onepassword.Item, vaultQuery string) (*onepassword.Item, error) DoDeleteItemFunc func(item *onepassword.Item, vaultQuery string) error DoDeleteItemByIDFunc func(itemUUID string, vaultQuery string) error DoDeleteItemByTitleFunc func(title string, vaultQuery string) error DoGetFilesFunc func(itemQuery string, vaultQuery string) ([]onepassword.File, error) DoGetFileFunc func(uuid string, itemQuery string, vaultQuery string) (*onepassword.File, error) DoGetFileContentFunc func(file *onepassword.File) ([]byte, error) DoDownloadFileFunc func(file *onepassword.File, targetDirectory string, overwrite bool) (string, error) DoLoadStructFromItemByUUIDFunc func(config interface{}, itemUUID string, vaultQuery string) error DoLoadStructFromItemByTitleFunc func(config interface{}, itemTitle string, vaultQuery string) error DoLoadStructFromItemFunc func(config interface{}, itemQuery string, vaultQuery string) error DoLoadStructFunc func(config interface{}) error )
Functions ¶
This section is empty.
Types ¶
type TestClient ¶
type TestClient struct { GetVaultsFunc func() ([]onepassword.Vault, error) GetVaultsByTitleFunc func(title string) ([]onepassword.Vault, error) GetVaultFunc func(uuid string) (*onepassword.Vault, error) GetVaultByUUIDFunc func(uuid string) (*onepassword.Vault, error) GetVaultByTitleFunc func(title string) (*onepassword.Vault, error) GetItemFunc func(itemQuery string, vaultQuery string) (*onepassword.Item, error) GetItemByUUIDFunc func(uuid string, vaultQuery string) (*onepassword.Item, error) GetItemByTitleFunc func(title string, vaultQuery string) (*onepassword.Item, error) GetItemsFunc func(vaultQuery string) ([]onepassword.Item, error) GetItemsByTitleFunc func(title string, vaultQuery string) ([]onepassword.Item, error) CreateItemFunc func(item *onepassword.Item, vaultQuery string) (*onepassword.Item, error) UpdateItemFunc func(item *onepassword.Item, vaultQuery string) (*onepassword.Item, error) DeleteItemFunc func(item *onepassword.Item, vaultQuery string) error DeleteItemByIDFunc func(itemUUID string, vaultQuery string) error DeleteItemByTitleFunc func(title string, vaultQuery string) error GetFilesFunc func(itemQuery string, vaultQuery string) ([]onepassword.File, error) GetFileFunc func(uuid string, itemQuery string, vaultQuery string) (*onepassword.File, error) GetFileContentFunc func(file *onepassword.File) ([]byte, error) DownloadFileFunc func(file *onepassword.File, targetDirectory string, overwrite bool) (string, error) LoadStructFromItemByUUIDFunc func(config interface{}, itemUUID string, vaultQuery string) error LoadStructFromItemByTitleFunc func(config interface{}, itemTitle string, vaultQuery string) error LoadStructFromItemFunc func(config interface{}, itemQuery string, vaultQuery string) error LoadStructFunc func(config interface{}) error }
func (*TestClient) CreateItem ¶
func (m *TestClient) CreateItem(item *onepassword.Item, vaultQuery string) (*onepassword.Item, error)
func (*TestClient) DeleteItem ¶
func (m *TestClient) DeleteItem(item *onepassword.Item, vaultQuery string) error
func (*TestClient) DeleteItemByID ¶ added in v1.6.0
func (m *TestClient) DeleteItemByID(itemUUID string, vaultQuery string) error
func (*TestClient) DeleteItemByTitle ¶ added in v1.6.0
func (m *TestClient) DeleteItemByTitle(title string, vaultQuery string) error
func (*TestClient) DownloadFile ¶ added in v1.6.0
func (m *TestClient) DownloadFile(file *onepassword.File, targetDirectory string, overwrite bool) (string, error)
func (*TestClient) GetFile ¶ added in v1.3.0
func (m *TestClient) GetFile(uuid string, itemQuery string, vaultQuery string) (*onepassword.File, error)
func (*TestClient) GetFileContent ¶ added in v1.3.0
func (m *TestClient) GetFileContent(file *onepassword.File) ([]byte, error)
func (*TestClient) GetFiles ¶ added in v1.6.0
func (m *TestClient) GetFiles(itemQuery string, vaultQuery string) ([]onepassword.File, error)
func (*TestClient) GetItem ¶
func (m *TestClient) GetItem(itemQuery string, vaultQuery string) (*onepassword.Item, error)
func (*TestClient) GetItemByTitle ¶
func (m *TestClient) GetItemByTitle(title string, vaultQuery string) (*onepassword.Item, error)
func (*TestClient) GetItemByUUID ¶ added in v1.6.0
func (m *TestClient) GetItemByUUID(uuid string, vaultQuery string) (*onepassword.Item, error)
func (*TestClient) GetItems ¶
func (m *TestClient) GetItems(vaultQuery string) ([]onepassword.Item, error)
func (*TestClient) GetItemsByTitle ¶ added in v0.0.2
func (m *TestClient) GetItemsByTitle(title string, vaultQuery string) ([]onepassword.Item, error)
func (*TestClient) GetVault ¶ added in v1.3.0
func (m *TestClient) GetVault(vaultQuery string) (*onepassword.Vault, error)
func (*TestClient) GetVaultByTitle ¶ added in v1.6.0
func (m *TestClient) GetVaultByTitle(title string) (*onepassword.Vault, error)
func (*TestClient) GetVaultByUUID ¶ added in v1.6.0
func (m *TestClient) GetVaultByUUID(uuid string) (*onepassword.Vault, error)
func (*TestClient) GetVaults ¶
func (m *TestClient) GetVaults() ([]onepassword.Vault, error)
func (*TestClient) GetVaultsByTitle ¶ added in v0.0.2
func (m *TestClient) GetVaultsByTitle(title string) ([]onepassword.Vault, error)
func (*TestClient) LoadStruct ¶ added in v1.6.0
func (m *TestClient) LoadStruct(config interface{}) error
func (*TestClient) LoadStructFromItem ¶ added in v1.6.0
func (m *TestClient) LoadStructFromItem(config interface{}, itemQuery string, vaultQuery string) error
func (*TestClient) LoadStructFromItemByTitle ¶ added in v1.6.0
func (m *TestClient) LoadStructFromItemByTitle(config interface{}, itemTitle string, vaultQuery string) error
func (*TestClient) LoadStructFromItemByUUID ¶ added in v1.6.0
func (m *TestClient) LoadStructFromItemByUUID(config interface{}, itemUUID string, vaultQuery string) error
func (*TestClient) UpdateItem ¶
func (m *TestClient) UpdateItem(item *onepassword.Item, vaultQuery string) (*onepassword.Item, error)
Click to show internal directories.
Click to hide internal directories.