mocks

package
v0.0.21 Latest Latest
Warning

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

Go to latest
Published: Feb 27, 2026 License: Apache-2.0 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
	Attributes map[string]string
}

func (*MockCredential) Marshal

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

Marshal implements secrets.Secret.

func (*MockCredential) Metadata added in v0.0.6

func (m *MockCredential) Metadata() map[string]string

Metadata implements store.Secret.

func (*MockCredential) SetMetadata added in v0.0.6

func (m *MockCredential) SetMetadata(attributes map[string]string) error

SetMetadata implements store.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

func (*MockStore) Filter added in v0.0.7

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

func (*MockStore) Get

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

func (*MockStore) GetAllMetadata added in v0.0.6

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

func (*MockStore) Save

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

Jump to

Keyboard shortcuts

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