mock

package
v0.11.4 Latest Latest
Warning

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

Go to latest
Published: Mar 26, 2024 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 MockStore

type MockStore struct {
	mock.Mock
}

MockStore is a mocked store for credentials

func NewMockStore

func NewMockStore() *MockStore

NewMockStore creates a new mocked store for credentials

func (*MockStore) All

func (m *MockStore) All() ([]*credentials.Credential, error)

All returns all credentials

func (*MockStore) Get

func (m *MockStore) Get(id string) (*credentials.Credential, error)

Get returns a auth for the credential id

func (*MockStore) Store

func (m *MockStore) Store(id string, credential *credentials.Credential) error

Store stores a credential

Jump to

Keyboard shortcuts

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