Documentation ¶
Index ¶
- type APITokenStorageImpl
- type ArrayDatabaseImpl
- func (a *ArrayDatabaseImpl) DeleteArray(query *resources.ArrayQuery) ([]string, error)
- func (a *ArrayDatabaseImpl) FindArrays(query *resources.ArrayQuery) ([]*resources.Array, error)
- func (a *ArrayDatabaseImpl) InsertArray(device *resources.Array) error
- func (a *ArrayDatabaseImpl) PatchArray(device *resources.Array) (*resources.Array, error)
- func (a *ArrayDatabaseImpl) PatchArrayTags(device *resources.Array) (*resources.Array, error)
- type ArrayMetadataImpl
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type APITokenStorageImpl ¶
APITokenStorageImpl provides a mocked implementation of the resources.APITokenStorage interface for testing
func (*APITokenStorageImpl) DeleteToken ¶
func (a *APITokenStorageImpl) DeleteToken(arrayID string) error
DeleteToken is a mocked stub
func (*APITokenStorageImpl) GetToken ¶
func (a *APITokenStorageImpl) GetToken(arrayID string) (string, error)
GetToken is a mocked stub
type ArrayDatabaseImpl ¶
ArrayDatabaseImpl provides a mocked implementation of the resources.ArrayDatabase interface for testing
func (*ArrayDatabaseImpl) DeleteArray ¶
func (a *ArrayDatabaseImpl) DeleteArray(query *resources.ArrayQuery) ([]string, error)
DeleteArray is a mocked implementation
func (*ArrayDatabaseImpl) FindArrays ¶
func (a *ArrayDatabaseImpl) FindArrays(query *resources.ArrayQuery) ([]*resources.Array, error)
FindArrays is a mocked implementation
func (*ArrayDatabaseImpl) InsertArray ¶
func (a *ArrayDatabaseImpl) InsertArray(device *resources.Array) error
InsertArray is a mocked implementation
func (*ArrayDatabaseImpl) PatchArray ¶
PatchArray is a mocked implementation
func (*ArrayDatabaseImpl) PatchArrayTags ¶
PatchArrayTags is a mocked implementation
type ArrayMetadataImpl ¶
ArrayMetadataImpl provides a mocked implementation of the resources.ArrayMetadata interface for testing
func (*ArrayMetadataImpl) GetTags ¶
func (a *ArrayMetadataImpl) GetTags(arrayID string) (map[string]string, error)
GetTags is a mocked implementation
func (*ArrayMetadataImpl) Patch ¶
func (a *ArrayMetadataImpl) Patch(arrayID string, body *resources.ArrayPatchInfo) error
Patch is a mocked implementation