fake

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jul 8, 2025 License: MIT Imports: 3 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const (
	FakeObjectName    = "llm/test.json"
	FakeObjectContent = `` /* 677-byte string literal not displayed */
)

Variables

This section is empty.

Functions

This section is empty.

Types

type FakeMinioClient

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

FakeMinioClient is a mock implementation of MinioClient for testing

func NewFakeMinioClient

func NewFakeMinioClient(bucketName string) (*FakeMinioClient, error)

NewFakeMinioClient initializes a new FakeMinioClient

func (*FakeMinioClient) InitializeData

func (f *FakeMinioClient) InitializeData(objectName string, content string)

InitializeData populates the fake MinIO client with initial object data

func (*FakeMinioClient) Read

func (f *FakeMinioClient) Read(ctx context.Context, objectName string) ([]string, error)

Read returns the content of the fake file as a slice of strings split by newline

func (*FakeMinioClient) Write

func (f *FakeMinioClient) Write(ctx context.Context, objectName string, lines []string) error

Write uploads a slice of strings as a file to the fake MinIO

Jump to

Keyboard shortcuts

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