Struct: credentials.ErrorProvider

import "../ibm-cos-sdk-go/aws/credentials"

Overview

An ErrorProvider is a stub credentials provider that always returns an error this is used by the SDK when construction a known provider is not possible due to an error.

Implemented Interfaces

s3crypto.Cipher, credentials.Provider, s3manager.ReadSeekerWriteTo, s3manager.WriterReadFrom

Structure Field Summary collapse

Method Summary collapse

Structure Field Details

Err error

The error to be returned from Retrieve

ProviderName string

The provider name to set on the Retrieved returned Value

Method Details

func (p ErrorProvider) IsExpired() bool

IsExpired will always return not expired.



154
155
156
// File 'aws/credentials/credentials.go', line 154

func (p ErrorProvider) IsExpired() bool { return false }

func (p ErrorProvider) Retrieve() (Value, error)

Retrieve will always return the error that the ErrorProvider was created with.



149
150
151
// File 'aws/credentials/credentials.go', line 149

func (p ErrorProvider) Retrieve() (Value, error) { return Value{ProviderName: p.ProviderName}, p.Err }