MCPcopy
hub / github.com/minio/minio-go / NewFileMinioClient

Function NewFileMinioClient

pkg/credentials/file_minio_client.go:51–56  ·  view source on GitHub ↗

NewFileMinioClient returns a pointer to a new Credentials object wrapping the Alias file provider.

(filename, alias string)

Source from the content-addressed store, hash-verified

49// NewFileMinioClient returns a pointer to a new Credentials object
50// wrapping the Alias file provider.
51func NewFileMinioClient(filename, alias string) *Credentials {
52 return New(&FileMinioClient{
53 Filename: filename,
54 Alias: alias,
55 })
56}
57
58func (p *FileMinioClient) retrieve() (Value, error) {
59 if p.Filename == "" {

Callers 1

TestFileMinioClientFunction · 0.85

Calls 1

NewFunction · 0.70

Tested by 1

TestFileMinioClientFunction · 0.68