mock

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type StorageClient

type StorageClient struct {
	CloseFunc       func() error
	OrgIDsFunc      func(ctx context.Context) ([]int, error)
	ClustersFunc    func(ctx context.Context) ([]string, error)
	DatabasesFunc   func(ctx context.Context, cluster string) ([]string, error)
	LevelsFunc      func(ctx context.Context, cluster, database string) ([]int, error)
	MetadataFunc    func(ctx context.Context, path store.StoragePath) (store.StorageMetadata, error)
	OpenFileFunc    func(ctx context.Context, path store.StoragePath) (io.ReadCloser, error)
	WriteFileFunc   func(ctx context.Context, path store.StoragePath, r io.Reader) error
	DeleteFilesFunc func(ctx context.Context, paths []store.StoragePath) error
	IteratorFunc    func(ctx context.Context, cluster, database string, level int) (store.StoragePathIterator, error)
}

func (*StorageClient) Close

func (c *StorageClient) Close() error

func (*StorageClient) Clusters

func (c *StorageClient) Clusters(ctx context.Context) ([]string, error)

func (*StorageClient) Databases

func (c *StorageClient) Databases(ctx context.Context, cluster string) ([]string, error)

func (*StorageClient) DeleteFiles

func (c *StorageClient) DeleteFiles(ctx context.Context, paths []store.StoragePath) error

func (*StorageClient) Iterator

func (c *StorageClient) Iterator(ctx context.Context, cluster, database string, level int) (store.StoragePathIterator, error)

func (*StorageClient) Levels

func (c *StorageClient) Levels(ctx context.Context, cluster, database string) ([]int, error)

func (*StorageClient) Metadata

func (*StorageClient) OpenFile

func (c *StorageClient) OpenFile(ctx context.Context, path store.StoragePath) (io.ReadCloser, error)

func (*StorageClient) OrgIDs

func (c *StorageClient) OrgIDs(ctx context.Context) ([]int, error)

func (*StorageClient) WriteFile

func (c *StorageClient) WriteFile(ctx context.Context, path store.StoragePath, r io.Reader) error

Jump to

Keyboard shortcuts

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