Package: config

import "../ibm-cos-sdk-go-v2/service/internal/s3shared/config"

Interface Summary collapse

Function Summary collapse

Function Details

func ResolveDisableMultiRegionAccessPoints(ctx context.Context, configs []interface{}) (value bool, found bool, err error)

ResolveDisableMultiRegionAccessPoints extracts the first instance of a DisableMultiRegionAccessPoints from the config slice. Additionally returns a boolean to indicate if the value was found in provided configs, and error if one is encountered.



30
31
32
33
34
35
36
37
38
39
40
// File 'service/internal/s3shared/config/config.go', line 30

func ResolveDisableMultiRegionAccessPoints(ctx context.Context, configs []interface{}) (value bool, found bool, err error) { for _, cfg := range configs { if p, ok := cfg.(DisableMultiRegionAccessPointsProvider); ok { value, found, err = p.GetS3DisableMultiRegionAccessPoints(ctx) if err != nil || found { break } } } return }

func ResolveUseARNRegion(ctx context.Context, configs []interface{}) (value bool, found bool, err error)

ResolveUseARNRegion extracts the first instance of a UseARNRegion from the config slice. Additionally returns a boolean to indicate if the value was found in provided configs, and error if one is encountered.



16
17
18
19
20
21
22
23
24
25
26
// File 'service/internal/s3shared/config/config.go', line 16

func ResolveUseARNRegion(ctx context.Context, configs []interface{}) (value bool, found bool, err error) { for _, cfg := range configs { if p, ok := cfg.(UseARNRegionProvider); ok { value, found, err = p.GetS3UseARNRegion(ctx) if err != nil || found { break } } } return }