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

Function NewCore

core.go:36–44  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

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.
36func 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.

Callers 11

TestGetObjectCoreFunction · 0.85
TestGetBucketPolicyFunction · 0.85
TestCoreCopyObjectFunction · 0.85
TestCoreCopyObjectPartFunction · 0.85
TestCorePutObjectFunction · 0.85
TestCoreMultipartUploadFunction · 0.85

Calls 1

NewFunction · 0.70

Tested by 11

TestGetObjectCoreFunction · 0.68
TestGetBucketPolicyFunction · 0.68
TestCoreCopyObjectFunction · 0.68
TestCoreCopyObjectPartFunction · 0.68
TestCorePutObjectFunction · 0.68
TestCoreMultipartUploadFunction · 0.68