Documentation ¶
Index ¶
- Variables
- type TestClient
- func (m *TestClient) CreateItem(item *onepassword.Item, vaultUUID string) (*onepassword.Item, error)
- func (m *TestClient) DeleteItem(item *onepassword.Item, vaultUUID string) error
- func (m *TestClient) GetFile(uuid string, itemUUID string, vaultUUID string) (*onepassword.File, error)
- func (m *TestClient) GetFileContent(file *onepassword.File) ([]byte, error)
- func (m *TestClient) GetItem(uuid string, vaultUUID string) (*onepassword.Item, error)
- func (m *TestClient) GetItemByTitle(title string, vaultUUID string) (*onepassword.Item, error)
- func (m *TestClient) GetItems(vaultUUID string) ([]onepassword.Item, error)
- func (m *TestClient) GetItemsByTitle(title, vaultUUID string) ([]onepassword.Item, error)
- func (m *TestClient) GetVault(uuid string) (*onepassword.Vault, error)
- func (m *TestClient) GetVaults() ([]onepassword.Vault, error)
- func (m *TestClient) GetVaultsByTitle(title string) ([]onepassword.Vault, error)
- func (m *TestClient) UpdateItem(item *onepassword.Item, vaultUUID string) (*onepassword.Item, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var ( GetGetVaultsFunc func() ([]onepassword.Vault, error) DoGetVaultsByTitleFunc func(title string) ([]onepassword.Vault, error) DoGetVaultFunc func(uuid string) (*onepassword.Vault, error) GetGetItemFunc func(uuid string, vaultUUID string) (*onepassword.Item, error) DoGetItemsByTitleFunc func(title string, vaultUUID string) ([]onepassword.Item, error) DoGetItemByTitleFunc func(title string, vaultUUID string) (*onepassword.Item, error) DoCreateItemFunc func(item *onepassword.Item, vaultUUID string) (*onepassword.Item, error) DoDeleteItemFunc func(item *onepassword.Item, vaultUUID string) error DoGetItemsFunc func(vaultUUID string) ([]onepassword.Item, error) DoUpdateItemFunc func(item *onepassword.Item, vaultUUID string) (*onepassword.Item, error) DoGetFileFunc func(uuid string, itemUUID string, vaultUUID string) (*onepassword.File, error) DoGetFileContentFunc func(file *onepassword.File) ([]byte, 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) GetItemFunc func(uuid string, vaultUUID string) (*onepassword.Item, error) GetItemsFunc func(vaultUUID string) ([]onepassword.Item, error) GetItemsByTitleFunc func(title string, vaultUUID string) ([]onepassword.Item, error) GetItemByTitleFunc func(title string, vaultUUID string) (*onepassword.Item, error) CreateItemFunc func(item *onepassword.Item, vaultUUID string) (*onepassword.Item, error) UpdateItemFunc func(item *onepassword.Item, vaultUUID string) (*onepassword.Item, error) DeleteItemFunc func(item *onepassword.Item, vaultUUID string) error GetFileFunc func(uuid string, itemUUID string, vaultUUID string) (*onepassword.File, error) GetFileContentFunc func(file *onepassword.File) ([]byte, error) }
func (*TestClient) CreateItem ¶
func (m *TestClient) CreateItem(item *onepassword.Item, vaultUUID string) (*onepassword.Item, error)
func (*TestClient) DeleteItem ¶
func (m *TestClient) DeleteItem(item *onepassword.Item, vaultUUID string) error
func (*TestClient) GetFile ¶ added in v1.3.0
func (m *TestClient) GetFile(uuid string, itemUUID string, vaultUUID string) (*onepassword.File, error)
func (*TestClient) GetFileContent ¶ added in v1.3.0
func (m *TestClient) GetFileContent(file *onepassword.File) ([]byte, error)
func (*TestClient) GetItem ¶
func (m *TestClient) GetItem(uuid string, vaultUUID string) (*onepassword.Item, error)
func (*TestClient) GetItemByTitle ¶
func (m *TestClient) GetItemByTitle(title string, vaultUUID string) (*onepassword.Item, error)
func (*TestClient) GetItems ¶
func (m *TestClient) GetItems(vaultUUID string) ([]onepassword.Item, error)
func (*TestClient) GetItemsByTitle ¶ added in v0.0.2
func (m *TestClient) GetItemsByTitle(title, vaultUUID string) ([]onepassword.Item, error)
func (*TestClient) GetVault ¶ added in v1.3.0
func (m *TestClient) GetVault(uuid string) (*onepassword.Vault, error)
func (*TestClient) GetVaults ¶
func (m *TestClient) GetVaults() ([]onepassword.Vault, error)
Do is the mock client's `Do` func
func (*TestClient) GetVaultsByTitle ¶ added in v0.0.2
func (m *TestClient) GetVaultsByTitle(title string) ([]onepassword.Vault, error)
func (*TestClient) UpdateItem ¶
func (m *TestClient) UpdateItem(item *onepassword.Item, vaultUUID string) (*onepassword.Item, error)
Click to show internal directories.
Click to hide internal directories.