NewCore - Returns new initialized a Core client, this CoreClient should be only used under special conditions such as need to access lower primitives and being able to use them to write your own wrappers.
(endpoint string, opts *Options)
| 34 | // only used under special conditions such as need to access lower primitives |
| 35 | // and being able to use them to write your own wrappers. |
| 36 | func NewCore(endpoint string, opts *Options) (*Core, error) { |
| 37 | var s3Client Core |
| 38 | client, err := New(endpoint, opts) |
| 39 | if err != nil { |
| 40 | return nil, err |
| 41 | } |
| 42 | s3Client.Client = client |
| 43 | return &s3Client, nil |
| 44 | } |
| 45 | |
| 46 | // ListObjects - List all the objects at a prefix, optionally with marker and delimiter |
| 47 | // you can further filter the results. |