Documentation
¶
Index ¶
- type Adapter
- type Client
- type MockAdapter
- func (m *MockAdapter) Callbacks(_ context.Context) (domain.Callbacks, error)
- func (m *MockAdapter) DeleteObject(_ context.Context, id domain.KindName) error
- func (m *MockAdapter) GetObject(ctx context.Context, id domain.KindName, baseObject []byte) error
- func (m *MockAdapter) PatchObject(ctx context.Context, id domain.KindName, checksum string, patch []byte) error
- func (m *MockAdapter) PutObject(_ context.Context, id domain.KindName, object []byte) error
- func (m *MockAdapter) RegisterCallbacks(mainCtx context.Context, callbacks domain.Callbacks)
- func (m *MockAdapter) Start(_ context.Context) error
- func (m *MockAdapter) VerifyObject(ctx context.Context, id domain.KindName, newChecksum string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Adapter ¶
type Adapter interface { Start(ctx context.Context) error RegisterCallbacks(ctx context.Context, callbacks domain.Callbacks) Callbacks(ctx context.Context) (domain.Callbacks, error) // returns the callbacks for the given context DeleteObject(ctx context.Context, id domain.KindName) error GetObject(ctx context.Context, id domain.KindName, baseObject []byte) error PatchObject(ctx context.Context, id domain.KindName, checksum string, patch []byte) error PutObject(ctx context.Context, id domain.KindName, object []byte) error VerifyObject(ctx context.Context, id domain.KindName, checksum string) error }
type MockAdapter ¶
type MockAdapter struct {
// contains filtered or unexported fields
}
func NewMockAdapter ¶
func NewMockAdapter() *MockAdapter
func (*MockAdapter) DeleteObject ¶
func (*MockAdapter) PatchObject ¶
func (*MockAdapter) RegisterCallbacks ¶
func (m *MockAdapter) RegisterCallbacks(mainCtx context.Context, callbacks domain.Callbacks)
func (*MockAdapter) VerifyObject ¶
Click to show internal directories.
Click to hide internal directories.