func (f FetchTokenPath) FetchToken(ctx credentials.Context) ([]byte, error) {
	data, err := ioutil.ReadFile(string(f))
	if err != nil {
		errMsg := fmt.Sprintf("unable to read file at %s", f)
		return nil, awserr.New(ErrCodeWebIdentity, errMsg, err)
	}
	return data, nil
}
// FetchToken returns a token by reading from the filesystem
FetchToken returns a token by reading from the filesystem
// FetchToken returns a token by reading from the filesystem
func (f FetchTokenPath) FetchToken(ctx credentials.Context) ([]byte, error) {
	data, err := ioutil.ReadFile(string(f))
	if err != nil {
		errMsg := fmt.Sprintf("unable to read file at %s", f)
		return nil, awserr.New(ErrCodeWebIdentity, errMsg, err)
	}
	return data, nil
}
func ( f FetchTokenPath ) FetchToken ( ctx credentials . Context ) ( [ ] byte , error ) { data , err := ioutil . ReadFile ( string ( f ) ) if err != nil { errMsg := fmt . Sprintf ( " " , f ) return nil , awserr . New ( ErrCodeWebIdentity , errMsg , err ) } return data , nil }
FetchToken returns a token by reading from the filesystem
FetchToken returns a token by reading from the filesystem