mocks

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Jul 11, 2025 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockCredential

type MockCredential struct {
	Username string
	Password string
}

func (*MockCredential) Marshal

func (m *MockCredential) Marshal() ([]byte, error)

Marshal implements secrets.Secret.

func (*MockCredential) Unmarshal

func (m *MockCredential) Unmarshal(data []byte) error

Unmarshal implements secrets.Secret.

type MockStore

type MockStore struct {
	// contains filtered or unexported fields
}

func (*MockStore) Delete

func (m *MockStore) Delete(_ context.Context, id store.ID) error

Delete implements Store.

func (*MockStore) Get

func (m *MockStore) Get(_ context.Context, id store.ID) (store.Secret, error)

Get implements Store.

func (*MockStore) GetAll

func (m *MockStore) GetAll(_ context.Context) (map[store.ID]store.Secret, error)

GetAll implements Store.

func (*MockStore) Save

func (m *MockStore) Save(_ context.Context, id store.ID, secret store.Secret) error

Save implements Store.

Jump to

Keyboard shortcuts

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