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