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