mock

package
v1.0.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 1, 2020 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type APITokenStorageImpl

type APITokenStorageImpl struct {
	mock.Mock
}

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

func (*APITokenStorageImpl) HasToken

func (a *APITokenStorageImpl) HasToken(arrayID string) (bool, error)

HasToken is a mocked stub

func (*APITokenStorageImpl) SaveToken

func (a *APITokenStorageImpl) SaveToken(arrayID string, token string) error

SaveToken is a mocked stub

type ArrayDatabaseImpl

type ArrayDatabaseImpl struct {
	mock.Mock
}

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

func (a *ArrayDatabaseImpl) PatchArray(device *resources.Array) (*resources.Array, error)

PatchArray is a mocked implementation

func (*ArrayDatabaseImpl) PatchArrayTags

func (a *ArrayDatabaseImpl) PatchArrayTags(device *resources.Array) (*resources.Array, error)

PatchArrayTags is a mocked implementation

type ArrayMetadataImpl

type ArrayMetadataImpl struct {
	mock.Mock
}

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL