Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type IMinio ¶
type IMinio interface { // Read retrieves the content of the specified object as a slice of strings, // splitting the content by newline characters. Read(ctx context.Context, objectName string) ([]string, error) // Write uploads a slice of strings as a file to the specified object name in a MinIO bucket. // The lines are joined into a single string with newline characters before being uploaded. Write(ctx context.Context, objectName string, lines []string) error }
IMinio defines the interface for interacting with a MinIO client.
type MinioClient ¶
type MinioClient struct {
// contains filtered or unexported fields
}
MinioClient wraps the MinIO client
func NewMinioClient ¶
func NewMinioClient(endpoint, accessKey, secretKey, bucketName string) (*MinioClient, error)
NewMinioClient initializes a new MinioClient
Click to show internal directories.
Click to hide internal directories.