mocks

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Nov 19, 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 secrets.Secret.

func (*MockCredential) SetMetadata added in v0.0.6

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

SetMetadata 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 secrets.ID) error

func (*MockStore) Filter added in v0.0.7

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

func (*MockStore) Get

func (*MockStore) GetAllMetadata added in v0.0.6

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

func (*MockStore) Save

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

func (*MockStore) Upsert added in v0.0.22

func (m *MockStore) Upsert(ctx context.Context, id secrets.ID, secret secrets.Secret) error

Jump to

Keyboard shortcuts

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