Help us shape the future of Go! Take the 2026 Go Developer Survey

objectstore

package
v0.28.1 Latest Latest
Warning

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

Go to latest
Published: Oct 23, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockStore

type MockStore struct {
	mock.Mock
}

MockStore is an autogenerated mock type for the Store type

func NewMockStore

func NewMockStore(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockStore

NewMockStore creates a new instance of MockStore. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*MockStore) Delete

func (_mock *MockStore) Delete(ctx context.Context, key string) error

Delete provides a mock function for the type MockStore

func (*MockStore) EXPECT

func (_m *MockStore) EXPECT() *MockStore_Expecter

func (*MockStore) Get

func (_mock *MockStore) Get(ctx context.Context, key string, versionID string) (io.ReadCloser, error)

Get provides a mock function for the type MockStore

func (*MockStore) Head

func (_mock *MockStore) Head(ctx context.Context, key string, versionID string) (objectstore.Info, error)

Head provides a mock function for the type MockStore

func (*MockStore) List

func (_mock *MockStore) List(ctx context.Context, prefix string) ([]string, error)

List provides a mock function for the type MockStore

func (*MockStore) Put

func (_mock *MockStore) Put(ctx context.Context, key string, r io.Reader, size int64, sha256Hex string) (objectstore.PutResult, error)

Put provides a mock function for the type MockStore

func (*MockStore) Verify

func (_mock *MockStore) Verify(ctx context.Context) error

Verify provides a mock function for the type MockStore

type MockStore_Delete_Call

type MockStore_Delete_Call struct {
	*mock.Call
}

MockStore_Delete_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Delete'

func (*MockStore_Delete_Call) Return

func (*MockStore_Delete_Call) Run

func (_c *MockStore_Delete_Call) Run(run func(ctx context.Context, key string)) *MockStore_Delete_Call

func (*MockStore_Delete_Call) RunAndReturn

func (_c *MockStore_Delete_Call) RunAndReturn(run func(ctx context.Context, key string) error) *MockStore_Delete_Call

type MockStore_Expecter

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

func (*MockStore_Expecter) Delete

func (_e *MockStore_Expecter) Delete(ctx interface{}, key interface{}) *MockStore_Delete_Call

Delete is a helper method to define mock.On call

  • ctx context.Context
  • key string

func (*MockStore_Expecter) Get

func (_e *MockStore_Expecter) Get(ctx interface{}, key interface{}, versionID interface{}) *MockStore_Get_Call

Get is a helper method to define mock.On call

  • ctx context.Context
  • key string
  • versionID string

func (*MockStore_Expecter) Head

func (_e *MockStore_Expecter) Head(ctx interface{}, key interface{}, versionID interface{}) *MockStore_Head_Call

Head is a helper method to define mock.On call

  • ctx context.Context
  • key string
  • versionID string

func (*MockStore_Expecter) List

func (_e *MockStore_Expecter) List(ctx interface{}, prefix interface{}) *MockStore_List_Call

List is a helper method to define mock.On call

  • ctx context.Context
  • prefix string

func (*MockStore_Expecter) Put

func (_e *MockStore_Expecter) Put(ctx interface{}, key interface{}, r interface{}, size interface{}, sha256Hex interface{}) *MockStore_Put_Call

Put is a helper method to define mock.On call

  • ctx context.Context
  • key string
  • r io.Reader
  • size int64
  • sha256Hex string

func (*MockStore_Expecter) Verify

func (_e *MockStore_Expecter) Verify(ctx interface{}) *MockStore_Verify_Call

Verify is a helper method to define mock.On call

  • ctx context.Context

type MockStore_Get_Call

type MockStore_Get_Call struct {
	*mock.Call
}

MockStore_Get_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Get'

func (*MockStore_Get_Call) Return

func (_c *MockStore_Get_Call) Return(readCloser io.ReadCloser, err error) *MockStore_Get_Call

func (*MockStore_Get_Call) Run

func (_c *MockStore_Get_Call) Run(run func(ctx context.Context, key string, versionID string)) *MockStore_Get_Call

func (*MockStore_Get_Call) RunAndReturn

func (_c *MockStore_Get_Call) RunAndReturn(run func(ctx context.Context, key string, versionID string) (io.ReadCloser, error)) *MockStore_Get_Call

type MockStore_Head_Call

type MockStore_Head_Call struct {
	*mock.Call
}

MockStore_Head_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Head'

func (*MockStore_Head_Call) Return

func (*MockStore_Head_Call) Run

func (_c *MockStore_Head_Call) Run(run func(ctx context.Context, key string, versionID string)) *MockStore_Head_Call

func (*MockStore_Head_Call) RunAndReturn

func (_c *MockStore_Head_Call) RunAndReturn(run func(ctx context.Context, key string, versionID string) (objectstore.Info, error)) *MockStore_Head_Call

type MockStore_List_Call

type MockStore_List_Call struct {
	*mock.Call
}

MockStore_List_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'List'

func (*MockStore_List_Call) Return

func (_c *MockStore_List_Call) Return(strings []string, err error) *MockStore_List_Call

func (*MockStore_List_Call) Run

func (_c *MockStore_List_Call) Run(run func(ctx context.Context, prefix string)) *MockStore_List_Call

func (*MockStore_List_Call) RunAndReturn

func (_c *MockStore_List_Call) RunAndReturn(run func(ctx context.Context, prefix string) ([]string, error)) *MockStore_List_Call

type MockStore_Put_Call

type MockStore_Put_Call struct {
	*mock.Call
}

MockStore_Put_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Put'

func (*MockStore_Put_Call) Return

func (_c *MockStore_Put_Call) Return(putResult objectstore.PutResult, err error) *MockStore_Put_Call

func (*MockStore_Put_Call) Run

func (_c *MockStore_Put_Call) Run(run func(ctx context.Context, key string, r io.Reader, size int64, sha256Hex string)) *MockStore_Put_Call

func (*MockStore_Put_Call) RunAndReturn

func (_c *MockStore_Put_Call) RunAndReturn(run func(ctx context.Context, key string, r io.Reader, size int64, sha256Hex string) (objectstore.PutResult, error)) *MockStore_Put_Call

type MockStore_Verify_Call

type MockStore_Verify_Call struct {
	*mock.Call
}

MockStore_Verify_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Verify'

func (*MockStore_Verify_Call) Return

func (*MockStore_Verify_Call) Run

func (*MockStore_Verify_Call) RunAndReturn

func (_c *MockStore_Verify_Call) RunAndReturn(run func(ctx context.Context) error) *MockStore_Verify_Call

Jump to

Keyboard shortcuts

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