Struct: credentials.Value

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

Overview

A Value is the AWS credentials value for individual credential fields.

Implemented Interfaces

s3crypto.Cipher, s3manager.ReadSeekerWriteTo, s3manager.WriterReadFrom

Structure Field Summary collapse

Method Summary collapse

Structure Field Details

AccessKeyID string

AWS Access key ID

ProviderName string

Provider used to get credentials

ProviderType string

Provider Type

SecretAccessKey string

AWS Secret Access Key

ServiceInstanceID string

Service Intance ID

SessionToken string

AWS Session Token

Method Details

func (v Value) HasKeys() bool

HasKeys returns if the credentials Value has both AccessKeyID and SecretAccessKey value set.



102
103
104
// File 'aws/credentials/credentials.go', line 102

func (v Value) HasKeys() bool { return len(v.AccessKeyID) != 0 && len(v.SecretAccessKey) != 0 }